Skip to content

Commit 8eb17c7

Browse files
committed
Closes #43 - Added reverse lookup support for new targets
1 parent 255e44a commit 8eb17c7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

VHostScan.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import os
44
import sys
55
from argparse import ArgumentParser
6+
from dns.resolver import Resolver
7+
from socket import gethostbyaddr
68
from lib.core.virtual_host_scanner import *
79
from lib.helpers.output_helper import *
810
from lib.core.__version__ import __version__
@@ -78,6 +80,12 @@ def main():
7880
if(arguments.ignore_content_length > 0):
7981
print("[>] Ignoring Content length: %s" % (arguments.ignore_content_length))
8082

83+
for ip in Resolver().query(arguments.target_hosts, 'A'):
84+
host, aliases, ips = gethostbyaddr(str(ip))
85+
wordlist.append(str(ip))
86+
wordlist.append(host)
87+
wordlist.extend(aliases)
88+
8189
scanner_args = vars(arguments)
8290
scanner_args.update({'target': arguments.target_hosts, 'wordlist': wordlist})
8391
scanner = virtual_host_scanner(**scanner_args)

0 commit comments

Comments
 (0)