Advertisement
BornePlays

sa

May 25th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import urllib2
  2.  
  3. response = urllib2.urlopen('http://tabletworld.co.in')
  4. directory = ['/admin/', '/admin.php', '/login.php']
  5. code = response.code
  6.  
  7. for password in directory:
  8. if code==(200):
  9. print('[*] Found: %s' %password)
  10. elif code==(404):
  11. print('[*] Forbidden: %s' %password)
  12. else:
  13. print('[*] Not Found: %s' %password)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement