ReferenceManual (original) (raw)

Introduction

This document tries to describe and explain all functions the commandline-client provides. Please notice that this document always refers to the latest stable versions so actual functionality might differ if you use code from svn-trunk.

One or more options may be given on the commandline to customize a command:pyrit [options] commandThe exact behaviour of options depends on the command and is described in the specific section further below.

Options

Pyrit recognizes the following options:

Specifies a BSSID. Can be used to restrict commands to certain Access-Points.
Specifies the ESSID. Commands usually refer to all ESSIDs in the database if this option is omitted.
Specifies a filename to read from; the special filename '-' can be used for _stdin_. The file may be gzip-compressed in which case it's name must end in '.gz' for transparent decompression.
Specifies a filename to write to; the special filename '-' can be used for _stdout_. Filenames that end in '.gz' cause Pyrit to gzip-compress the file on the fly.
Specifies a packet-capture file in pcap format (possibly gzip-compressed) or a device (e.g. 'wlan0') to capture from.
Specifies the URL of the storage-device in the form of _'driver://username:password@host:port/database'_. Pyrit can use the filesystem, a remote Pyrit-Relay-Server and SQL-Databases as storage. The driver ‘_file://_' refers to Pyrit's own filesystem-based storage, _'http://'_ connects to a Pyrit-Relay-Server and all other URLs are passed directly to [SQLAlchemy](http://www.sqlalchemy.org/). You may want to see [this documentation](https://docs.sqlalchemy.org/en/rel_1_0/core/expression_api.html) for details about the syntax.

The default storage-URL can also be specified by the key _'default\_storage'_ in Pyrit's configuration file (usually _'~/.pyrit/config'_)

Commands

pyrit -e Alfred\'s create_essid or  pyrit -e NET\ GEAR create_essid

Exit status

If command succeeds, Pyrit's process exit status is set to 0; otherwise it is set to 1 and (usually) an error message or a python-traceback is written to stderr. The following commands also indicate an error condition in certain cases: