We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b220e71 commit 471ad5aCopy full SHA for 471ad5a
searchsploit.py
@@ -539,7 +539,10 @@ def nmapxml(file=""):
539
540
# First check whether file exists or use stdin
541
try:
542
- contentFile = open(file, "r")
+ if (type(file) == str):
543
+ contentFile = open(file, "r")
544
+ else:
545
+ contentFile = file # if file access, link directly to file pointer
546
content = contentFile.read()
547
contentFile.close()
548
except:
@@ -606,7 +609,10 @@ def nmapgrep(file=""):
606
609
607
610
608
611
612
613
614
615
+ contentFile = file
616
617
618
0 commit comments