@@ -2198,7 +2198,7 @@ function subtakeover() {
2198
2198
cat webs/webs.txt webs/webs_uncommon_ports.txt 2> /dev/null | anew -q webs/webs_all.txt
2199
2199
fi
2200
2200
2201
- cent update -p ${NUCLEI_TEMPLATES_PATH} & > /dev/null
2201
+ # cent update -p ${NUCLEI_TEMPLATES_PATH} &>/dev/null
2202
2202
2203
2203
if [[ $AXIOM != true ]]; then
2204
2204
if ! nuclei -update 2>> " $LOGFILE " > /dev/null; then
@@ -3241,7 +3241,7 @@ function nuclei_check() {
3241
3241
# Check if the function should run
3242
3242
if { [[ ! -f " $called_fn_dir /.${FUNCNAME[0]} " ]] || [[ $DIFF == true ]]; } && [[ $NUCLEICHECK == true ]]; then
3243
3243
start_func " ${FUNCNAME[0]} " " Templates-based Web Scanner"
3244
- cent update -p ${NUCLEI_TEMPLATES_PATH} & > /dev/null
3244
+ # cent update -p ${NUCLEI_TEMPLATES_PATH} &>/dev/null
3245
3245
# Update nuclei templates
3246
3246
nuclei -update 2>> " $LOGFILE " > /dev/null
3247
3247
@@ -3258,17 +3258,9 @@ function nuclei_check() {
3258
3258
3259
3259
# Combine url_extract_nodupes.txt, subdomains.txt, and webs_all.txt into webs_subs.txt if it doesn't exist
3260
3260
if [[ ! -s " .tmp/webs_subs.txt" ]]; then
3261
- cat webs/url_extract_nodupes.txt subdomains/subdomains.txt webs/webs_all.txt 2>> " $LOGFILE " | anew -q .tmp/webs_subs.txt
3261
+ cat subdomains/subdomains.txt webs/webs_all.txt 2>> " $LOGFILE " > .tmp/webs_subs.txt
3262
3262
fi
3263
3263
3264
- # If fuzzing_full.txt exists, process it and create webs_fuzz.txt
3265
- if [[ -s " $dir /fuzzing/fuzzing_full.txt" ]]; then
3266
- grep " ^200" " $dir /fuzzing/fuzzing_full.txt" | cut -d " " -f3 | anew -q .tmp/webs_fuzz.txt
3267
- fi
3268
-
3269
- # Combine webs_subs.txt and webs_fuzz.txt into webs_nuclei.txt and duplicate it
3270
- cat .tmp/webs_subs.txt .tmp/webs_fuzz.txt 2>> " $LOGFILE " | anew -q .tmp/webs_nuclei.txt
3271
- cat .tmp/webs_nuclei.txt | anew -q webs/webs_nuclei.txt
3272
3264
# Check if AXIOM is enabled
3273
3265
if [[ $AXIOM != true ]]; then
3274
3266
# Split severity levels into an array
@@ -3277,7 +3269,7 @@ function nuclei_check() {
3277
3269
for crit in " ${severity_array[@]} " ; do
3278
3270
printf " ${yellow} \n[$( date +' %Y-%m-%d %H:%M:%S' ) ] Running: Nuclei Severity: $crit ${reset} \n\n"
3279
3271
# Run nuclei for each severity level
3280
- nuclei -l .tmp/webs_nuclei .txt -severity " $crit " -nh -rl " $NUCLEI_RATELIMIT " -silent -retries 2 ${NUCLEI_EXTRA_ARGS} -t ${NUCLEI_TEMPLATES_PATH} -j -o " nuclei_output/${crit} _json.txt" 2>> " $LOGFILE " > /dev/null
3272
+ nuclei -l .tmp/webs_subs .txt -severity " $crit " -nh -rl " $NUCLEI_RATELIMIT " -silent -retries 2 ${NUCLEI_EXTRA_ARGS} -t ${NUCLEI_TEMPLATES_PATH} -j -o " nuclei_output/${crit} _json.txt" 2>> " $LOGFILE " > /dev/null
3281
3273
# Parse the JSON output and save the results to a text file
3282
3274
if [[ -s " nuclei_output/${crit} _json.txt" ]]; then
3283
3275
jq -r ' ["[" + .["template-id"] + (if .["matcher-name"] != null then ":" + .["matcher-name"] else "" end) + "] [" + .["type"] + "] [" + .info.severity + "] " + (.["matched-at"] // .host) + (if .["extracted-results"] != null then " " + (.["extracted-results"] | @json) else "" end)] | .[]' nuclei_output/${crit} _json.txt > nuclei_output/${crit} .txt
@@ -3297,7 +3289,7 @@ function nuclei_check() {
3297
3289
for crit in " ${severity_array[@]} " ; do
3298
3290
printf " ${yellow} \n[$( date +' %Y-%m-%d %H:%M:%S' ) ] Running: Axiom Nuclei Severity: $crit . Check results in nuclei_output folder.${reset} \n\n"
3299
3291
# Run axiom-scan with nuclei module for each severity level
3300
- axiom-scan .tmp/webs_nuclei .txt -m nuclei \
3292
+ axiom-scan .tmp/webs_subs .txt -m nuclei \
3301
3293
--nuclei-templates " $NUCLEI_TEMPLATES_PATH " \
3302
3294
-severity " $crit " -nh -rl " $NUCLEI_RATELIMIT " \
3303
3295
-silent -retries 2 " $NUCLEI_EXTRA_ARGS " -j -o " nuclei_output/${crit} _json.txt" " $AXIOM_EXTRA_ARGS " 2>> " $LOGFILE " > /dev/null
@@ -3392,7 +3384,6 @@ function fuzz() {
3392
3384
end_func " No $domain /web/webs.txts file found, fuzzing skipped " ${FUNCNAME[0]}
3393
3385
fi
3394
3386
3395
- end_func " Results are saved in $domain /fuzzing folder" " ${FUNCNAME[0]} "
3396
3387
else
3397
3388
if [[ $FUZZ == false ]]; then
3398
3389
printf " \n${yellow} [$( date +' %Y-%m-%d %H:%M:%S' ) ] ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset} \n"
@@ -4983,7 +4974,7 @@ function fuzzparams() {
4983
4974
URL_COUNT=$( wc -l < " webs/url_extract_nodupes.txt" )
4984
4975
if [[ $DEEP == true ]] || [[ $URL_COUNT -le $DEEP_LIMIT2 ]]; then
4985
4976
4986
- cent update -p ${NUCLEI_TEMPLATES_PATH} & > /dev/null
4977
+ # cent update -p ${NUCLEI_TEMPLATES_PATH} &>/dev/null
4987
4978
4988
4979
if [[ $AXIOM != true ]]; then
4989
4980
printf " ${yellow} \n[$( date +' %Y-%m-%d %H:%M:%S' ) ] Running: Nuclei Setup and Execution${reset} \n\n"
@@ -5003,7 +4994,7 @@ function fuzzparams() {
5003
4994
fi
5004
4995
5005
4996
# Execute Nuclei with the fuzzing templates
5006
- nuclei -l webs/url_extract_nodupes.txt -nh -rl " $NUCLEI_RATELIMIT " -silent -retries 2 ${NUCLEI_EXTRA_ARGS} -t ${NUCLEI_FUZZING_TEMPLATES_PATH} -dast -j -o " .tmp/fuzzparams_json.txt" < " webs/url_extract_nodupes.txt" 2>> " $LOGFILE " > /dev/null
4997
+ nuclei -l webs/url_extract_nodupes.txt -nh -rl " $NUCLEI_RATELIMIT " -silent -retries 2 ${NUCLEI_EXTRA_ARGS} -t ${NUCLEI_TEMPLATES_PATH} /dast -dast -j -o " .tmp/fuzzparams_json.txt" < " webs/url_extract_nodupes.txt" 2>> " $LOGFILE " > /dev/null
5007
4998
5008
4999
else
5009
5000
printf " ${yellow} \n[$( date +' %Y-%m-%d %H:%M:%S' ) ] Running: Axiom with Nuclei${reset} \n\n"
@@ -5013,7 +5004,7 @@ function fuzzparams() {
5013
5004
axiom-exec " git clone https://github.com/projectdiscovery/fuzzing-templates /home/op/fuzzing-templates" & > /dev/null
5014
5005
fi
5015
5006
5016
- axiom-scan .tmp/webs_nuclei .txt -m nuclei \
5007
+ axiom-scan webs/url_extract_nodupes .txt -m nuclei \
5017
5008
--remote-folder " /home/op/fuzzing-templates" \
5018
5009
-nh -rl " $NUCLEI_RATELIMIT " \
5019
5010
-silent -retries 2 " $NUCLEI_EXTRA_ARGS " -dast -j -o " .tmp/fuzzparams_json.txt" $AXIOM_EXTRA_ARGS 2>> " $LOGFILE " > /dev/null
0 commit comments