Skip to content

Commit

Permalink
update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rckh committed Apr 18, 2022
1 parent 1aba897 commit 4f280b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [ "$(id -u)" != "0" ]; then
exit 1
fi

echo "Downloading vaf"
echo "Downloading latest vaf binary from releases"
wget https://github.com/d4rckh/vaf/releases/latest/download/Linux-vaf
echo "Deleting previous installation of var (if it exists)"
rm /usr/bin/vaf
Expand Down
5 changes: 2 additions & 3 deletions src/utils/VafLogger.nim
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ proc printResponse*(fuzzResult: FuzzResult, fuzzArguments: FuzzArguments, thread
wordDecoded = &"({decodeUrl(fuzzResult.word)})"
if parseInt(statusCode) in {200 .. 299}:
statusColor = fgGreen
# its khaki by default
# if parseInt(statusCode) in {300 .. 399}:
# statusColor = KHAKI
if parseInt(statusCode) in {300 .. 399}:
statusColor = fgGreen
if parseInt(statusCode) in {400 .. 499}:
statusColor = fgRed

Expand Down
4 changes: 2 additions & 2 deletions src/vaf.nim
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ let p = newParser("vaf"):
option("-pf", "--prefix", default=some(""), help="The prefixes to append to the word")
option("-sf", "--suffix", default=some(""), help="The suffixes to append to the word")
option("-t", "--threads", default=some("5"), help="Number of threads")
option("-sc", "--status", default=some("200"), help="The status to filter; to 'any' to print on any status")
option("-sc", "--status", default=some("200, 204, 302, 301, 307, 401"), help="The status to filter; to 'any' to print on any status")
option("-g", "--grep", default=some(""), help="Only log if the response body contains the string")
option("-ng", "--notgrep", default=some(""), help="Only log if the response body does no contain a string")
option("-pd", "--postdata", default=some("{}"), help="Specify POST data; used only if '-m post' is set")
Expand Down Expand Up @@ -238,7 +238,7 @@ try:

# Apply the status code filter
let s: bool = len(filter(printOnStatus, proc(x: string): bool = x in resp.statusCode)) > 0

if (s or
(printOnStatus[0] == "any")) and
(((fuzzResult.word in resp.content) or decodeUrl(fuzzResult.word) in resp.content) or
Expand Down

0 comments on commit 4f280b6

Please sign in to comment.