\
Powered by Blogger.

Blog Archive

Tags:

Joomla Version Checker

By admin → Friday, February 7, 2014


PHP Code:
#!/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 [ -
"$url] || [ "$url== "-h" ] || [ "$url== "--help" ]; then
Usage
;
exit
fi}Check_Joomla_Version()
{
clear
i
=0echo -'\E[32m'"[*] Start Check ..."tput sgr0echo -'\E[32m'"[*] Testing method ($i) ..."tput sgr0

wget 
-"$url/templates/system/css/system.css"Version=`cat system.css | grep "OpenID icon style"`
if [ -
"$Version]; then
let i
=$i+1echo -'\E[32m'"[*] Testing method ($i) ..."tput sgr0
sleep 0.5
else
echo -
'\E[32m'"[*] Found : $url (joomla) Version is 1.5 "tput sgr0echo -'\E[32m'"[*] Finish ..."tput sgr0exitfi

version
=`cat system.css | grep "2011-01-09 02:40:25Z ian"`
if [ -
"$Version]; then
let i
=$i+1echo -'\E[32m'"[*] Testing method ($i) ..."tput sgr0
sleep 0.5
else
echo -
'\E[32m'"[*] Found : $url (joomla) Version is 1.6 "tput sgr0echo -'\E[32m'"[*] Finish ..."tput sgr0exitfi

version
=`cat system.css | grep "2011-05-11 01:10:29Z dextercowley"`
if [ -
"$Version]; then
let i
=$i+1echo -'\E[32m'"[*] Testing method ($i) ..."tput sgr0
sleep 0.5
else
echo -
'\E[32m'"[*] Found : $url (joomla) Version is 1.7 "tput sgr0echo -'\E[32m'"[*] Finish ..."tput sgr0exitfi

version
=`cat system.css | grep "2012 Open Source Matters"`
if [ -
"$Version]; then
let i
=$i+1echo -'\E[32m'"[*] Testing method ($i) ..."tput sgr0
sleep 0.5
else
echo -
'\E[32m'"[*] Found : $url (joomla) Version is 2.5 "tput sgr0echo -'\E[32m'"[*] Finish ..."tput sgr0exitfi

wget 
-"$url/media/system/js/mootools-more.js"Version=`cat mootools-more.js | grep "MooTools={version:"`
if [ -
"$Version]; then
let i
=$i+1echo -'\E[32m'"[*] Testing method ($i) ..."tput sgr0
sleep 0.5
else
echo -
'\E[32m'"[*] Found : $url (joomla) Version is 1.5 "tput sgr0echo -'\E[32m'"[*] Finish ..."tput sgr0exitfi

Version
=`cat mootools-more.js | grep "1.3.0.1"`
if [ -
"$Version]; then
let i
=$i+1echo -'\E[32m'"[*] Testing method ($i) ..."tput sgr0
sleep 0.5
else
echo -
'\E[32m'"[*] Found : $url (joomla) Version is 1.6 "tput sgr0echo -'\E[32m'"[*] Finish ..."tput sgr0exitfi

Version
=`cat mootools-more.js | grep "1.3.2.1"`
if [ -
"$Version]; then
let i
=$i+1echo -'\E[32m'"[*] Testing method ($i) ..."tput sgr0
sleep 0.5
else
echo -
'\E[32m'"[*] Found : $url (joomla) Version is 1.7 "tput sgr0echo -'\E[32m'"[*] Finish ..."tput sgr0exitfi

Version
=`cat mootools-more.js | grep "1.4.0.1"`
if [ -
"$Version]; then
let i
=$i+1echo -'\E[32m'"[*] Testing method ($i) ..."tput sgr0
sleep 0.5
else
echo -
'\E[32m'"[*] Found : $url (joomla) Version is 2.5.6 or 3.0 alpha 2 "tput sgr0echo -'\E[32m'"[*] Finish ..."tput sgr0exitfi

wget 
-"$url/language/en-GB/en-GB.ini"Version=`cat en-GB.ini | grep "11391 2009-01-04 13:35:50Z ian"`
if [ -
"$Version]; then
let i
=$i+1echo -'\E[32m'"[*] Testing method ($i) ..."tput sgr0
sleep 0.5
else
echo -
'\E[32m'"[*] Found : $url (joomla) Version is 1.5.26 "tput sgr0echo -'\E[32m'"[*] Finish ..."tput sgr0exitfi

Version
=`cat en-GB.ini | grep "20196 2011-01-09 02:40:25Z ian"`
if [ -
"$Version]; then
let i
=$i+1echo -'\E[32m'"[*] Testing method ($i) ..."tput sgr0
sleep 0.5
else
echo -
'\E[32m'"[*] Found : $url (joomla) Version is 1.6.0 "tput sgr0echo -'\E[32m'"[*] Finish ..."tput sgr0exitfi

Version
=`cat en-GB.ini | grep "2011-03-18 16:42:30Z infograf768"`
if [ -
"$Version]; then
let i
=$i+1echo -'\E[32m'"[*] Testing method ($i) ..."tput sgr0
sleep 0.5
else
echo -
'\E[32m'"[*] Found : $url (joomla) Version is 1.6.5 or 1.7.1 "tput sgr0echo -'\E[32m'"[*] Finish ..."tput sgr0exitfi

Version
=`cat en-GB.ini | grep "22183 2011-09-30 09:04:32Z infograf768"`
if [ -
"$Version]; then
let i
=$i+1echo -'\E[32m'"[*] Testing method ($i) ..."tput sgr0
sleep 0.5
else
echo -
'\E[32m'"[*] Found : $url (joomla) Version is 1.7.3 or 1.7.5 "tput sgr0echo -'\E[32m'"[*] Finish ..."tput sgr0exitfi

Version
=`cat en-GB.ini | grep "<version>2.5.0"`
if [ -
"$Version]; then
let i
=$i+1echo -'\E[32m'"[*] Testing method ($i) ..."tput sgr0
sleep 0.5
else
echo -
'\E[32m'"[*] Found : $url (joomla) Version is 2.5.0 -> 2.5.4 "tput sgr0echo -'\E[32m'"[*] Finish ..."tput sgr0exitfi

Version
=`cat en-GB.ini | grep "<version>2.5.5"`
if [ -
"$Version]; thenecho -'\E[32m'"[*] Shit :( Not Found ..."tput sgr0
sleep 0.5
else
echo -
'\E[32m'"[*] Found : $url (joomla) Version is 2.5.5 or 2.5.6 "tput sgr0echo -'\E[32m'"[*] Finish ..."tput sgr0exitfi}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


Post Tags:

Ichsan Bahri

I'm Ichsan. A full time web designer. I enjoy to make modern template. I love create blogger template and write about web design, blogger. Now I'm working with Themeforest. You can buy our templates from Themeforest.

No Comment to " Joomla Version Checker "