Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. website = raw_input(Fore.MAGENTA +"> SITIO PARA SCANEAR: ")
  2. if "http://" not in website:
  3. website ="http://"+ website
  4.  
  5. with open("gosadmin.txt", "r") as ins:
  6. array=[]
  7. for line in ins:
  8. print line
  9.  
  10. for i in line:
  11. try:
  12. adminpanel = urllib2.urlopen(website+i)
  13. checkurl = adminpanel.code
  14. if checkurl == 200:
  15. print Fore.GREEN+ website+i," "" [+] Found [+]"
  16. continue
  17. except urllib2.URLError, checkurl:
  18. if checkurl == 404:
  19. print website+i," "" Not Found :/"
  20. else:
  21. print Fore.RED+ website+i," "" [-]Error[-]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement