Skip to content

Commit ffc244b

Browse files
committed
fixed stdin conflict between argparse and os
1 parent 9b2d350 commit ffc244b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

searchsploit.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def nmapxml(file=""):
517517

518518
# ## Feedback to enduser
519519
if (type(file) == str):
520-
print("[i] Reading: " + highlightTerm(str(file), str(file), True))
520+
print("[i] Reading: " + highlightTerm(str(file), str(file), True))
521521
else:
522522
print("[i] Reading: " + highlightTerm(file.name, file.name, True))
523523
tmpaddr = ""
@@ -706,12 +706,10 @@ def run():
706706
if not result:
707707
parser.print_help()
708708
return
709-
print(result)
710-
return
711709

712710
terms.extend(parseArgs.searchTerms)
713711

714-
if (not os.sys.stdin.isatty()):
712+
if (parseArgs.nmap == None and not os.sys.stdin.isatty()):
715713
text = str(os.sys.stdin.read())
716714
terms.extend(text.split())
717715

0 commit comments

Comments
 (0)