Skip to content

Commit

Permalink
Fix bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
itakaesu committed Feb 22, 2021
1 parent b76f93c commit d32ced7
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions modules/Gyoi_DomainTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def reverse_whois(self, search_word):
search_word)

# Send request.
res, _, _, res_body, _ = utility.send_request('GET', target_url)
res, _, _, res_body, _ = self.utility.send_request('GET', target_url)
if res is None or res.status >= 400:
self.utility.print_message(FAIL, 'Could not access to {}.'.format(target_url))
return []
Expand Down Expand Up @@ -96,7 +96,7 @@ def reverse_nslookup(self, search_word):
timestamp)

# Send request.
res, _, _, res_body, _ = utility.send_request('GET', target_url)
res, _, _, res_body, _ = self.utility.send_request('GET', target_url)
if res is None or res.status >= 400:
self.utility.print_message(FAIL, 'Could not access to {}.'.format(target_url))
return []
Expand Down Expand Up @@ -136,7 +136,7 @@ def whois_lookup(self, domain):
target_url = 'https://{}{}'.format(self.api_host, self.uri_whois_lookup)

# Send request.
res, _, _, res_body, _ = utility.send_request('GET', target_url)
res, _, _, res_body, _ = self.utility.send_request('GET', target_url)
if res is None or res.status >= 400:
self.utility.print_message(FAIL, 'Could not access to {}.'.format(target_url))
return False, [], [], [], [], [], [], [], [], [], [], []
Expand Down Expand Up @@ -217,14 +217,3 @@ def whois_lookup(self, domain):

return True, contact, registrant_name, registrant_organization, registrant_email, admin_name, \
admin_organization, admin_email, tech_name, tech_organization, tech_email, name_server


if __name__ == '__main__':
utility = Utilty()

dt = DomainTools(utility)
# domain_list = dt.reverse_whois('mitsuifodosan.co.jp')
# domain_list2 = dt.reverse_nslookup('ns3.mitsuifudosan.co.jp')
domain_list3 = dt.whois_lookup('domaintools.com')

print()

0 comments on commit d32ced7

Please sign in to comment.