Skip to content

Commit 787dd4c

Browse files
committed
'-' added to arguments with debug output
1 parent 7adead3 commit 787dd4c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

VHostScan.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
def print_banner():
11-
print("+-+-+-+-+-+-+-+-+-+ v. 0.3")
11+
print("+-+-+-+-+-+-+-+-+-+ v. 0.4")
1212
print("|V|H|o|s|t|S|c|a|n| Developed by @codingo_ & @__timk")
1313
print("+-+-+-+-+-+-+-+-+-+ https://github.com/codingo/VHostScan\n")
1414

@@ -27,12 +27,18 @@ def main():
2727
parser.add_argument('--unique-depth', dest='unique_depth', type=int, help='Show likely matches of page content that is found x times (default 1).', default=1)
2828
parser.add_argument("--ssl", dest="ssl", action="store_true", help="If set then connections will be made over HTTPS instead of HTTP (default http).", default=False)
2929
parser.add_argument("-oN", dest="output_normal", help="Normal output printed to a file when the -oN option is specified with a filename argument." )
30+
parser.add_argument("-", dest="stdin", action="store_true", help="By passing a blank '-' you tell VHostScan to expect input from stdin (pipe).", default=False)
3031
arguments = parser.parse_args()
3132

3233
if not os.path.exists(arguments.wordlist):
3334
print("[!] Wordlist %s doesn't exist, ending scan." % arguments.wordlistt)
3435
sys.exit()
3536

37+
if(arguments.stdin):
38+
for line in sys.stdin:
39+
print("DEBUG (stdin): %s" % line)
40+
return
41+
3642
print("[+] Starting virtual host scan for %s using port %s and wordlist %s" % (arguments.target_hosts,
3743
str(arguments.port),
3844
arguments.wordlist))

0 commit comments

Comments
 (0)