Advertisement
BornePlays

sdd

May 28th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1.  
  2. import urllib2
  3.  
  4.  
  5. website = 'www.youtube.com'
  6.  
  7. dir = [
  8. '/admin.php', '/login.php', '/adminstrator.php', '/adminlogin.php', '/panel.php'
  9. ]
  10.  
  11. def findAdmin():
  12. for admin in dir:
  13. try:
  14. adminCP = urllib2.urlopen(website+admin)
  15. statusCode = adminCP.code
  16. if statusCode ==(200):
  17. print('[+] Found: %s' %admin)
  18. except urllib2.URLError, statusCode:
  19. if statusCode ==(404):
  20. print('[+] Not Found: %s' %admin)
  21. else:
  22. print('[+] Not Found: %s' %admin)
  23.  
  24. findAdmin()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement