Guest User

adminfinder.py

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