Skip to content

Instantly share code, notes, and snippets.

@ZephrFish
Last active November 7, 2018 14:09
Show Gist options
  • Save ZephrFish/4c4082aa0ce900fe269d9bb6a5b73188 to your computer and use it in GitHub Desktop.
Save ZephrFish/4c4082aa0ce900fe269d9bb6a5b73188 to your computer and use it in GitHub Desktop.
import requests
import sys
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
def quickWin(url, paths):
with open(paths, 'r') as f:
for path in f.read().splitlines():
normalresponse = requests.get(url.rstrip() + "/" + str(path.rstrip()), verify=False)
if str(normalresponse.status_code) == "200":
print(url.rstrip() + "/" + str(path.rstrip()), normalresponse.status_code)
else:
print("Nothing")
if __name__ == '__main__':
quickWin(sys.argv[1], sys.argv[2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment