DarkProgrammer000

Admin Finder Page [python2]

Feb 2nd, 2019
264
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import httplib
  2. import socket
  3. import sys
  4.  
  5.  
  6. try:
  7.     print "\t################################################################"
  8.     print "\t#                        DarKProgrammer000                     #"
  9.     print "\t################################################################"
  10.     var1=0
  11.     var2=0
  12.  
  13.     php = ['admin/','administrator/','admin1/','admin2/','admin3/','admin4/','admin5/','usuarios/','usuario/','administrator/','moderator/','webadmin/','adminarea/','bb-admin/','adminLogin/','admin_area/','panel-administracion/','instadmin/',
  14. 'memberadmin/','administratorlogin/','adm/','admin/account.php','admin/index.php','admin/login.php','admin/admin.php','admin/account.php',
  15. 'admin_area/admin.php','admin_area/login.php','siteadmin/login.php','siteadmin/index.php','siteadmin/login.html','admin/account.html','admin/index.html','admin/login.html','admin/admin.html',
  16. 'admin_area/index.php','bb-admin/index.php','bb-admin/login.php','bb-admin/admin.php','admin/home.php','admin_area/login.html','admin_area/index.html',
  17. 'admin/controlpanel.php','admin.php','admincp/index.asp','admincp/login.asp','admincp/index.html','admin/account.html','adminpanel.html','webadmin.html',
  18. 'webadmin/index.html','webadmin/admin.html','webadmin/login.html','admin/admin_login.html','admin_login.html','panel-administracion/login.html',
  19. 'admin/cp.php','cp.php','administrator/index.php','administrator/login.php','nsw/admin/login.php','webadmin/login.php','admin/admin_login.php','admin_login.php',
  20. 'administrator/account.php','administrator.php','admin_area/admin.html','pages/admin/admin-login.php','admin/admin-login.php','admin-login.php',
  21. 'bb-admin/index.html','bb-admin/login.html','acceso.php','bb-admin/admin.html','admin/home.html','login.php','modelsearch/login.php','moderator.php','moderator/login.php',
  22. 'moderator/admin.php','account.php','pages/admin/admin-login.html','admin/admin-login.html','admin-login.html','controlpanel.php','admincontrol.php',
  23. 'admin/adminLogin.html','adminLogin.html','admin/adminLogin.html','home.html','rcjakar/admin/login.php','adminarea/index.html','adminarea/admin.html',
  24. 'webadmin.php','webadmin/index.php','webadmin/admin.php','admin/controlpanel.html','admin.html','admin/cp.html','cp.html','adminpanel.php','moderator.html',
  25. 'administrator/index.html','administrator/login.html','user.html','administrator/account.html','administrator.html','login.html','modelsearch/login.html',
  26. 'moderator/login.html','adminarea/login.html','panel-administracion/index.html','panel-administracion/admin.html','modelsearch/index.html','modelsearch/admin.html',
  27. 'admincontrol/login.html','adm/index.html','adm.html','moderator/admin.html','user.php','account.html','controlpanel.html','admincontrol.html',
  28. 'panel-administracion/login.php','wp-login.php','adminLogin.php','admin/adminLogin.php','home.php','admin.php','adminarea/index.php',
  29. 'adminarea/admin.php','adminarea/login.php','panel-administracion/index.php','panel-administracion/admin.php','modelsearch/index.php',
  30. 'modelsearch/admin.php','admincontrol/login.php','adm/admloginuser.php','admloginuser.php','admin2.php','admin2/login.php','admin2/index.php','usuarios/login.php',
  31. 'adm/index.php','adm.php','affiliate.php','adm_auth.php','memberadmin.php','administratorlogin.php']
  32.  
  33.     asp = ['admin/','administrator/','admin1/','admin2/','admin3/','admin4/','admin5/','moderator/','webadmin/','adminarea/','bb-admin/','adminLogin/','admin_area/','panel-administracion/','instadmin/',
  34. 'memberadmin/','administratorlogin/','adm/','account.asp','admin/account.asp','admin/index.asp','admin/login.asp','admin/admin.asp',
  35. 'admin_area/admin.asp','admin_area/login.asp','admin/account.html','admin/index.html','admin/login.html','admin/admin.html',
  36. 'admin_area/admin.html','admin_area/login.html','admin_area/index.html','admin_area/index.asp','bb-admin/index.asp','bb-admin/login.asp','bb-admin/admin.asp',
  37. 'bb-admin/index.html','bb-admin/login.html','bb-admin/admin.html','admin/home.html','admin/controlpanel.html','admin.html','admin/cp.html','cp.html',
  38. 'administrator/index.html','administrator/login.html','administrator/account.html','administrator.html','login.html','modelsearch/login.html','moderator.html',
  39. 'moderator/login.html','moderator/admin.html','account.html','controlpanel.html','admincontrol.html','admin_login.html','panel-administracion/login.html',
  40. 'admin/home.asp','admin/controlpanel.asp','admin.asp','pages/admin/admin-login.asp','admin/admin-login.asp','admin-login.asp','admin/cp.asp','cp.asp',
  41. 'administrator/account.asp','administrator.asp','acceso.asp','login.asp','modelsearch/login.asp','moderator.asp','moderator/login.asp','administrator/login.asp',
  42. 'moderator/admin.asp','controlpanel.asp','admin/account.html','adminpanel.html','webadmin.html','pages/admin/admin-login.html','admin/admin-login.html',
  43. 'webadmin/index.html','webadmin/admin.html','webadmin/login.html','user.asp','user.html','admincp/index.asp','admincp/login.asp','admincp/index.html',
  44. 'admin/adminLogin.html','adminLogin.html','admin/adminLogin.html','home.html','adminarea/index.html','adminarea/admin.html','adminarea/login.html',
  45. 'panel-administracion/index.html','panel-administracion/admin.html','modelsearch/index.html','modelsearch/admin.html','admin/admin_login.html',
  46. 'admincontrol/login.html','adm/index.html','adm.html','admincontrol.asp','admin/account.asp','adminpanel.asp','webadmin.asp','webadmin/index.asp',
  47. 'webadmin/admin.asp','webadmin/login.asp','admin/admin_login.asp','admin_login.asp','panel-administracion/login.asp','adminLogin.asp',
  48. 'admin/adminLogin.asp','home.asp','admin.asp','adminarea/index.asp','adminarea/admin.asp','adminarea/login.asp','admin-login.html',
  49. 'panel-administracion/index.asp','panel-administracion/admin.asp','modelsearch/index.asp','modelsearch/admin.asp','administrator/index.asp',
  50. 'admincontrol/login.asp','adm/admloginuser.asp','admloginuser.asp','admin2.asp','admin2/login.asp','admin2/index.asp','adm/index.asp',
  51. 'adm.asp','affiliate.asp','adm_auth.asp','memberadmin.asp','administratorlogin.asp','siteadmin/login.asp','siteadmin/index.asp','siteadmin/login.html']
  52.  
  53.     cfm = ['admin/','administrator/','admin1/','admin2/','admin3/','admin4/','admin5/','usuarios/','usuario/','administrator/','moderator/','webadmin/','adminarea/','bb-admin/','adminLogin/','admin_area/','panel-administracion/','instadmin/',
  54. 'memberadmin/','administratorlogin/','adm/','admin/account.cfm','admin/index.cfm','admin/login.cfm','admin/admin.cfm','admin/account.cfm',
  55. 'admin_area/admin.cfm','admin_area/login.cfm','siteadmin/login.cfm','siteadmin/index.cfm','siteadmin/login.html','admin/account.html','admin/index.html','admin/login.html','admin/admin.html',
  56. 'admin_area/index.cfm','bb-admin/index.cfm','bb-admin/login.cfm','bb-admin/admin.cfm','admin/home.cfm','admin_area/login.html','admin_area/index.html',
  57. 'admin/controlpanel.cfm','admin.cfm','admincp/index.asp','admincp/login.asp','admincp/index.html','admin/account.html','adminpanel.html','webadmin.html',
  58. 'webadmin/index.html','webadmin/admin.html','webadmin/login.html','admin/admin_login.html','admin_login.html','panel-administracion/login.html',
  59. 'admin/cp.cfm','cp.cfm','administrator/index.cfm','administrator/login.cfm','nsw/admin/login.cfm','webadmin/login.cfm','admin/admin_login.cfm','admin_login.cfm',
  60. 'administrator/account.cfm','administrator.cfm','admin_area/admin.html','pages/admin/admin-login.cfm','admin/admin-login.cfm','admin-login.cfm',
  61. 'bb-admin/index.html','bb-admin/login.html','bb-admin/admin.html','admin/home.html','login.cfm','modelsearch/login.cfm','moderator.cfm','moderator/login.cfm',
  62. 'moderator/admin.cfm','account.cfm','pages/admin/admin-login.html','admin/admin-login.html','admin-login.html','controlpanel.cfm','admincontrol.cfm',
  63. 'admin/adminLogin.html','acceso.cfm','adminLogin.html','admin/adminLogin.html','home.html','rcjakar/admin/login.cfm','adminarea/index.html','adminarea/admin.html',
  64. 'webadmin.cfm','webadmin/index.cfm','webadmin/admin.cfm','admin/controlpanel.html','admin.html','admin/cp.html','cp.html','adminpanel.cfm','moderator.html',
  65. 'administrator/index.html','administrator/login.html','user.html','administrator/account.html','administrator.html','login.html','modelsearch/login.html',
  66. 'moderator/login.html','adminarea/login.html','panel-administracion/index.html','panel-administracion/admin.html','modelsearch/index.html','modelsearch/admin.html',
  67. 'admincontrol/login.html','adm/index.html','adm.html','moderator/admin.html','user.cfm','account.html','controlpanel.html','admincontrol.html',
  68. 'panel-administracion/login.cfm','wp-login.cfm','adminLogin.cfm','admin/adminLogin.cfm','home.cfm','admin.cfm','adminarea/index.cfm',
  69. 'adminarea/admin.cfm','adminarea/login.cfm','panel-administracion/index.cfm','panel-administracion/admin.cfm','modelsearch/index.cfm',
  70. 'modelsearch/admin.cfm','admincontrol/login.cfm','adm/admloginuser.cfm','admloginuser.cfm','admin2.cfm','admin2/login.cfm','admin2/index.cfm','usuarios/login.cfm',
  71. 'adm/index.cfm','adm.cfm','affiliate.cfm','adm_auth.cfm','memberadmin.cfm','administratorlogin.cfm']
  72.  
  73.     js = ['admin/','administrator/','admin1/','admin2/','admin3/','admin4/','admin5/','usuarios/','usuario/','administrator/','moderator/','webadmin/','adminarea/','bb-admin/','adminLogin/','admin_area/','panel-administracion/','instadmin/',
  74. 'memberadmin/','administratorlogin/','adm/','admin/account.js','admin/index.js','admin/login.js','admin/admin.js','admin/account.js',
  75. 'admin_area/admin.js','admin_area/login.js','siteadmin/login.js','siteadmin/index.js','siteadmin/login.html','admin/account.html','admin/index.html','admin/login.html','admin/admin.html',
  76. 'admin_area/index.js','bb-admin/index.js','bb-admin/login.js','bb-admin/admin.js','admin/home.js','admin_area/login.html','admin_area/index.html',
  77. 'admin/controlpanel.js','admin.js','admincp/index.asp','admincp/login.asp','admincp/index.html','admin/account.html','adminpanel.html','webadmin.html',
  78. 'webadmin/index.html','webadmin/admin.html','webadmin/login.html','admin/admin_login.html','admin_login.html','panel-administracion/login.html',
  79. 'admin/cp.js','cp.js','administrator/index.js','administrator/login.js','nsw/admin/login.js','webadmin/login.js','admin/admin_login.js','admin_login.js',
  80. 'administrator/account.js','administrator.js','admin_area/admin.html','pages/admin/admin-login.js','admin/admin-login.js','admin-login.js',
  81. 'bb-admin/index.html','bb-admin/login.html','bb-admin/admin.html','admin/home.html','login.js','modelsearch/login.js','moderator.js','moderator/login.js',
  82. 'moderator/admin.js','account.js','pages/admin/admin-login.html','admin/admin-login.html','admin-login.html','controlpanel.js','admincontrol.js',
  83. 'admin/adminLogin.html','adminLogin.html','admin/adminLogin.html','home.html','rcjakar/admin/login.js','adminarea/index.html','adminarea/admin.html',
  84. 'webadmin.js','webadmin/index.js','acceso.js','webadmin/admin.js','admin/controlpanel.html','admin.html','admin/cp.html','cp.html','adminpanel.js','moderator.html',
  85. 'administrator/index.html','administrator/login.html','user.html','administrator/account.html','administrator.html','login.html','modelsearch/login.html',
  86. 'moderator/login.html','adminarea/login.html','panel-administracion/index.html','panel-administracion/admin.html','modelsearch/index.html','modelsearch/admin.html',
  87. 'admincontrol/login.html','adm/index.html','adm.html','moderator/admin.html','user.js','account.html','controlpanel.html','admincontrol.html',
  88. 'panel-administracion/login.js','wp-login.js','adminLogin.js','admin/adminLogin.js','home.js','admin.js','adminarea/index.js',
  89. 'adminarea/admin.js','adminarea/login.js','panel-administracion/index.js','panel-administracion/admin.js','modelsearch/index.js',
  90. 'modelsearch/admin.js','admincontrol/login.js','adm/admloginuser.js','admloginuser.js','admin2.js','admin2/login.js','admin2/index.js','usuarios/login.js',
  91. 'adm/index.js','adm.js','affiliate.js','adm_auth.js','memberadmin.js','administratorlogin.js']
  92.  
  93.     cgi = ['admin/','administrator/','admin1/','admin2/','admin3/','admin4/','admin5/','usuarios/','usuario/','administrator/','moderator/','webadmin/','adminarea/','bb-admin/','adminLogin/','admin_area/','panel-administracion/','instadmin/',
  94. 'memberadmin/','administratorlogin/','adm/','admin/account.cgi','admin/index.cgi','admin/login.cgi','admin/admin.cgi','admin/account.cgi',
  95. 'admin_area/admin.cgi','admin_area/login.cgi','siteadmin/login.cgi','siteadmin/index.cgi','siteadmin/login.html','admin/account.html','admin/index.html','admin/login.html','admin/admin.html',
  96. 'admin_area/index.cgi','bb-admin/index.cgi','bb-admin/login.cgi','bb-admin/admin.cgi','admin/home.cgi','admin_area/login.html','admin_area/index.html',
  97. 'admin/controlpanel.cgi','admin.cgi','admincp/index.asp','admincp/login.asp','admincp/index.html','admin/account.html','adminpanel.html','webadmin.html',
  98. 'webadmin/index.html','webadmin/admin.html','webadmin/login.html','admin/admin_login.html','admin_login.html','panel-administracion/login.html',
  99. 'admin/cp.cgi','cp.cgi','administrator/index.cgi','administrator/login.cgi','nsw/admin/login.cgi','webadmin/login.cgi','admin/admin_login.cgi','admin_login.cgi',
  100. 'administrator/account.cgi','administrator.cgi','admin_area/admin.html','pages/admin/admin-login.cgi','admin/admin-login.cgi','admin-login.cgi',
  101. 'bb-admin/index.html','bb-admin/login.html','bb-admin/admin.html','admin/home.html','login.cgi','modelsearch/login.cgi','moderator.cgi','moderator/login.cgi',
  102. 'moderator/admin.cgi','account.cgi','pages/admin/admin-login.html','admin/admin-login.html','admin-login.html','controlpanel.cgi','admincontrol.cgi',
  103. 'admin/adminLogin.html','adminLogin.html','admin/adminLogin.html','home.html','rcjakar/admin/login.cgi','adminarea/index.html','adminarea/admin.html',
  104. 'webadmin.cgi','webadmin/index.cgi','acceso.cgi','webadmin/admin.cgi','admin/controlpanel.html','admin.html','admin/cp.html','cp.html','adminpanel.cgi','moderator.html',
  105. 'administrator/index.html','administrator/login.html','user.html','administrator/account.html','administrator.html','login.html','modelsearch/login.html',
  106. 'moderator/login.html','adminarea/login.html','panel-administracion/index.html','panel-administracion/admin.html','modelsearch/index.html','modelsearch/admin.html',
  107. 'admincontrol/login.html','adm/index.html','adm.html','moderator/admin.html','user.cgi','account.html','controlpanel.html','admincontrol.html',
  108. 'panel-administracion/login.cgi','wp-login.cgi','adminLogin.cgi','admin/adminLogin.cgi','home.cgi','admin.cgi','adminarea/index.cgi',
  109. 'adminarea/admin.cgi','adminarea/login.cgi','panel-administracion/index.cgi','panel-administracion/admin.cgi','modelsearch/index.cgi',
  110. 'modelsearch/admin.cgi','admincontrol/login.cgi','adm/admloginuser.cgi','admloginuser.cgi','admin2.cgi','admin2/login.cgi','admin2/index.cgi','usuarios/login.cgi',
  111. 'adm/index.cgi','adm.cgi','affiliate.cgi','adm_auth.cgi','memberadmin.cgi','administratorlogin.cgi']
  112.  
  113.     brf = ['admin/','administrator/','admin1/','admin2/','admin3/','admin4/','admin5/','usuarios/','usuario/','administrator/','moderator/','webadmin/','adminarea/','bb-admin/','adminLogin/','admin_area/','panel-administracion/','instadmin/',
  114. 'memberadmin/','administratorlogin/','adm/','admin/account.brf','admin/index.brf','admin/login.brf','admin/admin.brf','admin/account.brf',
  115. 'admin_area/admin.brf','admin_area/login.brf','siteadmin/login.brf','siteadmin/index.brf','siteadmin/login.html','admin/account.html','admin/index.html','admin/login.html','admin/admin.html',
  116. 'admin_area/index.brf','bb-admin/index.brf','bb-admin/login.brf','bb-admin/admin.brf','admin/home.brf','admin_area/login.html','admin_area/index.html',
  117. 'admin/controlpanel.brf','admin.brf','admincp/index.asp','admincp/login.asp','admincp/index.html','admin/account.html','adminpanel.html','webadmin.html',
  118. 'webadmin/index.html','webadmin/admin.html','webadmin/login.html','admin/admin_login.html','admin_login.html','panel-administracion/login.html',
  119. 'admin/cp.brf','cp.brf','administrator/index.brf','administrator/login.brf','nsw/admin/login.brf','webadmin/login.brfbrf','admin/admin_login.brf','admin_login.brf',
  120. 'administrator/account.brf','administrator.brf','acceso.brf','admin_area/admin.html','pages/admin/admin-login.brf','admin/admin-login.brf','admin-login.brf',
  121. 'bb-admin/index.html','bb-admin/login.html','bb-admin/admin.html','admin/home.html','login.brf','modelsearch/login.brf','moderator.brf','moderator/login.brf',
  122. 'moderator/admin.brf','account.brf','pages/admin/admin-login.html','admin/admin-login.html','admin-login.html','controlpanel.brf','admincontrol.brf',
  123. 'admin/adminLogin.html','adminLogin.html','admin/adminLogin.html','home.html','rcjakar/admin/login.brf','adminarea/index.html','adminarea/admin.html',
  124. 'webadmin.brf','webadmin/index.brf','webadmin/admin.brf','admin/controlpanel.html','admin.html','admin/cp.html','cp.html','adminpanel.brf','moderator.html',
  125. 'administrator/index.html','administrator/login.html','user.html','administrator/account.html','administrator.html','login.html','modelsearch/login.html',
  126. 'moderator/login.html','adminarea/login.html','panel-administracion/index.html','panel-administracion/admin.html','modelsearch/index.html','modelsearch/admin.html',
  127. 'admincontrol/login.html','adm/index.html','adm.html','moderator/admin.html','user.brf','account.html','controlpanel.html','admincontrol.html',
  128. 'panel-administracion/login.brf','wp-login.brf','adminLogin.brf','admin/adminLogin.brf','home.brf','admin.brf','adminarea/index.brf',
  129. 'adminarea/admin.brf','adminarea/login.brf','panel-administracion/index.brf','panel-administracion/admin.brf','modelsearch/index.brf',
  130. 'modelsearch/admin.brf','admincontrol/login.brf','adm/admloginuser.brf','admloginuser.brf','admin2.brf','admin2/login.brf','admin2/index.brf','usuarios/login.brf',
  131. 'adm/index.brf','adm.brf','affiliate.brf','adm_auth.brf','memberadmin.brf','administratorlogin.brf']
  132.    
  133.     try:
  134.         site = raw_input("Web Site for Scan?: ")
  135.         site = site.replace("http://","")
  136.         print ("\tChecking website " + site + "...")
  137.         conn = httplib.HTTPConnection(site)
  138.         conn.connect()
  139.         print "\t[$] Yes... Server is Online."
  140.     except (httplib.HTTPResponse, socket.error) as Exit:
  141.         raw_input("\t [!] Oops Error occured, Server offline or invalid URL")
  142.         exit()
  143.     print "Enter site source code:"
  144.     print "1 PHP"
  145.     print "2 ASP"
  146.     print "3 CFM"
  147.     print "4 JS"
  148.     print "5 CGI"
  149.     print "6 BRF"
  150.     print "\nPress 1 and 'Enter key' for Select PHP\n"
  151.     code=input("> ")
  152.        
  153.     if code==1:
  154.         print("\t [+] Scanning " + site + "...\n\n")
  155.         for admin in php:
  156.             admin = admin.replace("\n","")
  157.             admin = "/" + admin
  158.             host = site + admin
  159.             print ("\t [#] Checking " + host + "...")
  160.             connection = httplib.HTTPConnection(site)
  161.             connection.request("GET",admin)
  162.             response = connection.getresponse()
  163.             var2 = var2 + 1
  164.             if response.status == 200:
  165.                 var1 = var1 + 1
  166.                 print "%s %s" % ( "\n\n>>>" + host, "Admin page found!")
  167.                 raw_input("Press enter to continue scanning.\n")
  168.             elif response.status == 404:
  169.                 var2 = var2
  170.             elif response.status == 302:
  171.                 print "%s %s" % ("\n>>>" + host, "Possible admin page (302 - Redirect)")
  172.             else:
  173.                 print "%s %s %s" % (host, " Interesting response:", response.status)
  174.             connection.close()
  175.         print("\n\nCompleted \n")
  176.         print var1, " Admin pages found"
  177.         print var2, " total pages scanned"
  178.         raw_input("[/] The Game Over; Press Enter to Exit")
  179.  
  180.  
  181.     if code==2:
  182.         print("\t [+] Scanning " + site + "...\n\n")
  183.         for admin in asp:
  184.             admin = admin.replace("\n","")
  185.             admin = "/" + admin
  186.             host = site + admin
  187.             print ("\t [#] Checking " + host + "...")
  188.             connection = httplib.HTTPConnection(site)
  189.             connection.request("GET",admin)
  190.             response = connection.getresponse()
  191.             var2 = var2 + 1
  192.             if response.status == 200:
  193.                 var1 = var1 + 1
  194.                 print "%s %s" % ( "\n\n>>>" + host, "Admin page found!")
  195.                 raw_input("Press enter to continue scanning.\n")
  196.             elif response.status == 404:
  197.                 var2 = var2
  198.             elif response.status == 302:
  199.                 print "%s %s" % ("\n>>>" + host, "Possible admin page (302 - Redirect)")
  200.             else:
  201.                 print "%s %s %s" % (host, " Interesting response:", response.status)
  202.             connection.close()
  203.         print("\n\nCompleted \n")
  204.         print var1, " Admin pages found"
  205.         print var2, " total pages scanned"
  206.         raw_input("The Game Over; Press Enter to Exit")
  207.  
  208.     if code==3:
  209.         print("\t [+] Scanning " + site + "...\n\n")
  210.         for admin in cfm:
  211.             admin = admin.replace("\n","")
  212.             admin = "/" + admin
  213.             host = site + admin
  214.             print ("\t [#] Checking " + host + "...")
  215.             connection = httplib.HTTPConnection(site)
  216.             connection.request("GET",admin)
  217.             response = connection.getresponse()
  218.             var2 = var2 + 1
  219.             if response.status == 200:
  220.                 var1 = var1 + 1
  221.                 print "%s %s" % ( "\n\n>>>" + host, "Admin page found!")
  222.                 raw_input("Press enter to continue scanning.\n")
  223.             elif response.status == 404:
  224.                 var2 = var2
  225.             elif response.status == 302:
  226.                 print "%s %s" % ("\n>>>" + host, "Possible admin page (302 - Redirect)")
  227.             else:
  228.                 print "%s %s %s" % (host, " Interesting response:", response.status)
  229.             connection.close()
  230.         print("\n\nCompleted \n")
  231.         print var1, " Admin pages found"
  232.         print var2, " total pages scanned"
  233.         raw_input("The Game Over; Press Enter to Exit")
  234.  
  235.     if code==4:
  236.         print("\t [+] Scanning " + site + "...\n\n")
  237.         for admin in js:
  238.             admin = admin.replace("\n","")
  239.             admin = "/" + admin
  240.             host = site + admin
  241.             print ("\t [#] Checking " + host + "...")
  242.             connection = httplib.HTTPConnection(site)
  243.             connection.request("GET",admin)
  244.             response = connection.getresponse()
  245.             var2 = var2 + 1
  246.             if response.status == 200:
  247.                 var1 = var1 + 1
  248.                 print "%s %s" % ( "\n\n>>>" + host, "Admin page found!")
  249.                 raw_input("Press enter to continue scanning.\n")
  250.             elif response.status == 404:
  251.                 var2 = var2
  252.             elif response.status == 302:
  253.                 print "%s %s" % ("\n>>>" + host, "Possible admin page (302 - Redirect)")
  254.             else:
  255.                 print "%s %s %s" % (host, " Interesting response:", response.status)
  256.             connection.close()
  257.         print("\n\nCompleted \n")
  258.         print var1, " Admin pages found"
  259.         print var2, " total pages scanned"
  260.         raw_input("The Game Over; Press Enter to Exit")
  261.  
  262.     if code==5:
  263.         print("\t [+] Scanning " + site + "...\n\n")
  264.         for admin in cgi:
  265.             admin = admin.replace("\n","")
  266.             admin = "/" + admin
  267.             host = site + admin
  268.             print ("\t [#] Checking " + host + "...")
  269.             connection = httplib.HTTPConnection(site)
  270.             connection.request("GET",admin)
  271.             response = connection.getresponse()
  272.             var2 = var2 + 1
  273.             if response.status == 200:
  274.                 var1 = var1 + 1
  275.                 print "%s %s" % ( "\n\n>>>" + host, "Admin page found!")
  276.                 raw_input("Press enter to continue scanning.\n")
  277.             elif response.status == 404:
  278.                 var2 = var2
  279.             elif response.status == 302:
  280.                 print "%s %s" % ("\n>>>" + host, "Possible admin page (302 - Redirect)")
  281.             else:
  282.                 print "%s %s %s" % (host, " Interesting response:", response.status)
  283.             connection.close()
  284.         print("\n\nCompleted \n")
  285.         print var1, " Admin pages found"
  286.         print var2, " total pages scanned"
  287.         raw_input("The Game Over; Press Enter to Exit")
  288.  
  289.     if code==6:
  290.         print("\t [+] Scanning " + site + "...\n\n")
  291.         for admin in brf:
  292.             admin = admin.replace("\n","")
  293.             admin = "/" + admin
  294.             host = site + admin
  295.             print ("\t [#] Checking " + host + "...")
  296.             connection = httplib.HTTPConnection(site)
  297.             connection.request("GET",admin)
  298.             response = connection.getresponse()
  299.             var2 = var2 + 1
  300.             if response.status == 200:
  301.                 var1 = var1 + 1
  302.                 print "%s %s" % ( "\n\n>>>" + host, "Admin page found!")
  303.                 raw_input("Press enter to continue scanning.\n")
  304.             elif response.status == 404:
  305.                 var2 = var2
  306.             elif response.status == 302:
  307.                 print "%s %s" % ("\n>>>" + host, "Possible admin page (302 - Redirect)")
  308.             else:
  309.                 print "%s %s %s" % (host, " Interesting response:", response.status)
  310.             connection.close()
  311.         print("\n\nCompleted \n")
  312.         print var1, " Admin pages found"
  313.         print var2, " total pages scanned"
  314.         raw_input("The Game Over; Press Enter to Exit")
  315. except (httplib.HTTPResponse, socket.error):
  316.     print "\n\t[!] Session Cancelled; Error occured. Check internet settings"
  317. except (KeyboardInterrupt, SystemExit):
  318.     print "\n\t[!] Session cancelled"
RAW Paste Data