Skip to content

Commit 0756058

Browse files
committed
Fixed error with files with no extension
1 parent 00451d1 commit 0756058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

searchsploit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def examine(id):
629629
except TypeError:
630630
print("%s does not exist. Please double check that this is the correct id." % id)
631631
return
632-
if exploit[1].split(".")[1] == "pdf":
632+
if exploit[1].endswith(".pdf"):
633633
import webbrowser
634634
webbrowser.open("file:///" + path_array[ind] + "/" + exploit[1], autoraise=True)
635635
elif(os.sys.platform == "win32"):

0 commit comments

Comments
 (0)