mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-25 11:14:56 +02:00
28 lines
881 B
Bash
Executable File
28 lines
881 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# $1 threads, $2 domain, $3 output directory, $4 amass active recon wordlist
|
|
|
|
for i in "$@" ; do
|
|
if [[ $i == "sublist3r" ]] ; then
|
|
python3 /app/tools/Sublist3r/sublist3r.py -d $2 -t $1 -o $3/from_sublister.txt
|
|
fi
|
|
if [[ $i == "amass-passive" || $i == "amass" ]] ; then
|
|
/app/tools/amass enum --passive -d $2 -o $3/fromamass.txt
|
|
fi
|
|
if [[ $i == "amass-active" ]] ; then
|
|
/app/tools/amass enum -active -o $3/fromamass-active.txt -d $2 -brute -w $4 -config $5
|
|
fi
|
|
if [[ $i == "assetfinder" ]] ; then
|
|
assetfinder --subs-only $2 > $3/fromassetfinder.txt
|
|
fi
|
|
if [[ $i == "subfinder" ]] ; then
|
|
subfinder -d $2 -t $1 > $3/fromsubfinder.txt
|
|
fi
|
|
done
|
|
|
|
cat $3/*.txt > $3/subdomain_collection.txt
|
|
rm -rf $3/from*
|
|
sort -u $3/subdomain_collection.txt -o $3/sorted_subdomain_collection.txt
|
|
|
|
rm -rf $3/subdomain*
|