Skip to content

Commit

Permalink
enforce timeout for requests
Browse files Browse the repository at this point in the history
  • Loading branch information
hannob committed Jul 25, 2024
1 parent 523c326 commit 7d260e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyfinder
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ if __name__ == "__main__":
if args.url:
for url in args.input:
host = urllib.parse.urlparse(url).netloc
r = requests.get(url)
r = requests.get(url, timeout=60)
keys = findkeys(r.content)
for k in keys:
writekey(k, host, args.outdir)
Expand Down

0 comments on commit 7d260e7

Please sign in to comment.