Skip to content

Commit

Permalink
added threads option inside of oneshot modules, now you dont need to …
Browse files Browse the repository at this point in the history
…do --threads when running subfinder
  • Loading branch information
pry authored and pry committed Jan 20, 2021
1 parent 4c65a3f commit 28e7a58
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion interact/axiom-scan
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ quiet=""
silent="--silent"
anew="false"
cache="false"
threads="30"
threads="0"

pass=()

Expand Down Expand Up @@ -247,9 +247,15 @@ else
fi

ext=$(echo $mod_data | jq -r '.ext')
default_threads=$(echo $mod_data | jq -r '.threads?')
clean="$(echo "$wordlist" | sed 's/\//\\\//g')"
wordlist="$clean"

if [[ "$threads" -lt "1" ]]; then
if [[ "$default_threads" -gt 0 ]]; then
threads="$default_threads"
fi
fi

if [[ "$command" =~ "_wordlist_" ]]; then
new_command="$(echo "$command" | sed "s/_wordlist_/$wordlist/g")"
Expand Down
2 changes: 1 addition & 1 deletion modules/ffuf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[{
"command":"/home/op/go/bin/ffuf -w _wordlist_ -u '_target_/FUZZ' -of csv -o _output_/$RANDOM.txt -ac",
"wordlist":"~/lists/pry-web-quick.txt",
"wordlist":"/home/op/lists/seclists/Discovery/Web-Content/big.txt",
"ext":"csv",
"threads":"1"
}]

0 comments on commit 28e7a58

Please sign in to comment.