Skip to content

Instantly share code, notes, and snippets.

@xsuperbug
Forked from rootxharsh/reconme.txt
Created May 29, 2018 21:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xsuperbug/6191b86837978278cb6e1423092a35ec to your computer and use it in GitHub Desktop.
Save xsuperbug/6191b86837978278cb6e1423092a35ec to your computer and use it in GitHub Desktop.
Aquatone and gowitness
###
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