Skip to content

Commit

Permalink
Disabled TLS warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
elceef committed Jun 18, 2019
1 parent 22a3afa commit d24e3c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dnstwist.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# _ _ _ _
# __| |_ __ ___| |___ _(_)___| |_
Expand Down Expand Up @@ -72,6 +72,7 @@

try:
import requests
requests.packages.urllib3.disable_warnings()
MODULE_REQUESTS = True
except ImportError:
MODULE_REQUESTS = False
Expand Down Expand Up @@ -697,7 +698,7 @@ def run(self):
if self.option_ssdeep:
if 'dns-a' in domain:
try:
req = requests.get(self.uri_scheme + '://' + domain['domain-name'] + self.uri_path + self.uri_query, timeout=REQUEST_TIMEOUT_HTTP, headers={'User-Agent': 'Mozilla/5.0 (dnstwist)'})
req = requests.get(self.uri_scheme + '://' + domain['domain-name'] + self.uri_path + self.uri_query, timeout=REQUEST_TIMEOUT_HTTP, headers={'User-Agent': 'Mozilla/5.0 (dnstwist)'}, verify=False)
#ssdeep_fuzz = ssdeep.hash(req.text.replace(' ', '').replace('\n', ''))
ssdeep_fuzz = ssdeep.hash(req.text)
except Exception:
Expand Down

0 comments on commit d24e3c6

Please sign in to comment.