Skip to main content

Python Wireless Library

Project description

# PyRIC 0.1.6.3: Python Radio Interface Controller ## Linux wireless library for the Python Wireless Developer and Pentester

## DESCRIPTION: PyRIC (is a Linux only) library providing wireless developers and pentesters the ability to identify, enumerate and manipulate their system’s wireless cards programmatically in Python. Pentesting applications and scripts written in Python have increased dramatically in recent years. However, these tools still rely on Linux command lines tools for setup/preparation and restoration of the system for use. Until now. Why use subprocess.Popen, regular expressions and str.find to interact with your wireless cards? PyRIC is:

1. Pythonic: no ctypes, SWIG etc. PyRIC redefines C header files as Python and uses sockets to communicate with the kernel. 2. Self-sufficient: No third-party files used. PyRIC is completely self-contained. 3. Fast: (relatively speaking) PyRIC is faster than using command line tools through subprocess.Popen 4. Parseless: Get the output you want without parsing output from command line tools. Never worry about newer iw versions and having to rewrite your parsers. 5. Easy: If you can use iw, you can use PyRIC.

## CURRENT STATE ATT, PyRIC pyw provides the following: * enumerate interfaces and wireless interfaces * identify a cards chipset and driver * get/set hardware address * get/set ip4 address, netmask and or broadcast * turn card on/off * get supported standards * get supported commands * get supported modes * get dev info * get phy info * get link info * get/set regulatory domain * get/set mode * get/set coverage class, RTS threshold, Fragmentation threshold & retry limits * add/delete interfaces * enumerate ISM and UNII channels * block/unblock rfkill devices * check ‘connectivity’, disconnect from AP

In utils, several helpers can be found that can be used to: * enumerate channels and frequencies and convert between the two * manipulate mac addresses and generate random ones * fetch and parse the IEEE oui text file * further rfkill operations to include listing all rfkill devices

At it’s heart, PyRIC is a Python port of (a subset of) iw and by extension, a Python port of Netlink w.r.t nl80211 functionality. The original goal of PyRIC was to provide a simple interface to the underlying nl80211 kernel support, handling the complex operations of Netlink seamlessy while maintaining a minimum of “code walking” to understand, modify and extend. But, why stop there? Since it’s initial inception, PyRIC has grown. PyRIC puts iw, ifconfig, rfkill, udevadm, airmon-ng and macchanger in your hands (or your program).

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

PyRIC-0.1.6.3.tar.gz (870.4 kB view details)

Uploaded Source

File details

Details for the file PyRIC-0.1.6.3.tar.gz.

File metadata

  • Download URL: PyRIC-0.1.6.3.tar.gz
  • Upload date:
  • Size: 870.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyRIC-0.1.6.3.tar.gz
Algorithm Hash digest
SHA256 b539b01cafebd2406c00097f94525ea0f8ecd1dd92f7731f43eac0ef16c2ccc9
MD5 c711069b2c1cb4fcc16312fed9b4d287
BLAKE2b-256 0864a99f27d3b4347486c7bfc0aa516016c46dc4c0f380ffccbd742a61af1eda

See more details on using hashes here.

Supported by

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