#!/usr/bin/env python import sys import os import httplib if len(sys.argv) < 2: print """ Coded by NetBoy511 [ python t4_dir.py site.com ] <<--- Only """ exit() t4team = sys.argv[1] list = open('dir.txt','r').readlines() for num in list : dd = num.replace('\n','') dir1 = "/"+dd+"" site1 = t4team web = httplib.HTTPConnection(site1) web.request("GET", dir1) r1 = web.getresponse() if (r1.status == 200): print "[+] www."+site1+dir1+" [ "+str(r1.status)+" ] Founed\n" file = open('found.txt','a') file.write("[+] www."+site1+dir1+" [ "+str(r1.status)+" ] -------\n") file.close() else : print "[-] www."+site1+dir1+" [ "+str(r1.status)+" ]"