Tag Archives: Simple Python List that checks a file list to see if a webserver HTTP is running

Simple Python List that checks a file list to see if a webserver HTTP is running

#!/usr/bin/python import sys, httplib def main(host, path): try:# make a http HEAD request h = httplib.HTTP(host) h.putrequest(“HEAD”, “/”+path.strip(“n”)) h.putheader(“Host”, host) h.endheaders() status, reason, headers = h.getreply() print “[+]”,host+”/”+path.strip(“n”),”:”,status, reason except: print “[-] Error Occurred” pass if len(sys.argv) != 2: print “Usage: ./getresp.py <list of sites>” sys.exit(1) print “n d3hydr8[at]gmail[dot]com getResp v1.0” print “———————————————-” try: list1… Read More »

Share Button