Skip to content

Instantly share code, notes, and snippets.

@arbazkiraak
Created February 20, 2020 12:03
Show Gist options
  • Save arbazkiraak/3092be013aabbcafcbe41b0665921406 to your computer and use it in GitHub Desktop.
Save arbazkiraak/3092be013aabbcafcbe41b0665921406 to your computer and use it in GitHub Desktop.
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