Be a little more clever about matching a sploit based off the edb-id

Thanks @g0tmi1k
This commit is contained in:
Leon Jacobs 2016-03-19 11:23:04 +02:00
parent 0eb0e396ae
commit 6d4ba0dc1a

View file

@ -191,7 +191,10 @@ done
if [[ "${GETPATH}" -eq '1' ]]; then
tag="$(echo ${TAGS} | tr '[:upper:]' '[:lower:]')"
location=${gitpath}/platforms/${tag//.\//}
edbid=$(echo "${tag}" | tr -dc '0-9')
edbpath=$(awk -F ',' '{print $2}' ${csvpath} | grep -E "/${edbid}(\..*)?$")
location="${gitpath}/${edbpath}"
echo "The exploit should be at: ${location}"
# Are any copy programs available?