Last active
November 7, 2018 14:09
-
-
Save ZephrFish/4c4082aa0ce900fe269d9bb6a5b73188 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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