Skip to content

Instantly share code, notes, and snippets.

@deshabhishek007
Created May 17, 2024 09:55
Show Gist options
  • Save deshabhishek007/978406a29b958dfa3027dd92ed704ab8 to your computer and use it in GitHub Desktop.
Save deshabhishek007/978406a29b958dfa3027dd92ed704ab8 to your computer and use it in GitHub Desktop.
WordFence CLI notes

Wordfence CLI Guide

Installing Wordfence CLI

To install Wordfence CLI, use the following command:

pip install wordfence

Using Wordfence CLI

Wordfence CLI offers functionalities like malware scanning and vulnerability checks for your WordPress site.

Scanning for Malware

To conduct a malware scan and export the results as a CSV file, use this command:

wordfence malware-scan --output-format csv --output-path /home/wordfence-cli-scan.csv .

This scans the current directory for malware and saves the results to /home/wordfence-cli-scan.csv.

Checking for Vulnerabilities

To perform a vulnerability scan and save the results in CSV format, use this command:

wordfence vuln-scan --output-format csv --output-path /home/wordfence-cli-scan.csv .

This will scan the current directory for vulnerabilities and record the findings in /home/wordfence-cli-scan.csv.

Additional Resources

For more detailed information about the Wordfence CLI, including updates and advanced usage examples, please visit the official GitHub repository:

Wordfence CLI on GitHub

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