Python Script: Admin panel finder


SUBMITTED BY: Guest

DATE: Dec. 15, 2013, 12:58 p.m.

FORMAT: Text only

SIZE: 30.1 kB

HITS: 643

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

comments powered by Disqus