diff --git a/searchsploit b/searchsploit index bea9ed1b7..2c9291619 100755 --- a/searchsploit +++ b/searchsploit @@ -196,15 +196,15 @@ if [[ "${GETPATH}" -eq 1 ]]; then edbdb="$( echo ${TAGS} | tr -dc '0-9' )" ## Check files.csv location=$( cut -d, -f2 "${csvpath}" | grep -m 1 -E "/${edbdb}(\..*)?$" ) - title=$( grep -m 1 "${location}" "${csvpath}" | cut -d, -f3 ) + title=$( grep -m 1 "${location}" "${csvpath}" | cut -d, -f3 | sed 's/"//g') ## Join paths location="${gitpath}/${location}" ## Did we find the exploit? if [[ -f "${location}" ]]; then ## Display out - echo " EDB-ID: ${title}" - echo "Exploit: ${location}" + echo "Exploit: ${title}" + echo " Path: ${location}" echo "" ## Are any copy programs available? @@ -212,11 +212,11 @@ if [[ "${GETPATH}" -eq 1 ]]; then ## Linux if hash xclip 2>/dev/null; then echo -ne "${location}" | xclip -selection clipboard - echo "Copied exploit path to the clipboard." + echo "Copied the file path to the clipboard." ## OSX elif hash pbcopy 2>/dev/null; then echo -ne "${location}" | pbcopy - echo "Copied exploit path to the clipboard." + echo "Copied the file path to the clipboard." fi fi @@ -224,7 +224,7 @@ if [[ "${GETPATH}" -eq 1 ]]; then exit 0 else ## Feedback - echo "Could not find exploit ${edbdb}" + echo "Could not find exploit EDB-ID #${edbdb}" ## Quit exit 1