elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Entrar al Canal Oficial Telegram de elhacker.net


+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting
| | |-+  [Ruby] PanelFinder 0.5
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [Ruby] PanelFinder 0.5  (Leído 1,842 veces)
BigBear


Desconectado Desconectado

Mensajes: 545



Ver Perfil
[Ruby] PanelFinder 0.5
« en: 12 Junio 2015, 23:52 pm »

Un simple script en Ruby para buscar el panel de administracion de una pagina.

Version consola :

Código
  1. #!usr/bin/ruby
  2. #PanelFinder 0.5
  3. #(C) Doddy Hackman 2015
  4.  
  5. require "open-uri"
  6. require "net/http"  
  7.  
  8. # Functions
  9.  
  10. def toma(web)
  11. begin
  12. return open(web, "User-Agent" => "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0").read
  13. rescue
  14. return "Error"
  15. end
  16. end
  17.  
  18. def response_code(web)
  19. begin
  20. return Net::HTTP.get_response(URI(web)) .code
  21. rescue
  22. return "404"
  23. end
  24. end
  25.  
  26. def tomar(web,arg)
  27. begin
  28. headers = {"User-Agent" => "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0"}
  29. uri = URI(web)
  30. http = Net::HTTP.new(uri.host, uri.port)
  31. return http.post(uri.path,arg, headers).body
  32. rescue
  33. return "Error"
  34. end
  35. end
  36.  
  37. def find_panel(page)
  38. panels = ['admin/admin.asp','admin/login.asp','admin/index.asp','admin/admin.aspx','admin/login.aspx','admin/index.aspx','admin/webmaster.asp','admin/webmaster.aspx','asp/admin/index.asp','asp/admin/index.aspx','asp/admin/admin.asp','asp/admin/admin.aspx','asp/admin/webmaster.asp','asp/admin/webmaster.aspx','admin/','login.asp','login.aspx','admin.asp','admin.aspx','webmaster.aspx','webmaster.asp','login/index.asp','login/index.aspx','login/login.asp','login/login.aspx','login/admin.asp','login/admin.aspx','administracion/index.asp','administracion/index.aspx','administracion/login.asp','administracion/login.aspx','administracion/webmaster.asp','administracion/webmaster.aspx','administracion/admin.asp','administracion/admin.aspx','php/admin/','admin/admin.php','admin/index.php','admin/login.php','admin/system.php','admin/ingresar.php','admin/administrador.php','admin/default.php','administracion/','administracion/index.php','administracion/login.php','administracion/ingresar.php','administracion/admin.php','administration/','administration/index.php','administration/login.php','administrator/index.php','administrator/login.php','administrator/system.php','system/','system/login.php','admin.php','login.php','administrador.php','administration.php','administrator.php','admin1.html','admin1.php','admin2.php','admin2.html','yonetim.php','yonetim.html','yonetici.php','yonetici.html','adm/','admin/account.php','admin/account.html','admin/index.html','admin/login.html','admin/home.php','admin/controlpanel.html','admin/controlpanel.php','admin.html','admin/cp.php','admin/cp.html','cp.php','cp.html','administrator/','administrator/index.html','administrator/login.html','administrator/account.html','administrator/account.php','administrator.html','login.html','modelsearch/login.php','moderator.php','moderator.html','moderator/login.php','moderator/login.html','moderator/admin.php','moderator/admin.html','moderator/','account.php','account.html','controlpanel/','controlpanel.php','controlpanel.html','admincontrol.php','admincontrol.html','adminpanel.php','adminpanel.html','admin1.asp','admin2.asp','yonetim.asp','yonetici.asp','admin/account.asp','admin/home.asp','admin/controlpanel.asp','admin/cp.asp','cp.asp','administrator/index.asp','administrator/login.asp','administrator/account.asp','administrator.asp','modelsearch/login.asp','moderator.asp','moderator/login.asp','moderator/admin.asp','account.asp','controlpanel.asp','admincontrol.asp','adminpanel.asp','fileadmin/','fileadmin.php','fileadmin.asp','fileadmin.html','administration.html','sysadmin.php','sysadmin.html','phpmyadmin/','myadmin/','sysadmin.asp','sysadmin/','ur-admin.asp','ur-admin.php','ur-admin.html','ur-admin/','Server.php','Server.html','Server.asp','Server/','wp-admin/','administr8.php','administr8.html','administr8/','administr8.asp','webadmin/','webadmin.php','webadmin.asp','webadmin.html','administratie/','admins/','admins.php','admins.asp','admins.html','administrivia/','Database_Administration/','WebAdmin/','useradmin/','sysadmins/','admin1/','system-administration/','administrators/','pgadmin/','directadmin/','staradmin/','ServerAdministrator/','SysAdmin/','administer/','LiveUser_Admin/','sys-admin/','typo3/','panel/','cpanel/','cPanel/','cpanel_file/','platz_login/','rcLogin/','blogindex/','formslogin/','autologin/','support_login/','meta_login/','manuallogin/','simpleLogin/','loginflat/','utility_login/','showlogin/','memlogin/','members/','login-redirect/','sub-login/','wp-login/','login1/','dir-login/','login_db/','xlogin/','smblogin/','customer_login/','UserLogin/','login-us/','acct_login/','admin_area/','bigadmin/','project-admins/','phppgadmin/','pureadmin/','sql-admin/','radmind/','openvpnadmin/','wizmysqladmin/','vadmind/','ezsqliteadmin/','hpwebjetadmin/','newsadmin/','adminpro/','Lotus_Domino_Admin/','bbadmin/','vmailadmin/','Indy_admin/','ccp14admin/','irc-macadmin/','banneradmin/','sshadmin/','phpldapadmin/','macadmin/','administratoraccounts/','admin4_account/','admin4_colon/','radmind-1/','Super-Admin/','AdminTools/','cmsadmin/','SysAdmin2/','globes_admin/','cadmins/','phpSQLiteAdmin/','navSiteAdmin/','server_admin_small/','logo_sysadmin/','server/','database_administration/','power_user/','system_administration/','ss_vms_admin_sm/']
  39. print "\n[+] Scanning ...\n\n"
  40. control = "0"
  41. panels.each do |panel|
  42. begin
  43. url = page+"/"+panel
  44. status_code = response_code(url)
  45. if status_code=="200"
  46. print "[+] Link : "+url+"\n"
  47. control = "1"
  48. end
  49. end
  50. end
  51. if control=="1"
  52. print "\n[+] Finished\n"
  53. else
  54. print "\n[-] Not Found\n"
  55. end
  56. end
  57.  
  58. def uso
  59. print "\n[+] Sintax : ruby panel_finder.rb <page>\n"
  60. end
  61.  
  62. def  head
  63. print "\n\n-- ==  Panel Finder 0.5 == --\n\n"
  64. end
  65.  
  66. def copyright
  67. print "\n\n-- == (C) Doddy Hackman 2015 == --\n\n"
  68. end
  69.  
  70. page = ARGV[0]
  71.  
  72. head()
  73.  
  74. if !page
  75. uso()
  76. else
  77. find_panel(page)
  78. end
  79.  
  80. copyright()
  81.  
  82. #The End ?
  83.  

