mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-17 23:37:47 +02:00
117 lines
3.6 KiB
Bash
Executable File
117 lines
3.6 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
python3 manage.py makemigrations
|
|
python3 manage.py migrate
|
|
python3 manage.py collectstatic --no-input --clear
|
|
|
|
# Load default engines, keywords, and external tools
|
|
python3 manage.py loaddata fixtures/default_scan_engines.yaml --app scanEngine.EngineType
|
|
python3 manage.py loaddata fixtures/default_keywords.yaml --app scanEngine.InterestingLookupModel
|
|
python3 manage.py loaddata fixtures/external_tools.yaml --app scanEngine.InstalledExternalTool
|
|
|
|
# update whatportis
|
|
yes | whatportis --update
|
|
|
|
# clone dirsearch default wordlist
|
|
if [ ! -d "/usr/src/wordlist" ]
|
|
then
|
|
echo "Making Wordlist directory"
|
|
mkdir /usr/src/wordlist
|
|
fi
|
|
|
|
if [ ! -f "/usr/src/wordlist/" ]
|
|
then
|
|
echo "Downloading Default Directory Bruteforce Wordlist"
|
|
wget https://raw.githubusercontent.com/maurosoria/dirsearch/master/db/dicc.txt -O /usr/src/wordlist/dicc.txt
|
|
fi
|
|
|
|
# check if default wordlist for amass exists
|
|
if [ ! -f /usr/src/wordlist/deepmagic.com-prefixes-top50000.txt ];
|
|
then
|
|
echo "Downloading Deepmagic top 50000 Wordlist"
|
|
wget https://raw.githubusercontent.com/danielmiessler/SecLists/master/Discovery/DNS/deepmagic.com-prefixes-top50000.txt -O /usr/src/wordlist/deepmagic.com-prefixes-top50000.txt
|
|
fi
|
|
|
|
# clone Sublist3r
|
|
if [ ! -d "/usr/src/github/Sublist3r" ]
|
|
then
|
|
echo "Cloning Sublist3r"
|
|
git clone https://github.com/aboul3la/Sublist3r /usr/src/github/Sublist3r
|
|
fi
|
|
python3 -m pip install -r /usr/src/github/Sublist3r/requirements.txt
|
|
|
|
# clone OneForAll
|
|
if [ ! -d "/usr/src/github/OneForAll" ]
|
|
then
|
|
echo "Cloning OneForAll"
|
|
git clone https://github.com/shmilylty/OneForAll /usr/src/github/OneForAll
|
|
fi
|
|
python3 -m pip install -r /usr/src/github/OneForAll/requirements.txt
|
|
|
|
# clone eyewitness
|
|
if [ ! -d "/usr/src/github/EyeWitness" ]
|
|
then
|
|
echo "Cloning EyeWitness"
|
|
git clone https://github.com/FortyNorthSecurity/EyeWitness /usr/src/github/EyeWitness
|
|
# pip install -r /usr/src/github/Eyewitness/requirements.txt
|
|
fi
|
|
|
|
# clone theHarvester
|
|
if [ ! -d "/usr/src/github/theHarvester" ]
|
|
then
|
|
echo "Cloning theHarvester"
|
|
git clone https://github.com/laramies/theHarvester /usr/src/github/theHarvester
|
|
fi
|
|
python3 -m pip install -r /usr/src/github/theHarvester/requirements/base.txt
|
|
|
|
# install h8mail
|
|
python3 -m pip install h8mail
|
|
|
|
# install gf patterns
|
|
if [ ! -d "/root/Gf-Patterns" ];
|
|
then
|
|
echo "Installing GF Patterns"
|
|
mkdir ~/.gf
|
|
cp -r $GOPATH/src/github.com/tomnomnom/gf/examples/*.json ~/.gf
|
|
git clone https://github.com/1ndianl33t/Gf-Patterns ~/Gf-Patterns
|
|
mv ~/Gf-Patterns/*.json ~/.gf
|
|
fi
|
|
|
|
# store scan_results
|
|
if [ ! -d "/usr/src/scan_results" ]
|
|
then
|
|
mkdir /usr/src/scan_results
|
|
fi
|
|
|
|
# test tools, required for configuration
|
|
naabu && subfinder && amass
|
|
nuclei
|
|
|
|
if [ ! -d "/root/nuclei-templates/geeknik_nuclei_templates" ];
|
|
then
|
|
echo "Installing Geeknik Nuclei templates"
|
|
git clone https://github.com/geeknik/the-nuclei-templates.git ~/nuclei-templates/geeknik_nuclei_templates
|
|
else
|
|
echo "Removing old Geeknik Nuclei templates and updating new one"
|
|
rm -rf ~/nuclei-templates/geeknik_nuclei_templates
|
|
git clone https://github.com/geeknik/the-nuclei-templates.git ~/nuclei-templates/geeknik_nuclei_templates
|
|
fi
|
|
|
|
if [ ! -f ~/nuclei-templates/ssrf_nagli.yaml ];
|
|
then
|
|
echo "Downloading ssrf_nagli for Nuclei"
|
|
wget https://raw.githubusercontent.com/NagliNagli/BountyTricks/main/ssrf.yaml -O ~/nuclei-templates/ssrf_nagli.yaml
|
|
fi
|
|
|
|
if [ ! -d "/usr/src/github/CMSeeK" ]
|
|
then
|
|
echo "Cloning CMSeeK"
|
|
git clone https://github.com/Tuhinshubhra/CMSeeK /usr/src/github/CMSeeK
|
|
pip install -r /usr/src/github/CMSeeK/requirements.txt
|
|
fi
|
|
|
|
exec "$@"
|
|
|
|
# httpx seems to have issue, use alias instead!!!
|
|
echo 'alias httpx="/go/bin/httpx"' >> ~/.bashrc
|