From 28e7a5856b82cfd1edb89037ba4061a4db73591f Mon Sep 17 00:00:00 2001 From: pry Date: Wed, 20 Jan 2021 19:53:57 +0000 Subject: [PATCH] added threads option inside of oneshot modules, now you dont need to do --threads when running subfinder --- interact/axiom-scan | 8 +++++++- modules/ffuf.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/interact/axiom-scan b/interact/axiom-scan index f38ede1e..e7c244bc 100755 --- a/interact/axiom-scan +++ b/interact/axiom-scan @@ -86,7 +86,7 @@ quiet="" silent="--silent" anew="false" cache="false" -threads="30" +threads="0" pass=() @@ -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")" diff --git a/modules/ffuf.json b/modules/ffuf.json index d8e2ef57..f807c330 100644 --- a/modules/ffuf.json +++ b/modules/ffuf.json @@ -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" }]