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
JSON
andXML
formatters - 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.txt
usingpip
- Copy
.env.sample
, name it.env
and update any values - Run the scan using
./wp_sniffer/wp_sniffer
on screen instructions will guide you from there
- Import the scan manager
from wp_sniffer.scan_manager import ScanManager
- Call the
run_all
method 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_wheel
NOTE: Your.env
file 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.py
orxml.py
) found in theoutput_formatters
directory - Make sure the file contains a
format_output
with one argument. The results argument will be alist
ofdictionaries
. Whatever you return becomes the outputted result - Update the
OUTPUT_FORMATTER
variable in.env
to the name of your new formatter file