Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcrypto committed May 11, 2021
1 parent 9af6fd7 commit 1ba4763
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def read(fname):

setup(
name = "takeover.py",
version = "0.0.5",
version = "0.0.5-fix-1",
author = "Vikrant Singh Chauhan",
author_email = "vi@hackberry.xyz",
description = ("This small script tries to detect subdomain takeovers from a list of domains. Fingerprints are taken from https://github.com/EdOverflow/can-i-take-over-xyz."),
Expand Down
8 changes: 4 additions & 4 deletions takeover/takeover.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def inform(self):
if(self.discord and len(self.messages)):
message = "Hey %s, Subdomain takeovers here:\n```%s```" % (
('<@' + self.discord_user_id + '>') if self.discord_user_id else "",
"\n".join([lambda message: ": ".join(message) for message in self.messages])
"\n".join([": ".join(message) for message in self.messages])
)
self.messages = []
self.discord.send(message)
Expand Down Expand Up @@ -83,7 +83,7 @@ async def checkHosts(self, args=[]):
except NoNameservers:
print("[x] DNS No No nameservers: %s" % validdomain)
except Timeout:
recheck.append(validdomain)
# self.recheck.append(validdomain)
print("[x] DNS Timeout: %s" % validdomain)
except NoAnswer:
print("[x] DNS No Answer for CNAME: %s" % validdomain)
Expand All @@ -92,8 +92,8 @@ async def checkHosts(self, args=[]):

[thread.join() for thread in self.allthreads]

if(len(self.recheck)):
await self.checkHosts(self.recheck)
# if(len(self.recheck)):
# await self.checkHosts(self.recheck)

except IndexError:
print("[x] No argument provided!")
Expand Down

0 comments on commit 1ba4763

Please sign in to comment.