Skip to content

Commit b9876bd

Browse files
committed
Added condition to examine to read text files on windows
1 parent aa56093 commit b9876bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

searchsploit.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,8 @@ def examine(id):
612612
return
613613
if exploit[1].split(".")[1] == "pdf":
614614
os.system("firefox file:///" + path_array[ind] + "/" + exploit[1])
615+
elif(os.sys.platform == "win32"):
616+
os.system("notepad " + path_array[ind] + "/" + exploit[1])
615617
else:
616618
os.system("pager " + path_array[ind] + "/" + exploit[1])
617619
print("[EDBID]:"+exploit[0])

0 commit comments

Comments
 (0)