diff --git a/searchsploit b/searchsploit index a18dff7eb..971476608 100755 --- a/searchsploit +++ b/searchsploit @@ -347,7 +347,7 @@ function searchsploitout() function nmapxml() { ## Feedback to the end user - echo -e "[i] Reading: '${FILE}'\n" + echo -e "[i] Reading: '${FILE}'\n" 1>&2 ## Read in XMP (IP, name, service and version) xmllint --xpath '//address/@addr|//service/@name|//service/@product|//service/@version' "${FILE}" \ @@ -699,25 +699,25 @@ for (( i=0; i<${arraylength}; i++ )); do continue ## Method #1 - File itself elif [[ -f "$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)/${files_array[${i}]}" ]]; then - echo "[i] Found (#1): $(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)/${files_array[${i}]}" - echo "[i] To remove this message, please edit \"${rc_file}\" for \"${files_array[${i}]}\" (package_array: ${package_array[${i}]})" + echo "[i] Found (#1): $(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)/${files_array[${i}]}" 1>&2 + echo "[i] To remove this message, please edit \"${rc_file}\" for \"${files_array[${i}]}\" (package_array: ${package_array[${i}]})" 1>&2 + echo 1>&2 path_array[${i}]="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)" - echo ## Method #2 - Symbolic link elif [[ -f "$(dirname "$(readlink "$0")")/${files_array[${i}]}" ]]; then - echo "[i] Found (#2): $(dirname "$(readlink "$0")")/${files_array[${i}]}" - echo "[i] To remove this message, please edit \"${rc_file}\" for \"${files_array[${i}]}\" (package_array: ${package_array[${i}]})" + echo "[i] Found (#2): $(dirname "$(readlink "$0")")/${files_array[${i}]}" 1>&2 + echo "[i] To remove this message, please edit \"${rc_file}\" for \"${files_array[${i}]}\" (package_array: ${package_array[${i}]})" 1>&2 + echo 1>&2 path_array[${i}]="$(dirname "$(readlink "$0")")" - echo else - #echo "[!] Could not find: ${files}" - #echo "[i] To remove this message, please remove \"${files_array[${i}]}\" (package_array: ${package_array[${i}]}) from \"${rc_file}\"" + #echo "[!] Could not find: ${files}" 1>&2 + #echo "[i] To remove this message, please remove \"${files_array[${i}]}\" (package_array: ${package_array[${i}]}) from \"${rc_file}\"" 1>&2 + #echo 1>&2 unset "files_array[${i}]" unset "path_array[${i}]" unset "name_array[${i}]" unset "git_array[${i}]" unset "package_array[${i}]" - #echo fi done @@ -743,7 +743,7 @@ if [[ "${XML}" -eq 1 ]]; then fi if [[ "${VERBOSE}" -ne 1 ]]; then - echo "[i] SearchSploit's XML mode (without verbose enabled). To enable: ${progname} -v --xml..." + echo "[i] SearchSploit's XML mode (without verbose enabled). To enable: ${progname} -v --xml..." 1>&2 fi ## Do the magic