Skip to content

Commit

Permalink
scripts improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
maldevel committed Oct 10, 2018
1 parent ddf1a10 commit 94e0eb2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions web/dir-scanner-proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@


if [ $# -eq 3 ]; then
dirb $1 /usr/share/dirb/wordlists/big.txt -o dirb_big_results.txt -w -z 10 -p $2:$3
LOGNAME="dirb_big_results_$1"
LOGNAME=$(echo "$LOGNAME" | sed -r 's/[/]+/_/g' | sed -r 's/[.]+/_/g' | sed -r 's/[:]+//g')
LOGNAME="$LOGNAME.txt"
dirb $1 /usr/share/dirb/wordlists/big.txt -o $LOGNAME -w -z 10 -p $2:$3
else
echo "Please provide the target host, proxy host and proxy port."
echo "Please provide the target url base and the proxy host and port."
fi
7 changes: 5 additions & 2 deletions web/dir-scanner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@


if [ $# -eq 1 ]; then
dirb $1 /usr/share/dirb/wordlists/big.txt -o dirb_big_results.txt -w
LOGNAME="dirb_big_results_$1"
LOGNAME=$(echo "$LOGNAME" | sed -r 's/[/]+/_/g' | sed -r 's/[.]+/_/g' | sed -r 's/[:]+//g')
LOGNAME="$LOGNAME.txt"
dirb $1 /usr/share/dirb/wordlists/big.txt -o $LOGNAME -w
else
echo "Please provide the target host."
echo "Please provide the target url base."
fi

0 comments on commit 94e0eb2

Please sign in to comment.