Er0in
Özel Üye
İyi akşamlar dostlar
Alıntıdır..
PHP:
#!/bin/bash
# Red V!per Joomla Version Checker
# Coded By Red H4t V!per
# Tnx 2 : Pawel Frankowski
url="$1"
Usage()
{
echo ""
echo "# ****************************************************************************************************#"
echo "# Usage : Red V!per Joomla Version Checker <target> *#"
echo "# Help : -h && --help : Show This Menu *#"
echo "# RunScript : Give Permision to script and run it !! *#"
echo "# Example : ./script.sh [url]www.example.com/joomla/[/url] *#"
echo "# *******************************************************************************#"
echo ""
exit
}
Check_Arguments()
{
if [ -z "$url" ] || [ "$url" == "-h" ] || [ "$url" == "--help" ]; then
Usage;
exit
fi
}
Check_Joomla_Version()
{
clear
i=0
echo -e ’\\\\E[32m’"[*] Start Check ..."; tput sgr0
echo -e ’\\\\E[32m’"[*] Testing method ($i) ..."; tput sgr0
wget -q "$url/templates/system/css/system.css"
Version=`cat system.css | grep "OpenID icon style"`
if [ -z "$Version" ]; then
let i=$i+1
echo -e ’\\\\E[32m’"[*] Testing method ($i) ..."; tput sgr0
sleep 0.5
else
echo -e ’\\\\E[32m’"[*] Found : $url (joomla) Version is 1.5 "; tput sgr0
echo -e ’\\\\E[32m’"[*] Finish ..."; tput sgr0
exit
fi
version=`cat system.css | grep "2011-01-09 02:40:25Z ian"`
if [ -z "$Version" ]; then
let i=$i+1
echo -e ’\\\\E[32m’"[*] Testing method ($i) ..."; tput sgr0
sleep 0.5
else
echo -e ’\\\\E[32m’"[*] Found : $url (joomla) Version is 1.6 "; tput sgr0
echo -e ’\\\\E[32m’"[*] Finish ..."; tput sgr0
exit
fi
version=`cat system.css | grep "2011-05-11 01:10:29Z dextercowley"`
if [ -z "$Version" ]; then
let i=$i+1
echo -e ’\\\\E[32m’"[*] Testing method ($i) ..."; tput sgr0
sleep 0.5
else
echo -e ’\\\\E[32m’"[*] Found : $url (joomla) Version is 1.7 "; tput sgr0
echo -e ’\\\\E[32m’"[*] Finish ..."; tput sgr0
exit
fi
version=`cat system.css | grep "2012 Open Source Matters"`
if [ -z "$Version" ]; then
let i=$i+1
echo -e ’\\\\E[32m’"[*] Testing method ($i) ..."; tput sgr0
sleep 0.5
else
echo -e ’\\\\E[32m’"[*] Found : $url (joomla) Version is 2.5 "; tput sgr0
echo -e ’\\\\E[32m’"[*] Finish ..."; tput sgr0
exit
fi
wget -q "$url/media/system/js/mootools-more.js"
Version=`cat mootools-more.js | grep "MooTools={version:"`
if [ -z "$Version" ]; then
let i=$i+1
echo -e ’\\\\E[32m’"[*] Testing method ($i) ..."; tput sgr0
sleep 0.5
else
echo -e ’\\\\E[32m’"[*] Found : $url (joomla) Version is 1.5 "; tput sgr0
echo -e ’\\\\E[32m’"[*] Finish ..."; tput sgr0
exit
fi
Version=`cat mootools-more.js | grep "1.3.0.1"`
if [ -z "$Version" ]; then
let i=$i+1
echo -e ’\\\\E[32m’"[*] Testing method ($i) ..."; tput sgr0
sleep 0.5
else
echo -e ’\\\\E[32m’"[*] Found : $url (joomla) Version is 1.6 "; tput sgr0
echo -e ’\\\\E[32m’"[*] Finish ..."; tput sgr0
exit
fi
Version=`cat mootools-more.js | grep "1.3.2.1"`
if [ -z "$Version" ]; then
let i=$i+1
echo -e ’\\\\E[32m’"[*] Testing method ($i) ..."; tput sgr0
sleep 0.5
else
echo -e ’\\\\E[32m’"[*] Found : $url (joomla) Version is 1.7 "; tput sgr0
echo -e ’\\\\E[32m’"[*] Finish ..."; tput sgr0
exit
fi
Version=`cat mootools-more.js | grep "1.4.0.1"`
if [ -z "$Version" ]; then
let i=$i+1
echo -e ’\\\\E[32m’"[*] Testing method ($i) ..."; tput sgr0
sleep 0.5
else
echo -e ’\\\\E[32m’"[*] Found : $url (joomla) Version is 2.5.6 or 3.0 alpha 2 "; tput sgr0
echo -e ’\\\\E[32m’"[*] Finish ..."; tput sgr0
exit
fi
wget -q "$url/language/en-GB/en-GB.ini"
Version=`cat en-GB.ini | grep "11391 2009-01-04 13:35:50Z ian"`
if [ -z "$Version" ]; then
let i=$i+1
echo -e ’\\\\E[32m’"[*] Testing method ($i) ..."; tput sgr0
sleep 0.5
else
echo -e ’\\\\E[32m’"[*] Found : $url (joomla) Version is 1.5.26 "; tput sgr0
echo -e ’\\\\E[32m’"[*] Finish ..."; tput sgr0
exit
fi
Version=`cat en-GB.ini | grep "20196 2011-01-09 02:40:25Z ian"`
if [ -z "$Version" ]; then
let i=$i+1
echo -e ’\\\\E[32m’"[*] Testing method ($i) ..."; tput sgr0
sleep 0.5
else
echo -e ’\\\\E[32m’"[*] Found : $url (joomla) Version is 1.6.0 "; tput sgr0
echo -e ’\\\\E[32m’"[*] Finish ..."; tput sgr0
exit
fi
Version=`cat en-GB.ini | grep "2011-03-18 16:42:30Z infograf768"`
if [ -z "$Version" ]; then
let i=$i+1
echo -e ’\\\\E[32m’"[*] Testing method ($i) ..."; tput sgr0
sleep 0.5
else
echo -e ’\\\\E[32m’"[*] Found : $url (joomla) Version is 1.6.5 or 1.7.1 "; tput sgr0
echo -e ’\\\\E[32m’"[*] Finish ..."; tput sgr0
exit
fi
Version=`cat en-GB.ini | grep "22183 2011-09-30 09:04:32Z infograf768"`
if [ -z "$Version" ]; then
let i=$i+1
echo -e ’\\\\E[32m’"[*] Testing method ($i) ..."; tput sgr0
sleep 0.5
else
echo -e ’\\\\E[32m’"[*] Found : $url (joomla) Version is 1.7.3 or 1.7.5 "; tput sgr0
echo -e ’\\\\E[32m’"[*] Finish ..."; tput sgr0
exit
fi
Version=`cat en-GB.ini | grep "<version>2.5.0"`
if [ -z "$Version" ]; then
let i=$i+1
echo -e ’\\\\E[32m’"[*] Testing method ($i) ..."; tput sgr0
sleep 0.5
else
echo -e ’\\\\E[32m’"[*] Found : $url (joomla) Version is 2.5.0 -> 2.5.4 "; tput sgr0
echo -e ’\\\\E[32m’"[*] Finish ..."; tput sgr0
exit
fi
Version=`cat en-GB.ini | grep "<version>2.5.5"`
if [ -z "$Version" ]; then
echo -e ’\\\\E[32m’"[*] Shit :( Not Found ..."; tput sgr0
sleep 0.5
else
echo -e ’\\\\E[32m’"[*] Found : $url (joomla) Version is 2.5.5 or 2.5.6 "; tput sgr0
echo -e ’\\\\E[32m’"[*] Finish ..."; tput sgr0
exit
fi
}
pre_remove()
{
rm -rf system.css*
rm -rf mootools-more.js*
rm -rf en-GB.ini*
}
main()
{
pre_remove;
Check_Arguments;
Check_Joomla_Version;
}
main;
Alıntıdır..