Skip to content

Instantly share code, notes, and snippets.

@greenbicycle
Last active April 9, 2020 14:47
Show Gist options
  • Save greenbicycle/abceafbec3be09969ad5 to your computer and use it in GitHub Desktop.
Save greenbicycle/abceafbec3be09969ad5 to your computer and use it in GitHub Desktop.
Quick script to scan multiple domains with wpscan
#!/bin/bash
#
# Use WPScan to scan sites running Wordpress
# and Store the output somewhere
#
domains='domain1.com example2.com example.com'
# Where do you want output to go? Better without trailing slash
destination=~/Dropbox/wpscans
for n in $domains; do
echo -e "\nScanning $n ... "
ruby ~/scripts/wpscan/wpscan.rb --url $n \
--batch \
--no-color > $destination/$n.wpscan.log
done
@jtomara
Copy link

jtomara commented Nov 22, 2017

I can't figure out how to execute this. Can you please help? I set permissions (chmod +x) ran the script, but get permissions error.

Copy link

ghost commented Aug 21, 2018

@jtomara, try
sudo ./<filename>
after you have used chmod +x

@greenbicycle
It seems that the script is expecting a named log file for each domain that is listed? Should it not create new log files?

@tristanlatr
Copy link

Helllo,
If you like something a bit more advanced, you can install WPWatcher and call wpwatcher --url domain1.com example2.com example.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment