Last Updated: February 25, 2016
·
1.213K
· ericrallen

wpscan bash command on OSX

If you're pentesting some WordPress installs with wpscan and don't want to type the full path every time you want to use the tool, here's a simple function you can add to your profile:

 function wpscan() {
    ~/path/to/wpscan.rb "$@"
}

Obviously you'll want to replace the path/to/wpscan.rb with your actual path. I prefer keeping it in ~/Development/PenTest/wpscan/wpscan.rb.

The "$@" will send any arguments you supply to the wpscan command so you can just use it normally and all of your arguments will work.

NOTE: wpscan can be used for evil. Please only use it for good.