Este sitio utiliza cookies propias y de terceros. Si continúa navegando consideramos que acepta el uso de cookies. OK Más Información.

Joomla Version Checker

  • 1 Respuestas
  • 2938 Vistas

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado sniffer

  • *
  • Underc0der
  • Mensajes: 3
  • Actividad:
    0%
  • Reputación 0
    • Ver Perfil
« en: Agosto 15, 2013, 04:07:45 pm »


Código: PHP
  1. #!/bin/bash
  2. # Red V!per Joomla Version Checker
  3. # Coded By Red H4t V!per
  4. # Tnx 2 : Pawel Frankowski
  5.  
  6. url="$1"
  7.  
  8. Usage()
  9. {
  10. echo ""
  11. echo "# ***************************************************************************​​****​*********************#"
  12. echo "# Usage : Red V!per Joomla Version Checker <target> *#"
  13. echo "# Help : -h && --help : Show This Menu *#"
  14. echo "# RunScript : Give Permision to script and run it !! *#"
  15. echo "# Example : ./script.sh [url=http://www.example.com/joomla/]www.example.com/joomla/[/url] *#"
  16. echo "# ***************************************************************************​​****​#"
  17. echo ""
  18. }
  19.  
  20. Check_Arguments()
  21. {
  22. if [ -z "$url" ] || [ "$url" == "-h" ] || [ "$url" == "--help" ]; then
  23. Usage;
  24. fi
  25. }
  26.  
  27. Check_Joomla_Version()
  28. {
  29. clear
  30. i=0
  31. echo -e '\E[32m'"[*] Start Check ..."; tput sgr0
  32. echo -e '\E[32m'"[*] Testing method ($i) ..."; tput sgr0
  33.  
  34. wget -q "$url/templates/system/css/system.css"
  35.  
  36. Version=`cat system.css | grep "OpenID icon style"`
  37. if [ -z "$Version" ]; then
  38. let i=$i+1
  39. echo -e '\E[32m'"[*] Testing method ($i) ..."; tput sgr0
  40. sleep 0.5
  41. else
  42. echo -e '\E[32m'"[*] Found : $url (joomla) Version is 1.5 "; tput sgr0
  43. echo -e '\E[32m'"[*] Finish ..."; tput sgr0
  44. fi
  45.  
  46. version=`cat system.css | grep "2011-01-09 02:40:25Z ian"`
  47. if [ -z "$Version" ]; then
  48. let i=$i+1
  49. echo -e '\E[32m'"[*] Testing method ($i) ..."; tput sgr0
  50. sleep 0.5
  51. else
  52. echo -e '\E[32m'"[*] Found : $url (joomla) Version is 1.6 "; tput sgr0
  53. echo -e '\E[32m'"[*] Finish ..."; tput sgr0
  54. fi
  55.  
  56. version=`cat system.css | grep "2011-05-11 01:10:29Z dextercowley"`
  57. if [ -z "$Version" ]; then
  58. let i=$i+1
  59. echo -e '\E[32m'"[*] Testing method ($i) ..."; tput sgr0
  60. sleep 0.5
  61. else
  62. echo -e '\E[32m'"[*] Found : $url (joomla) Version is 1.7 "; tput sgr0
  63. echo -e '\E[32m'"[*] Finish ..."; tput sgr0
  64. fi
  65.  
  66. version=`cat system.css | grep "2012 Open Source Matters"`
  67. if [ -z "$Version" ]; then
  68. let i=$i+1
  69. echo -e '\E[32m'"[*] Testing method ($i) ..."; tput sgr0
  70. sleep 0.5
  71. else
  72. echo -e '\E[32m'"[*] Found : $url (joomla) Version is 2.5 "; tput sgr0
  73. echo -e '\E[32m'"[*] Finish ..."; tput sgr0
  74. fi
  75.  
  76. wget -q "$url/media/system/js/mootools-more.js"
  77.  
  78. Version=`cat mootools-more.js | grep "MooTools={version:"`
  79. if [ -z "$Version" ]; then
  80. let i=$i+1
  81. echo -e '\E[32m'"[*] Testing method ($i) ..."; tput sgr0
  82. sleep 0.5
  83. else
  84. echo -e '\E[32m'"[*] Found : $url (joomla) Version is 1.5 "; tput sgr0
  85. echo -e '\E[32m'"[*] Finish ..."; tput sgr0
  86. fi
  87.  
  88. Version=`cat mootools-more.js | grep "1.3.0.1"`
  89. if [ -z "$Version" ]; then
  90. let i=$i+1
  91. echo -e '\E[32m'"[*] Testing method ($i) ..."; tput sgr0
  92. sleep 0.5
  93. else
  94. echo -e '\E[32m'"[*] Found : $url (joomla) Version is 1.6 "; tput sgr0
  95. echo -e '\E[32m'"[*] Finish ..."; tput sgr0
  96. fi
  97.  
  98. Version=`cat mootools-more.js | grep "1.3.2.1"`
  99. if [ -z "$Version" ]; then
  100. let i=$i+1
  101. echo -e '\E[32m'"[*] Testing method ($i) ..."; tput sgr0
  102. sleep 0.5
  103. else
  104. echo -e '\E[32m'"[*] Found : $url (joomla) Version is 1.7 "; tput sgr0
  105. echo -e '\E[32m'"[*] Finish ..."; tput sgr0
  106. fi
  107.  
  108. Version=`cat mootools-more.js | grep "1.4.0.1"`
  109. if [ -z "$Version" ]; then
  110. let i=$i+1
  111. echo -e '\E[32m'"[*] Testing method ($i) ..."; tput sgr0
  112. sleep 0.5
  113. else
  114. echo -e '\E[32m'"[*] Found : $url (joomla) Version is 2.5.6 or 3.0 alpha 2 "; tput sgr0
  115. echo -e '\E[32m'"[*] Finish ..."; tput sgr0
  116. fi
  117.  
  118. wget -q "$url/language/en-GB/en-GB.ini"
  119.  
  120. Version=`cat en-GB.ini | grep "11391 2009-01-04 13:35:50Z ian"`
  121. if [ -z "$Version" ]; then
  122. let i=$i+1
  123. echo -e '\E[32m'"[*] Testing method ($i) ..."; tput sgr0
  124. sleep 0.5
  125. else
  126. echo -e '\E[32m'"[*] Found : $url (joomla) Version is 1.5.26 "; tput sgr0
  127. echo -e '\E[32m'"[*] Finish ..."; tput sgr0
  128. fi
  129.  
  130. Version=`cat en-GB.ini | grep "20196 2011-01-09 02:40:25Z ian"`
  131. if [ -z "$Version" ]; then
  132. let i=$i+1
  133. echo -e '\E[32m'"[*] Testing method ($i) ..."; tput sgr0
  134. sleep 0.5
  135. else
  136. echo -e '\E[32m'"[*] Found : $url (joomla) Version is 1.6.0 "; tput sgr0
  137. echo -e '\E[32m'"[*] Finish ..."; tput sgr0
  138. fi
  139.  
  140. Version=`cat en-GB.ini | grep "2011-03-18 16:42:30Z infograf768"`
  141. if [ -z "$Version" ]; then
  142. let i=$i+1
  143. echo -e '\E[32m'"[*] Testing method ($i) ..."; tput sgr0
  144. sleep 0.5
  145. else
  146. echo -e '\E[32m'"[*] Found : $url (joomla) Version is 1.6.5 or 1.7.1 "; tput sgr0
  147. echo -e '\E[32m'"[*] Finish ..."; tput sgr0
  148. fi
  149.  
  150. Version=`cat en-GB.ini | grep "22183 2011-09-30 09:04:32Z infograf768"`
  151. if [ -z "$Version" ]; then
  152. let i=$i+1
  153. echo -e '\E[32m'"[*] Testing method ($i) ..."; tput sgr0
  154. sleep 0.5
  155. else
  156. echo -e '\E[32m'"[*] Found : $url (joomla) Version is 1.7.3 or 1.7.5 "; tput sgr0
  157. echo -e '\E[32m'"[*] Finish ..."; tput sgr0
  158. fi
  159.  
  160. Version=`cat en-GB.ini | grep "<version>2.5.0"`
  161. if [ -z "$Version" ]; then
  162. let i=$i+1
  163. echo -e '\E[32m'"[*] Testing method ($i) ..."; tput sgr0
  164. sleep 0.5
  165. else
  166. echo -e '\E[32m'"[*] Found : $url (joomla) Version is 2.5.0 -> 2.5.4 "; tput sgr0
  167. echo -e '\E[32m'"[*] Finish ..."; tput sgr0
  168. fi
  169.  
  170. Version=`cat en-GB.ini | grep "<version>2.5.5"`
  171. if [ -z "$Version" ]; then
  172. echo -e '\E[32m'"[*] Shit :( Not Found ..."; tput sgr0
  173. sleep 0.5
  174. else
  175. echo -e '\E[32m'"[*] Found : $url (joomla) Version is 2.5.5 or 2.5.6 "; tput sgr0
  176. echo -e '\E[32m'"[*] Finish ..."; tput sgr0
  177. fi
  178. }
  179.  
  180. pre_remove()
  181. {
  182. rm -rf system.css*
  183. rm -rf mootools-more.js*
  184. rm -rf en-GB.ini*
  185. }
  186.  
  187. main()
  188. {
  189. pre_remove;
  190. Check_Arguments;
  191. Check_Joomla_Version;
  192. }
  193.  
  194. main;
  195.  



