-
-
Save xsuperbug/6191b86837978278cb6e1423092a35ec to your computer and use it in GitHub Desktop.
Aquatone and gowitness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
If you use kali or any distro over SSH (like Droplet or VM with no GUI), You might have noticed aquatone does require xorg. | |
This few lines will help you create a report of domains with response headers and screenshots using gowitness. | |
Gowitness : https://github.com/sensepost/gowitness | |
Aquatone : https://github.com/michenriksen/aquatone | |
> Setup Kali Linux Hyper-V OR Ubuntu droplet | |
> Set VM/Droplet to Apache on boot. (Also SSH if it's VM) | |
> Set VM to start on host boot | |
sudo apt-get install chromium | |
cd && wget {{gowitness binary url}} -O gowitness && chmod +x gowitness | |
mkdir /var/www/html/reconme | |
Add bellow alias in $HOME/.bashrc | |
exec $SHELL | |
### | |
alias reconme='function gowitness() | |
{ | |
mkdir $1 | |
$HOME/./gowitness --chrome-path=/usr/bin/chromium file --source=$HOME/aquatone/$1/urls.txt -d $1/ -D /var/www/html/reconme/$1/.gowitness-$1.db | |
$HOME/./gowitness --chrome-path=/usr/bin/chromium -D /var/www/html/reconme/$1/.gowitness-$1.db generate | |
mv report.html $1/index.html | |
sed -i -e 's%var\/www\/html\/%%g' $1/index.html | |
chown -R www-data:www-data /var/www/html/reconme | |
} | |
function reconme() | |
{ | |
cd /var/www/html/reconme | |
if [ -f $HOME/aquatone/$1/urls.txt ]; then | |
gowitness $1 | |
else | |
aquatone-discover -d $1 --threads 50 && aquatone-scan --threads 50 --ports huge -d $1 | |
gowitness $1 | |
fi | |
};reconme' | |
#Open http://ip/reconme/{{target.com}}/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment