Will detect information about a WordPress site including
- Core version
- Plugins and their versions
- Theme in use and its version
- Can detect all plugins available on WordPress.org
- List of WordPress.org plugins are parsed into a CSV file for easy processing by other programs
- Comes with
JSONandXMLformatters - Write your own formatters so you can fully control the output
The tests are enumerative so the results may not always be 100% accurate
- Install all required packages in
requirements.txtusingpip - Copy
.env.sample, name it.envand update any values - Run the scan using
./wp_sniffer/wp_snifferon screen instructions will guide you from there
- Import the scan manager
from wp_sniffer.scan_manager import ScanManager - Call the
run_allmethod passing the url to scan - egScanManager().run_all('http://my-wordpress-site.com')
- Fork the repo as normal and make any changes you'd like
- To build run:
python3 setup.py bdist_wheelNOTE: Your.envfile is also built into the package not.env.sample - In your other python project you can install your fork by calling
pip install LOCATION_OF_YOUR_setup.py_FILE_HERE --no-cache-dir
- Copy and paste one of the default formatters (either
json.pyorxml.py) found in theoutput_formattersdirectory - Make sure the file contains a
format_outputwith one argument. The results argument will be alistofdictionaries. Whatever you return becomes the outputted result - Update the
OUTPUT_FORMATTERvariable in.envto the name of your new formatter file