Skip to content

Commit 00451d1

Browse files
committed
Use of webbrowser library allows using browsers besided firefox
1 parent 3fd3925 commit 00451d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

searchsploit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,8 @@ def examine(id):
630630
print("%s does not exist. Please double check that this is the correct id." % id)
631631
return
632632
if exploit[1].split(".")[1] == "pdf":
633-
os.system("firefox file:///" + path_array[ind] + "/" + exploit[1])
633+
import webbrowser
634+
webbrowser.open("file:///" + path_array[ind] + "/" + exploit[1], autoraise=True)
634635
elif(os.sys.platform == "win32"):
635636
os.system("notepad " + path_array[ind] + "/" + exploit[1])
636637
else:

0 commit comments

Comments
 (0)