Skip to main content

Command-line malware scanner powered by Wordfence

Project description

Wordfence CLI

Wordfence CLI is an open source, high performance, multi-process security scanner, written in Python, that quickly scans network filesystems to detect PHP/other malware and WordPress vulnerabilities. CLI is parallelizable, can be scheduled, can accept input via pipe, and can pipe output to other commands.

Installation

We have a number of installation methods to install Wordfence CLI in our installation documentation which we'd recommend reviewing to get you scanning for malware in as few steps as possible.

We recommend installing using pip:

pip install wordfence

If you'd like to install Wordfence CLI manually or use CLI for development, you can clone the GitHub repo to your local environment:

git clone git@github.com:wordfence/wordfence-cli.git
cd ./wordfence-cli
pip install .
python main.py version

Requirements

  • Python >= 3.8
  • The C library libpcre >= 8.38
  • Python packages:
    • packaging >= 21.0
    • requests >= 2.3
    • mysql-connector-python >= 8.0

Obtaining a license

Visit https://www.wordfence.com/products/wordfence-cli/ to obtain a license to download our signature set.

Usage

You can run wordfence help for a full list of options that can be passed to Wordfence CLI. Read more about the configuration options that can be passed to Wordfence CLI.

Scanning a directory for malware

Recursively scanning the /var/www directory for malware:

wordfence malware-scan /var/www

A full list of examples for the malware scan is included in our documentation.

Scanning a WordPress installation for vulnerabilities

Scanning the /var/www/wordpress directory for vulnerabilities.

wordfence vuln-scan /var/www/wordpress

A full list of examples for the vulnerability scan is included in our documentation.

Documentation

The full documentation for Wordfence CLI can be found here which includes installation instructions, configuration options, detailed examples, and frequently asked questions.

License

Wordfence CLI is open source, licensed under GPLv3. The license can be found here.

Contributing

See our contribution guidelines.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wordfence-5.0.4.tar.gz (161.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wordfence-5.0.4-py3-none-any.whl (185.0 kB view details)

Uploaded Python 3

File details

Details for the file wordfence-5.0.4.tar.gz.

File metadata

  • Download URL: wordfence-5.0.4.tar.gz
  • Upload date:
  • Size: 161.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.18

File hashes

Hashes for wordfence-5.0.4.tar.gz
Algorithm Hash digest
SHA256 926f3a09e8dcd5752be25e9025248f6a56de2d14e3cb6483fbdd1b6f2d6f2788
MD5 3fa1c9f226dfcf10e896cb002377b755
BLAKE2b-256 381e2518d9bf68bd4ab6ba9a05af100f6fdf50d8c8e4dd267b57998228447dfe

See more details on using hashes here.

File details

Details for the file wordfence-5.0.4-py3-none-any.whl.

File metadata

  • Download URL: wordfence-5.0.4-py3-none-any.whl
  • Upload date:
  • Size: 185.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.18

File hashes

Hashes for wordfence-5.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e49ba906f872d01decfb38f632c81f067732d996109a421b8f20b8d1db2636fd
MD5 5bef4fac38c8d22ff16b2b1ebc629bf1
BLAKE2b-256 245528e004f446aca57750a5e457c280190a3a64010efbb6f0e104582a5f0220

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page