sample https://addons.mozilla.org/ro/firefox/addon/joomla-version-check/   
« Última modificación: Agosto 15, 2013, 08:02:55 pm por Snifer »

Conectado ANTRAX

  • *
  • Administrator
  • Mensajes: 5448
  • Actividad:
    10%
  • Reputación 33
  • ANTRAX
    • Ver Perfil
    • Underc0de
    • Email
  • Skype: underc0de.org
  • Twitter: @Underc0de
« Respuesta #1 en: Agosto 15, 2013, 04:11:10 pm »
Nice post bro! I will test it!
Thanks!

Regards
ANTRAX


 

¿Te gustó el post? COMPARTILO!



[Bash] Instalador de Ruby (ultima version) en RHEL/CentOS

Iniciado por B3N

Respuestas: 0
Vistas: 2215
Último mensaje Agosto 09, 2015, 12:49:43 pm
por B3N
[Código-Batch] Consola de Comandos Versión Arcoiris - JaAViEr

Iniciado por JaAViEr

Respuestas: 0
Vistas: 1637
Último mensaje Julio 17, 2011, 05:29:39 am
por JaAViEr
Server Joomla Finder

Iniciado por ZanGetsu

Respuestas: 0
Vistas: 2317
Último mensaje Junio 09, 2013, 02:01:30 pm
por ZanGetsu