Version Tk :

Código
  1. #!usr/bin/ruby
  2. #PanelFinder 0.5
  3. #(C) Doddy Hackman 2015
  4.  
  5. require "tk"
  6. require "open-uri"
  7. require "net/http"
  8.  
  9. # Functions
  10.  
  11. def toma(web)
  12. begin
  13. return open(web, "User-Agent" => "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0").read
  14. rescue
  15. return "Error"
  16. end
  17. end
  18.  
  19. def response_code(web)
  20. begin
  21. return Net::HTTP.get_response(URI(web)) .code
  22. rescue
  23. return "404"
  24. end
  25. end
  26.  
  27. def tomar(web,arg)
  28. begin
  29. headers = {"User-Agent" => "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0"}
  30. uri = URI(web)
  31. http = Net::HTTP.new(uri.host, uri.port)
  32. return http.post(uri.path,arg, headers).body
  33. rescue
  34. return "Error"
  35. end
  36. end
  37.  
  38. #
  39.  
  40. window = TkRoot.new { title "PanelFinder 0.5 (C) Doddy Hackman 2015" ; background "black" }
  41. window['geometry'] = '300x300-20+10'
  42.  
  43. TkLabel.new(window) do
  44. background "black"
  45. foreground "orange"
  46. text "     Page : "
  47. place('relx'=>"0.1",'rely'=>"0.1")
  48. end
  49.  
  50. page = TkEntry.new(window){
  51. background "black"
  52. foreground "orange"
  53. width 25
  54. place('relx'=>0.3,'rely'=>0.1)
  55. }
  56.  
  57. TkLabel.new(window) do
  58. background "black"
  59. foreground "orange"
  60. text "Console"
  61. place('relx'=>0.4,'rely'=>0.2)
  62. end
  63.  
  64. console =TkText.new(window) do
  65. background "black"
  66. foreground "orange"
  67. width 30
  68. height 10
  69. place('relx'=>0.1,'rely'=>0.3)
  70. end
  71.  
  72. TkButton.new(window) do
  73. text "Search"
  74.    background "black"
  75. foreground "orange"
  76. width 17
  77. activebackground "orange"
  78. highlightbackground  "orange"
  79. command proc{
  80.  
  81. page = page.value.to_s
  82. panels = ['admin/admin.asp','admin/login.asp','admin/index.asp','admin/admin.aspx','admin/login.aspx','admin/index.aspx','admin/webmaster.asp','admin/webmaster.aspx','asp/admin/index.asp','asp/admin/index.aspx','asp/admin/admin.asp','asp/admin/admin.aspx','asp/admin/webmaster.asp','asp/admin/webmaster.aspx','admin/','login.asp','login.aspx','admin.asp','admin.aspx','webmaster.aspx','webmaster.asp','login/index.asp','login/index.aspx','login/login.asp','login/login.aspx','login/admin.asp','login/admin.aspx','administracion/index.asp','administracion/index.aspx','administracion/login.asp','administracion/login.aspx','administracion/webmaster.asp','administracion/webmaster.aspx','administracion/admin.asp','administracion/admin.aspx','php/admin/','admin/admin.php','admin/index.php','admin/login.php','admin/system.php','admin/ingresar.php','admin/administrador.php','admin/default.php','administracion/','administracion/index.php','administracion/login.php','administracion/ingresar.php','administracion/admin.php','administration/','administration/index.php','administration/login.php','administrator/index.php','administrator/login.php','administrator/system.php','system/','system/login.php','admin.php','login.php','administrador.php','administration.php','administrator.php','admin1.html','admin1.php','admin2.php','admin2.html','yonetim.php','yonetim.html','yonetici.php','yonetici.html','adm/','admin/account.php','admin/account.html','admin/index.html','admin/login.html','admin/home.php','admin/controlpanel.html','admin/controlpanel.php','admin.html','admin/cp.php','admin/cp.html','cp.php','cp.html','administrator/','administrator/index.html','administrator/login.html','administrator/account.html','administrator/account.php','administrator.html','login.html','modelsearch/login.php','moderator.php','moderator.html','moderator/login.php','moderator/login.html','moderator/admin.php','moderator/admin.html','moderator/','account.php','account.html','controlpanel/','controlpanel.php','controlpanel.html','admincontrol.php','admincontrol.html','adminpanel.php','adminpanel.html','admin1.asp','admin2.asp','yonetim.asp','yonetici.asp','admin/account.asp','admin/home.asp','admin/controlpanel.asp','admin/cp.asp','cp.asp','administrator/index.asp','administrator/login.asp','administrator/account.asp','administrator.asp','modelsearch/login.asp','moderator.asp','moderator/login.asp','moderator/admin.asp','account.asp','controlpanel.asp','admincontrol.asp','adminpanel.asp','fileadmin/','fileadmin.php','fileadmin.asp','fileadmin.html','administration.html','sysadmin.php','sysadmin.html','phpmyadmin/','myadmin/','sysadmin.asp','sysadmin/','ur-admin.asp','ur-admin.php','ur-admin.html','ur-admin/','Server.php','Server.html','Server.asp','Server/','wp-admin/','administr8.php','administr8.html','administr8/','administr8.asp','webadmin/','webadmin.php','webadmin.asp','webadmin.html','administratie/','admins/','admins.php','admins.asp','admins.html','administrivia/','Database_Administration/','WebAdmin/','useradmin/','sysadmins/','admin1/','system-administration/','administrators/','pgadmin/','directadmin/','staradmin/','ServerAdministrator/','SysAdmin/','administer/','LiveUser_Admin/','sys-admin/','typo3/','panel/','cpanel/','cPanel/','cpanel_file/','platz_login/','rcLogin/','blogindex/','formslogin/','autologin/','support_login/','meta_login/','manuallogin/','simpleLogin/','loginflat/','utility_login/','showlogin/','memlogin/','members/','login-redirect/','sub-login/','wp-login/','login1/','dir-login/','login_db/','xlogin/','smblogin/','customer_login/','UserLogin/','login-us/','acct_login/','admin_area/','bigadmin/','project-admins/','phppgadmin/','pureadmin/','sql-admin/','radmind/','openvpnadmin/','wizmysqladmin/','vadmind/','ezsqliteadmin/','hpwebjetadmin/','newsadmin/','adminpro/','Lotus_Domino_Admin/','bbadmin/','vmailadmin/','Indy_admin/','ccp14admin/','irc-macadmin/','banneradmin/','sshadmin/','phpldapadmin/','macadmin/','administratoraccounts/','admin4_account/','admin4_colon/','radmind-1/','Super-Admin/','AdminTools/','cmsadmin/','SysAdmin2/','globes_admin/','cadmins/','phpSQLiteAdmin/','navSiteAdmin/','server_admin_small/','logo_sysadmin/','server/','database_administration/','power_user/','system_administration/','ss_vms_admin_sm/']
  83. console.insert("end", "[+] Scanning ...\n\n")
  84. control = "0"
  85. panels.each do |panel|
  86. begin
  87. url = page+"/"+panel
  88. status_code = response_code(url)
  89. if status_code=="200"
  90. console.insert("end","[+] Link : "+url+"\n")
  91. control = "1"
  92. end
  93. end
  94. end
  95. if control=="1"
  96. console.insert("end","\n[+] Finished")
  97. else
  98. console.insert("end","\n[-] Not Found")
  99. end
  100.  
  101. }
  102. place('relx'=>0.3,'rely'=>0.9)
  103. end
  104.  
  105. Tk.mainloop
  106.  
  107. #The End ?
  108.  

Una imagen :



Eso es todo.


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
[Tool] xassiz PanelFinder - by xassiz « 1 2 3 4 »
Nivel Web
xassiz_ 30 16,557 Último mensaje 5 Enero 2010, 04:15 am
por Castg!
[Introducing Ruby] Lo que debes saber sobre Ruby
Scripting
RyogiShiki 0 9,894 Último mensaje 4 Marzo 2011, 20:45 pm
por RyogiShiki
[Java] PanelFinder 0.1
Java
BigBear 0 1,502 Último mensaje 13 Enero 2013, 03:39 am
por BigBear
[C#] PanelFinder 0.3
.NET (C#, VB.NET, ASP)
BigBear 0 2,558 Último mensaje 1 Agosto 2014, 15:57 pm
por BigBear
[Java] PanelFinder 0.3
Java
BigBear 0 1,416 Último mensaje 18 Marzo 2016, 14:22 pm
por BigBear
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines