Skip to content

Commit 1f64e84

Browse files
committed
STDIN check altered to remove '-' flag dependancy
1 parent 36684c7 commit 1f64e84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

VHostScan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def main():
3434
wordlist = []
3535
word_list_types = []
3636

37-
default_wordlist = DEFAULT_WORDLIST_FILE if not arguments.stdin else None
37+
default_wordlist = DEFAULT_WORDLIST_FILE if not sys.stdin.isatty() else None
3838

39-
if arguments.stdin:
39+
if not sys.stdin.isatty():
4040
word_list_types.append('stdin')
4141
wordlist.extend(list(line for line in sys.stdin.read().splitlines()))
4242

0 commit comments

Comments
 (0)