From bd3cac3bb63b1d798bc9a795425dd17a4d9ac4e0 Mon Sep 17 00:00:00 2001 From: g0tmi1k Date: Wed, 26 Oct 2016 12:06:57 +0100 Subject: [PATCH] Escape slashes if using '-t' --- searchsploit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/searchsploit b/searchsploit index f03aea285..f592f1112 100755 --- a/searchsploit +++ b/searchsploit @@ -406,6 +406,9 @@ else SEARCH="${SEARCH}/ && ${CASE_TAG_FGREP}(\$1) ~ /" fi + ## Escape any slashes + tag="$( echo ${tag} | sed 's_/_\\/_g' )" + ## Case sensitive? if [[ "${SCASE}" -eq 1 ]]; then SEARCH="${SEARCH}${tag}"