diff --git a/searchsploit b/searchsploit index 685c056d9..10d5f03e4 100755 --- a/searchsploit +++ b/searchsploit @@ -1,8 +1,9 @@ #!/bin/bash # Name: SearchSploit - Exploit-DB's CLI search tool -# Version: 3.7.3 (Release date: 2016-12-20) +# Version: 3.7.4 (Release date: 2017-03-17) # Written by: Offensive Security, Unix-Ninja, and g0tmi1k # Homepage: https://github.com/offensive-security/exploit-database +# Manual: https://www.exploit-db.com/searchsploit/ # ## NOTE: # Exit code '0' means finished normally @@ -67,6 +68,8 @@ function usage() echo " ${progname} -t oracle windows" echo " ${progname} -p 39446" echo + echo " For more examples, see the manual: https://www.exploit-db.com/searchsploit/" + echo echo "=========" echo " Options " echo "=========" @@ -323,7 +326,7 @@ function nmapxml() done ## Read in from file (so there are no duplicates - ...but unable to print out IPs) - cat /tmp/searchsploit.tmp /tmp/searchsploit.out 2>/dev/null | tr '[:upper:]' '[:lower:]' | awk '!x[$0]++' | while read software; do + cat /tmp/searchsploit.out /tmp/searchsploit.tmp 2>/dev/null | tr '[:upper:]' '[:lower:]' | awk '!x[$0]++' | while read software; do searchsploitout done } @@ -584,7 +587,7 @@ if [[ "${JSON}" -eq 0 ]]; then else echo "| Path" printf "%-${COL1}s " - echo "| (${gitpath}/platforms)" + echo "| (${gitpath}/platforms/)" fi drawline ## Print JSON header @@ -598,7 +601,7 @@ fi ## JSON require full options if [[ "${JSON}" -eq 1 ]]; then - ## Read in id, title, path, type, date, plateform separated between commas + ## Read in id, title, path, type, date, platform separated between commas SEARCH="awk -F '[,]' '{print \$1\",\"\$2\",\"\$3\",\"\$4\",\"\$6\",\"\$7}' \"${csvpath}\"" else ## Read in id, title and path, separated between commas (as these are the only visible fields) @@ -659,7 +662,7 @@ elif [[ "${JSON}" -eq 1 ]]; then else OUTPUT="$( eval ${SEARCH} \ | awk -F ',' '{ printf "%-'${FORMAT}'s | %s\n", $3, $2 }' \ - | sed 's/| platforms/| /' )" + | sed 's_| platforms/_| _' )" fi