Browse Source

Fix linting error, undefined variable

Andrew Chiles 4 năm trước cách đây
mục cha
commit
35001e339d
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      domainhunter.py

+ 2 - 2
domainhunter.py

@@ -133,13 +133,13 @@ def checkBluecoat(domain):
                     if captcha:
                         b64captcha = base64.urlsafe_b64encode(captcha.encode('utf-8')).decode('utf-8')
                     
-                        # Send CAPTCHA solution via GET since inclusion with the domain categorization request doens't work anymore
+                        # Send CAPTCHA solution via GET since inclusion with the domain categorization request doesn't work anymore
                         captchasolutionURL = 'https://sitereview.bluecoat.com/resource/captcha-request/{0}'.format(b64captcha)
                         print('[*] Submiting CAPTCHA at {0}'.format(captchasolutionURL))
                         response = s.get(url=captchasolutionURL,headers=headers,verify=False,proxies=proxies)
 
                         # Try the categorization request again
-                        response = s.post(url,headers=headers,cookies=c,json=postData,verify=False,proxies=proxies)
+                        response = s.post(url,headers=headers,json=postData,verify=False,proxies=proxies)
 
                         responseJSON = json.loads(response.text)