mirror of
https://github.com/laramies/theHarvester.git
synced 2025-02-24 22:42:56 +08:00
Change default dictionary
This commit is contained in:
parent
1342aec3d3
commit
d6fc8c1a6d
1 changed files with 3 additions and 2 deletions
|
@ -64,7 +64,7 @@ class dns_force():
|
|||
def __init__(self, domain, dnsserver, verbose=False):
|
||||
self.domain = domain
|
||||
self.nameserver = dnsserver
|
||||
self.file = "dns-names.txt"
|
||||
self.file = "wordlists/dns-names.txt"
|
||||
self.subdo = False
|
||||
self.verbose = verbose
|
||||
try:
|
||||
|
@ -123,7 +123,7 @@ def run(self, host):
|
|||
server=self.nameserver).req(
|
||||
)
|
||||
hostip = test.answers[0]['data']
|
||||
return hostip + ":" + hostname
|
||||
return hostip + " : " + hostname
|
||||
except Exception as e:
|
||||
pass
|
||||
|
||||
|
@ -132,6 +132,7 @@ def process(self):
|
|||
for x in self.list:
|
||||
host = self.run(x)
|
||||
if host is not None:
|
||||
print host
|
||||
results.append(host)
|
||||
return results
|
||||
|
||||
|
|
Loading…
Reference in a new issue