Skip to content

Commit 2909da4

Browse files
committed
Added lines to remove quotes around titles
1 parent 80fb8e1 commit 2909da4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

searchsploit.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,12 @@ def searchsploitout():
407407
separater(COL/4, "", os.path.abspath(path_array[i]))
408408
drawline(lim) # display title for every database
409409
for lines in query:
410+
# Removing quotes around title if present
411+
if (lines[0][0] == "\"" or lines[0][0] == "\'"):
412+
lines[0] = lines[0][1:]
413+
if (lines[0][-1] == "\"" or lines[0][-1] == "\'"):
414+
lines[0] = lines[0][:-1]
415+
410416
if WEBLINK: # if requesting weblinks. shapes the output for urls
411417
lines[1] = "https://www.exploit-db.com/" + \
412418
lines[1][:lines[1].index("/")] + "/" + lines[2]

0 commit comments

Comments
 (0)