Python socket.recv in Loop Only Receiving Once
Go to solution
Solved by LtStaffel,
For any with the same issue, using requests solved this for me.
Spoiler
import requests import time exts = ['conf', 'bak', 'swp', 'txt', 'old', 'tar', 'gz', 'bz2', 'zip'] pre = ['old', 'bak', 'backup', 'copyof'] session = requests.head("http://challenge01.root-me.org/") if session.status_code == 200: print "[i] Connection is working." http = "http://challenge01.root-me.org" file = "/realiste/ch1/login.php" urls = [] codes = [] def store(request, code): urls.append(request) codes.append(code) for ext in exts: req = http + file + "." + ext connection = requests.head(req) store(req, connection.status_code) time.sleep(0.1) for search in range(0, len(codes)): ecx = 1 if codes[search] != 404: print "=============" print "[" + str(ecx) + "] URL ::: " + urls[search].replace("\n", "").replace("\r", "") print "|__ COD ::: " + str(codes[search]) print "=============" print "[*] Done."

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now