Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Fix #97 - JSON Formatting Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
g0tmi1k committed Aug 29, 2017
1 parent 711d6a6 commit 0417b1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions searchsploit
Original file line number Diff line number Diff line change
Expand Up @@ -693,9 +693,9 @@ elif [[ "${EDBID}" -eq 1 ]]; then
## Print JSON format (full options) ("--json")?
elif [[ "${JSON}" -eq 1 ]]; then
OUTPUT="$( eval ${SEARCH} \
| awk -F ',' '{ printf "\r\t\t'{'\"Exploit\":\"%s\",\"Platform\":\"%s\",\"Type\":\"%s\",\"Date\":\"%s\",\"Path\":\"'${gitpath}/'%s\",\"EDB-ID\":%s},\n", $2, $5, $6, $4, $3, $1 }' \
| sed '$ s/,$//g' \
| sort )"
| awk -F ',' '{ printf "\r\t\t'{'\"Exploit\":\"%s\",\"Platform\":\"%s\",\"Type\":\"%s\",\"Date\":\"%s\",\"Path\":\"'${gitpath}/'%s\",\"EDB-ID\":\"%s\"},\n", $2, $5, $6, $4, $3, $1 }' \
| sort \
| sed '$ s/,$//g' )"
## Default view
else
OUTPUT="$( eval ${SEARCH} \
Expand Down

0 comments on commit 0417b1f

Please sign in to comment.