Skip to main content

Python package for grammar-based Layer 2 fuzzing

Project description

Introduction

Qwilfish is a Python package for fuzzing various Ethernet-related protocols. It is a work in progress and the first goal is grammar-based generation of LLDP frames (IEEE 802.1AB).

[[TOC]]

Installation

Prerequisites

  • A Linux system
  • Python3.8 (higher versions will probably work too, but no guarantees)
  • Root privileges (for changing the capabilities of Python binary)

Create a virtual environment

It is recommended to create a virtual environment first:

$ python -m venv venv
$ source venv/bin/activate

Install with pip

To install Qwilfish simply type:

$ pip install qwilfish

Install from source

To install Qwilfish from source type:

$ git clone https://gitlab.com/zluudg/qwilfish.git
$ cd qwilfish
$ pip install .

Qwilfish also supports an editable install:

$ pip install -e .

Setting capabilities

Qwilfish writes packets to raw sockets, which is prohibited for normal users. It is not recommended to install or run Qwilfish as root, however. Instead, change the capabilities of your Python binary:

$ sudo setcap cap_net_raw=eip /path/to/python/binary

Usage

Basic usage

Qwilfish can be invoked without any commands:

$ qwilfish

It will then send one fuzzed LLDP packet on the loopback interface.

To send ten packets on the loopback interface, type:

$ qwilfish -c 10

Set logging level to DEBUG:

$ qwilfish -d

Advanced Configuration

There are some possibilities to configure a Qwilfish session beyond what is offered by the CLI. Please refer to this guide for more info.

Writing Plugins

Certain components in Qwilfish can be replaced in a plugin fashion. For more info check out this guide.

Credit

This project is more than heavily inspired by The Fuzzing Book. Be sure to check it out!

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

qwilfish-0.4.1.tar.gz (12.6 MB view details)

Uploaded Source

Built Distribution

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

qwilfish-0.4.1-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

Details for the file qwilfish-0.4.1.tar.gz.

File metadata

  • Download URL: qwilfish-0.4.1.tar.gz
  • Upload date:
  • Size: 12.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for qwilfish-0.4.1.tar.gz
Algorithm Hash digest
SHA256 a4e0cb8e685f013ca3de58042aa433117d37fa88465938da07c381d922564ba5
MD5 49ab5fbb7c9d30be602d533dc5dcf876
BLAKE2b-256 80360e5189605caf4543e05b71cb3f79efe7becb512c6228175f026b458b7c6f

See more details on using hashes here.

File details

Details for the file qwilfish-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: qwilfish-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 31.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for qwilfish-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b302d7285684523547bcc9d404ba8e71c53552af3c3d5db0bb8386031d0eb5b3
MD5 5b6dde770a2d0ab1d24607d2dbec31b4
BLAKE2b-256 3448127086fd829d229d7b9d47c271946d6621f2aebab722e14dd51991bda4d5

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