Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Send Urls to Burp
#!/usr/bin/python3
import requests,sys
import urllib3,queue,threading
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
headers = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36'}
proxies = {'http':'http://127.0.0.1:8080','https':'http://127.0.0.1:8080'}
urls_inp = sys.argv[1]
threads_list = []
q = queue.Queue()
THREADS_NUM = 10
def processQueue():
while not q.empty():
get_url = q.get()
try:
r = requests.get(str(get_url),headers=headers,proxies=proxies,verify=False,timeout=5)
print(q.qsize(),get_url,r.status_code)
except Exception as e:
print('EXCEPTION : {} : {}'.format(get_url,e))
pass
if urls_inp:
with open(urls_inp,'r') as f:
for i in f.readlines():
i = i.strip()
q.put(i)
for j in range(THREADS_NUM):
j = threading.Thread(target=processQueue)
threads_list.append(j)
j.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment