Be a little more clever about matching a sploit based off the edb-id
Thanks @g0tmi1k
This commit is contained in:
parent
0eb0e396ae
commit
6d4ba0dc1a
1 changed files with 5 additions and 2 deletions
|
@ -190,8 +190,11 @@ done
|
||||||
## Print the full path. If pbcopy/xclip is available then copy to the clipboard
|
## Print the full path. If pbcopy/xclip is available then copy to the clipboard
|
||||||
if [[ "${GETPATH}" -eq '1' ]]; then
|
if [[ "${GETPATH}" -eq '1' ]]; then
|
||||||
|
|
||||||
tag="$( echo ${TAGS} | tr '[:upper:]' '[:lower:]' )"
|
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}"
|
echo "The exploit should be at: ${location}"
|
||||||
|
|
||||||
# Are any copy programs available?
|
# Are any copy programs available?
|
||||||
|
|
Loading…
Add table
Reference in a new issue