hacker's code


SUBMITTED BY: james82

DATE: Oct. 9, 2016, 6:48 p.m.

FORMAT: Text only

SIZE: 696 Bytes

HITS: 1823

  1. #!/usr/bin/env python
  2. import sys
  3. import os
  4. import httplib
  5. if len(sys.argv) < 2:
  6. print """
  7. Coded by NetBoy511
  8. [ python t4_dir.py site.com ] <<--- Only
  9. """
  10. exit()
  11. t4team = sys.argv[1]
  12. list = open('dir.txt','r').readlines()
  13. for num in list :
  14. dd = num.replace('\n','')
  15. dir1 = "/"+dd+""
  16. site1 = t4team
  17. web = httplib.HTTPConnection(site1)
  18. web.request("GET", dir1)
  19. r1 = web.getresponse()
  20. if (r1.status == 200):
  21. print "[+] www."+site1+dir1+" [ "+str(r1.status)+" ] Founed\n"
  22. file = open('found.txt','a')
  23. file.write("[+] www."+site1+dir1+" [ "+str(r1.status)+" ] -------\n")
  24. file.close()
  25. else :
  26. print "[-] www."+site1+dir1+" [ "+str(r1.status)+" ]"

comments powered by Disqus