[unmaintained] WiFi tools for linux

Overview

Note: This project is unmaintained. While I would love to keep up the development on this project, it is difficult for me for several reasons:

  1. I don't have enough time.
  2. I switched to Fedora and the corresponding scripts to manage WiFi are completely different. I was looking into re-writing the library in order to support more than just Debian based architectures, but it was too involved.

If anybody wants to take over the development of WiFi, please contact me. You can find my email in the commit message.


wifi

Wifi provides a command line wrapper for iwlist and /etc/network/interfaces that makes it easier to connect the WiFi networks from the command line. The wifi command is also implemented as a library that can be used from Python.

# pip install wifi
# wifi --help
https://travis-ci.org/rockymeza/wifi.png?branch=master

The documentation for wifi lives at https://wifi.readthedocs.org/en/latest/.

Comments
  • AttributeError: 'NoneType' object has no attribute 'groups'

    AttributeError: 'NoneType' object has no attribute 'groups'

    from wifi.scan import Cell
    Cell.all('wlan0')
    

    gives this error

    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "wifi/scan.py", line 24, in all
        cells = map(Cell.from_string, cells_re.split(iwlist_scan)[1:])
      File "wifi/scan.py", line 34, in from_string
        return normalize(cell_string)
      File "wifi/scan.py", line 97, in normalize
        cell.quality, signal = quality_re.search(line).groups()
    AttributeError: 'NoneType' object has no attribute 'groups'
    

    with the command iwlist

    iwlist wlan0 scan
    

    outputs this

    wlan0     Scan completed :
              Cell 01 - Address: A4:56:30:E8:97:F0
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.437 GHz (Channel 6)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=84/100  Signal level=43/100  
              Cell 02 - Address: 2C:36:F8:42:0E:40
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.437 GHz (Channel 6)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=90/100  Signal level=48/100  
              Cell 03 - Address: A4:56:30:E8:F5:F1
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=100/100  Signal level=100/100  
              Cell 04 - Address: 20:4E:7F:76:F1:06
                        ESSID:"Ja"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.422 GHz (Channel 3)
                        Encryption key:on
                        Bit Rates:300 Mb/s
                        Extra:rsn_ie=30140100000fac040100000fac040100000fac020000
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        IE: Unknown: DD7A0050F204104A0001101044000102103B0001031047001000000000000010000000204E7F76F106102100044E54475210230009776E72323030307633102400016E104200046E6F6E651054000800060050F204000110110016574E5232303030763328576972656C65737320415029100800020086103C000103
                        Quality=100/100  Signal level=92/100  
              Cell 05 - Address: A4:56:30:E8:FE:20
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=54/100  Signal level=43/100  
              Cell 06 - Address: F2:23:DB:A3:3B:A0
                        ESSID:"Antons iPhone"
                        Protocol:IEEE 802.11g
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:54 Mb/s
                        Extra:rsn_ie=30140100000fac040100000fac040100000fac020c00
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Quality=78/100  Signal level=16/100  
              Cell 07 - Address: 1C:AA:07:B0:3E:61
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=27/100  Signal level=46/100  
              Cell 08 - Address: 2C:36:F8:0E:AB:21
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=100/100  Signal level=64/100  
              Cell 09 - Address: A4:56:30:E9:BE:71
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=75/100  Signal level=47/100  
              Cell 10 - Address: 1C:AA:07:6F:2D:00
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=87/100  Signal level=47/100  
              Cell 11 - Address: 2C:36:F8:0E:93:70
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=100/100  Signal level=48/100  
              Cell 12 - Address: A4:56:30:E8:F5:F0
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=100/100  Signal level=100/100  
              Cell 13 - Address: 2C:36:F8:42:62:30
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=54/100  Signal level=84/100  
              Cell 14 - Address: 2C:36:F8:0E:AB:20
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=75/100  Signal level=87/100  
              Cell 15 - Address: 1C:AA:07:6F:2F:40
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=46/100  Signal level=43/100  
              Cell 16 - Address: 2C:36:F8:0E:93:71
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=68/100  Signal level=48/100  
              Cell 17 - Address: 2C:36:F8:42:0E:41
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.437 GHz (Channel 6)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=56/100  Signal level=46/100  
              Cell 18 - Address: 2C:36:F8:0E:AC:81
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.437 GHz (Channel 6)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=30/100  Signal level=43/100  
              Cell 19 - Address: 2C:36:F8:42:58:11
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.437 GHz (Channel 6)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=90/100  Signal level=46/100  
              Cell 20 - Address: A4:56:30:E8:F6:60
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.437 GHz (Channel 6)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=48/100  Signal level=26/100  
              Cell 21 - Address: 30:46:9A:8A:60:F4
                        ESSID:"Majsbollar"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.437 GHz (Channel 6)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30140100000fac040100000fac040100000fac020c00
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        IE: Unknown: DD810050F204104A00011010440001021041000100103B00010310470010CAF22436FFC0A8D313D1A963280982E21021000D4E4554474541522C20496E632E10230009574E5232303030763210240009574E523230303076321042000230311054000800060050F204000110110009574E52323030307632100800020084103C000101
                        Quality=100/100  Signal level=72/100  
              Cell 22 - Address: A4:56:30:E8:97:F1
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.437 GHz (Channel 6)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=48/100  Signal level=43/100  
              Cell 23 - Address: 2C:36:F8:0E:9A:C1
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.437 GHz (Channel 6)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=100/100  Signal level=72/100  
              Cell 24 - Address: A4:56:30:E8:F6:61
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.437 GHz (Channel 6)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=41/100  Signal level=26/100  
              Cell 25 - Address: 2C:36:F8:0E:AC:80
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.437 GHz (Channel 6)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=101/100  Signal level=43/100  
              Cell 26 - Address: 54:3D:37:28:62:38
                        ESSID:"wifijkpg"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.457 GHz (Channel 10)
                        Encryption key:off
                        Bit Rates:130 Mb/s
                        Quality=95/100  Signal level=7/100  
              Cell 27 - Address: 54:3D:37:68:62:38
                        ESSID:""
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.457 GHz (Channel 10)
                        Encryption key:on
                        Bit Rates:130 Mb/s
                        Extra:rsn_ie=30140100000fac040100000fac040100000fac020000
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Quality=100/100  Signal level=10/100  
              Cell 28 - Address: 2C:36:F8:0E:9D:31
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.462 GHz (Channel 11)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=80/100  Signal level=46/100  
              Cell 29 - Address: 2C:36:F8:42:37:81
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.462 GHz (Channel 11)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=15/100  Signal level=23/100  
              Cell 30 - Address: 2C:36:F8:42:12:E1
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.462 GHz (Channel 11)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=96/100  Signal level=48/100  
              Cell 31 - Address: 1C:AA:07:B0:4C:61
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.462 GHz (Channel 11)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=36/100  Signal level=26/100  
              Cell 32 - Address: 2C:36:F8:0E:9D:30
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.462 GHz (Channel 11)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=70/100  Signal level=46/100  
              Cell 33 - Address: 2C:36:F8:42:62:31
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=45/100  Signal level=76/100  
              Cell 34 - Address: 1C:AA:07:6F:2F:41
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=84/100  Signal level=43/100  
              Cell 35 - Address: 2C:36:F8:0E:91:61
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=81/100  Signal level=43/100  
              Cell 36 - Address: 1C:AA:07:B0:84:B0
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=9/100  Signal level=26/100  
              Cell 37 - Address: 1C:AA:07:B0:9D:81
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=33/100  Signal level=26/100  
              Cell 38 - Address: A4:56:30:E8:FE:21
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=54/100  Signal level=43/100  
              Cell 39 - Address: 1C:AA:07:B0:3E:60
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=36/100  Signal level=42/100  
              Cell 40 - Address: 1C:AA:07:6F:2D:01
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=69/100  Signal level=47/100  
              Cell 41 - Address: A4:56:30:E9:BE:70
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=78/100  Signal level=56/100  
              Cell 42 - Address: 2C:36:F8:0E:91:60
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=84/100  Signal level=43/100  
              Cell 43 - Address: 2C:36:F8:42:58:10
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.437 GHz (Channel 6)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=90/100  Signal level=43/100  
              Cell 44 - Address: 2C:36:F8:0E:9A:C0
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.437 GHz (Channel 6)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=101/100  Signal level=72/100  
              Cell 45 - Address: 2C:36:F8:42:12:E0
                        ESSID:""
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.462 GHz (Channel 11)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd1c0050f20101000050f20202000050f2020050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac022800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=84/100  Signal level=43/100  
              Cell 46 - Address: 1C:AA:07:B0:9D:F1
                        ESSID:"eduroam"
                        Protocol:IEEE 802.11gn
                        Mode:Master
                        Frequency:2.462 GHz (Channel 11)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac012800
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : 802.1x
                        Quality=36/100  Signal level=43/100  
    
    
    opened by mrboatsman 19
  • No Cell object

    No Cell object

    the library from pip does not appear to have the Cell object included. I get an error whenever I try and run a script with WiFi.Cell saying that Cell is not in the module. help?

    opened by opensourcehiker 10
  • connect to wifi networks using python wifi library

    connect to wifi networks using python wifi library

    when i googled this is solution i found. but it says .

    if you want Connecting to a network In order to connect to a network, you need to set up a scheme for it.

    cell = Cell.all('wlan0')[0] scheme = Scheme.for_cell('wlan0', 'home', cell) scheme.save() scheme.activate() Once you have a scheme saved, you can retrieve it using Scheme.find().

    scheme = Scheme.find('wlan0', 'home') scheme.activate()

    but this was not working for me even i do the same above still it gives scheme not define error please tell me any one .how to connect to wifi networks by python script..

    opened by vivekanandgoud 8
  • Having an AP with an ssid containing the minus symbol

    Having an AP with an ssid containing the minus symbol

    I currently need to access a wireless Network wih an ssid like CompanyWifi-F8D7 and everytime i try to find an already saved profile with find('wlan0','CompanyWifi-F8D7') (python library) it returns None. I already dived into the code and i think i've found the reason: your regex used in scheme_re on line 179 only allows \w characters, which doesn't include "-" symbols. I'm not sure if it is solved that easily so i would really appreciate your reply. Below my interfaces file:

    auto lo

    iface lo inet loopback

    allow-hotplug wlan1 iface wlan1 inet manual wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf iface default inet dhcp

    auto eth0

    iface eth0 inet static

    address 192.168.0.40

    netmask 255.255.255.0

    gateway 192.168.0.1

    iface wlan0-CompanyWifi-F8D7 inet dhcp wireless-channel auto wireless-essid CompanyWifi-F8D7

    iface wlan0-CompanyWifi-F8F7 inet dhcp wireless-channel auto wireless-essid CompanyWifi-F8F7

    I'm running a debian wheezy on a raspberry pi (raspbian)

    opened by mqus 7
  • some wifi have quality as 'Quality:38  Signal level:0  Noise level:0'

    some wifi have quality as 'Quality:38 Signal level:0 Noise level:0'

    I'm not sure why, but I have this: root@tortue:~/wifi# iwlist scanning | grep Quality Quality=100/100 Signal level=100/100
    Quality=100/100 Signal level=100/100
    Quality=15/100 Signal level=26/100
    Quality=0/100 Signal level=42/100
    Quality=100/100 Signal level=44/100
    Quality=25/100 Signal level=23/100
    Quality=88/100 Signal level=42/100
    Quality=100/100 Signal level=72/100
    Quality=100/100 Signal level=74/100
    Quality=100/100 Signal level=76/100
    Quality=100/100 Signal level=67/100
    Quality=40/100 Signal level=10/100
    Quality=100/100 Signal level=100/100
    Quality=100/100 Signal level=50/100
    Quality:38 Signal level:0 Noise level:0 Quality:36 Signal level:0 Noise level:0 Quality=100/100 Signal level=10/100
    Quality:59 Signal level:0 Noise level:0 Quality=101/100 Signal level=43/100

    opened by jeromelebel 7
  • you have to have a value for cell.signal

    you have to have a value for cell.signal

    Somecase the iwlist say this:

    Quality:63 Signal level:0 Noise level:0 instaded of: Quality=26/100 Signal level=4/100

    I test this in Raspberry pi system.

    it is necesary to fix better this problem.!

    opened by martinalberto 7
  • pip not installing

    pip not installing

    I have problems installing wifi 1.0.0 (?) with pip on a raspberry pi, getting the error No such file or directory: '/tmp/pip_build_pi/wifi/CHANGES.rst'

    Help would be appreciated.

    Tried with and without sudo.

    The full log:

    pi@raspberry ~/Phythm $ pip install wifi
    Downloading/unpacking wifi
      Downloading wifi-1.0.0.tar.gz
      Running setup.py (path:/tmp/pip_build_pi/wifi/setup.py) egg_info for package wifi
        Skipping copying files to /etc/bash_completion.d/, no write access
        Traceback (most recent call last):
          File "<string>", line 17, in <module>
          File "/tmp/pip_build_pi/wifi/setup.py", line 42, in <module>
            long_description='\n\n'.join([read('README.rst'), read('CHANGES.rst')]),
          File "/tmp/pip_build_pi/wifi/setup.py", line 12, in read
            return open(os.path.join(os.path.dirname(__file__), fname)).read()
        IOError: [Errno 2] No such file or directory: '/tmp/pip_build_pi/wifi/CHANGES.rst'
        Complete output from command python setup.py egg_info:
        Skipping copying files to /etc/bash_completion.d/, no write access
    
    Traceback (most recent call last):
    
      File "<string>", line 17, in <module>
    
      File "/tmp/pip_build_pi/wifi/setup.py", line 42, in <module>
    
        long_description='\n\n'.join([read('README.rst'), read('CHANGES.rst')]),
    
      File "/tmp/pip_build_pi/wifi/setup.py", line 12, in read
    
        return open(os.path.join(os.path.dirname(__file__), fname)).read()
    
    IOError: [Errno 2] No such file or directory: '/tmp/pip_build_pi/wifi/CHANGES.rst'
    
    ----------------------------------------
    Cleaning up...
    Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_pi/wifi
    Storing debug log for failure in /home/pi/.pip/pip.log
    pi@raspberry ~/Phythm $
    

    Logfile:

    $ cat /home/pi/.pip/pip.log
    ------------------------------------------------------------
    /usr/local/bin/pip run on Tue Sep  2 04:19:18 2014
    Downloading/unpacking wifi
      Getting page https://pypi.python.org/simple/wifi/
      URLs to search for versions for wifi:
      * https://pypi.python.org/simple/wifi/
      Analyzing links from page https://pypi.python.org/simple/wifi/
        Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.0.1.tar.gz#md5=268c545deddf6aaa4a57b6b6126a7a32 (from https://pypi.python.org/simple/wifi/), version: 0.0.1
        Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.1.0.tar.gz#md5=0b30d002a97ed6de1ba3eed294582b55 (from https://pypi.python.org/simple/wifi/), version: 0.1.0
        Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.1.1.tar.gz#md5=6e02cdc66153514017c8196ce86e80fb (from https://pypi.python.org/simple/wifi/), version: 0.1.1
        Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.2.0.tar.gz#md5=7df58691eb39be009e78e0c96b2c5598 (from https://pypi.python.org/simple/wifi/), version: 0.2.0
        Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.2.1.tar.gz#md5=c5c63a40e58c3955c27e8122490c428b (from https://pypi.python.org/simple/wifi/), version: 0.2.1
        Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.2.2.tar.gz#md5=57ae7542c3ba16241839efd7ee84c17b (from https://pypi.python.org/simple/wifi/), version: 0.2.2
        Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.3.0.tar.gz#md5=659c733b8f73cc85fb5e7496b5f2e0fc (from https://pypi.python.org/simple/wifi/), version: 0.3.0
        Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.3.1.tar.gz#md5=19c94c4318e7002a9fc83cff22bb92af (from https://pypi.python.org/simple/wifi/), version: 0.3.1
        Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.3.2.tar.gz#md5=cf2838f703d054b8c146ae1db4c0eeac (from https://pypi.python.org/simple/wifi/), version: 0.3.2
        Found link https://pypi.python.org/packages/source/w/wifi/wifi-0.3.3.tar.gz#md5=38fb87d5e0d269706c24d2c9b31850ff (from https://pypi.python.org/simple/wifi/), version: 0.3.3
        Found link https://pypi.python.org/packages/source/w/wifi/wifi-1.0.0.tar.gz#md5=aeeafe962bc01cf9a55a146d0f301dfc (from https://pypi.python.org/simple/wifi/), version: 1.0.0
        Skipping link https://travis-ci.org/rockymeza/wifi (from https://pypi.python.org/simple/wifi/); not a file
        Skipping link https://wifi.readthedocs.org/en/latest/ (from https://pypi.python.org/simple/wifi/); not a file
      Using version 1.0.0 (newest of versions: 1.0.0, 0.3.3, 0.3.2, 0.3.1, 0.3.0, 0.2.2, 0.2.1, 0.2.0, 0.1.1, 0.1.0, 0.0.1)
      Downloading wifi-1.0.0.tar.gz
      Downloading from URL https://pypi.python.org/packages/source/w/wifi/wifi-1.0.0.tar.gz#md5=aeeafe962bc01cf9a55a146d0f301dfc (from https://pypi.python.org/simple/wifi/)
      Running setup.py (path:/tmp/pip_build_pi/wifi/setup.py) egg_info for package wifi
        Skipping copying files to /etc/bash_completion.d/, no write access
        Traceback (most recent call last):
          File "<string>", line 17, in <module>
          File "/tmp/pip_build_pi/wifi/setup.py", line 42, in <module>
            long_description='\n\n'.join([read('README.rst'), read('CHANGES.rst')]),
          File "/tmp/pip_build_pi/wifi/setup.py", line 12, in read
            return open(os.path.join(os.path.dirname(__file__), fname)).read()
        IOError: [Errno 2] No such file or directory: '/tmp/pip_build_pi/wifi/CHANGES.rst'
        Complete output from command python setup.py egg_info:
        Skipping copying files to /etc/bash_completion.d/, no write access
    
    Traceback (most recent call last):
    
      File "<string>", line 17, in <module>
    
      File "/tmp/pip_build_pi/wifi/setup.py", line 42, in <module>
    
        long_description='\n\n'.join([read('README.rst'), read('CHANGES.rst')]),
    
      File "/tmp/pip_build_pi/wifi/setup.py", line 12, in read
    
        return open(os.path.join(os.path.dirname(__file__), fname)).read()
    
    IOError: [Errno 2] No such file or directory: '/tmp/pip_build_pi/wifi/CHANGES.rst'
    
    ----------------------------------------
    Cleaning up...
    Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_pi/wifi
    Exception information:
    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
        status = self.run(options, args)
      File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run
        requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
      File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1229, in prepare_files
        req_to_install.run_egg_info()
      File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 325, in run_egg_info
        command_desc='python setup.py egg_info')
      File "/usr/local/lib/python2.7/dist-packages/pip/util.py", line 697, in call_subprocess
        % (command_desc, proc.returncode, cwd))
    InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_pi/wifi
    
    opened by luckydonald 6
  • AttributeError: 'Cell' object has no attribute 'ssid'

    AttributeError: 'Cell' object has no attribute 'ssid'

    When running the wifi command, I intermittently get this error:

    % wifi
    Traceback (most recent call last):
      File "/usr/local/bin/wifi", line 202, in <module>
        args.func(args)
      File "/usr/local/bin/wifi", line 51, in scan_command
        print_table([[cell.signal, cell.ssid, 'protected' if cell.encrypted else 'unprotected'] for cell in Cell.all(args.interface)])
    AttributeError: 'Cell' object has no attribute 'ssid'
    

    I suspect there's a wireless network in my environment which doesn't broadcast SSID, or something, which causes this particular failure.

    opened by tlau 5
  • interface doesn't support scanning

    interface doesn't support scanning

    I'm trying to use the command line to run #wifi scan but I get the following error : Error: wlan0 Interface doesn't support scanning.

    Ubuntu version is 12.04 LTS

    opened by voladoddi 5
  • WEP passkeys in plaintext need to be prefixed with

    WEP passkeys in plaintext need to be prefixed with "s:" to function

    Since we also handle WPA keyphrases as plain text keyphrases, it makes sense to equally preprocess the entered data from the user here too, instead of forcing him to manually add s: in front of plain text keyphrases.

    Alternatively the documentation should hint the user that this is manual preprocessing is necessary, or a detection mechanism should be added to only add it if necessary (since the plain text passphrase might just be a 40bit hex string though, a simple regex would not be sufficient here, which is also why I opted for this radical approach).

    Without this adjustment, trying to connect to a wep-"secured" wifi network supplying just the plain text keyphrase will fail due to an invalid encoding.

    opened by foosel 5
  • check if connection is actually established

    check if connection is actually established

    This checks if connection is actually established and returns assigned IP address if is, or throws ConnectionFail if not.

    @rockymeza - yes, please add failing tests as you've proposed and I'll try to figure out how to make it not failing.

    opened by alexykot 5
  • solved attribute error to dict.

    solved attribute error to dict.

    Not installing bash completion because of lack of permissions. running test WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox. running egg_info writing wifi.egg-info/PKG-INFO writing dependency_links to wifi.egg-info/dependency_links.txt writing entry points to wifi.egg-info/entry_points.txt writing requirements to wifi.egg-info/requires.txt writing top-level names to wifi.egg-info/top_level.txt reading manifest file 'wifi.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'wifi.egg-info/SOURCES.txt' running build_ext test_empty_init (tests.test_init.CorrectInitTest) ... ERROR test_absolute_quality (tests.test_parsing.IWListParserTest) ... ok test_alternative_iwlist_output (tests.test_parsing.IWListParserTest) ... ok test_blank_ssid (tests.test_parsing.IWListParserTest) ... ok test_frequency_no_channel_output (tests.test_parsing.IWListParserTest) ... ok test_list_index_error (tests.test_parsing.IWListParserTest) ... ok test_no_channel_output (tests.test_parsing.IWListParserTest) ... ok test_no_encryption (tests.test_parsing.IWListParserTest) ... ok test_noise_data_present (tests.test_parsing.IWListParserTest) ... ok test_noise_no_data (tests.test_parsing.IWListParserTest) ... ok test_noname_cell (tests.test_parsing.IWListParserTest) ... ok test_signal_level_out_of_sixty (tests.test_parsing.IWListParserTest) ... ok test_wep (tests.test_parsing.IWListParserTest) ... ok test_wpa1 (tests.test_parsing.IWListParserTest) ... ok test_wpa2 (tests.test_parsing.IWListParserTest) ... ok test_scanning (tests.test_parsing.ScanningTest) ... ok test_failed_connection (tests.test_schemes.TestActivation) ... ok test_successful_connection (tests.test_schemes.TestActivation) ... ok test_unencrypted (tests.test_schemes.TestForCell) ... ok test_wep_ascii (tests.test_schemes.TestForCell) ... ok test_wep_hex (tests.test_schemes.TestForCell) ... ok test_wpa (tests.test_schemes.TestForCell) ... ok test_wpa2 (tests.test_schemes.TestForCell) ... ok test_delete (tests.test_schemes.TestSchemes) ... ok test_find (tests.test_schemes.TestSchemes) ... ok test_save (tests.test_schemes.TestSchemes) ... ok test_scheme_extraction (tests.test_schemes.TestSchemes) ... ok test_str (tests.test_schemes.TestSchemes) ... ok test_with_different_interface (tests.test_schemes.TestSchemes) ... ok test_with_hyphen (tests.test_schemes.TestSchemes) ... ok test_match (tests.test_utils.FuzzyMatchTest) ... ok test_lengths_formatted_correctly (tests.test_utils.PrintTableTest) ... ok test_no_failure_with_non_strs (tests.test_utils.PrintTableTest) ... ok test_db2dbm (tests.test_utils.db2dbMTest) ... ok

    ====================================================================== ERROR: test_empty_init (tests.test_init.CorrectInitTest)

    Traceback (most recent call last): File "/home/extremo/hobby/development/mygit/wifi/tests/test_init.py", line 21, in test_empty_init for field, value in self.fields.iteritems(): AttributeError: 'dict' object has no attribute 'iteritems'


    Ran 34 tests in 0.146s

    FAILED (errors=1) Test failed: <unittest.runner.TextTestResult run=34 errors=1 failures=0> error: Test failed: <unittest.runner.TextTestResult run=34 errors=1 failures=0>

    opened by EXTREMOPHILARUM 0
  • Breaks Nework Connections on Raspberry Pi (Raspbian stretch)

    Breaks Nework Connections on Raspberry Pi (Raspbian stretch)

    As soon as the command scheme.save() is issued the file /etc/network/interfaces is overwritten and after a reboot no connection is available anymore. No etc0 nor wlan0. The file interfaces should have the following content in order to work:

    # interfaces(5) file used by ifup(8) and ifdown(8)
    # Please note that this file is written to be used with dhcpcd
    # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
    # Include files from /etc/network/interfaces.d:
    source-directory /etc/network/interfaces.d
    
    opened by DragonflyNet67 0
  • scheme.activate() returns non zero exit status 1

    scheme.activate() returns non zero exit status 1

    I am trying to connect to a wireless network using wifi library in python script and am running python 3.6.8 Upon executing scheme.activate(), I get the following output subprocess.CalledProcessError: Command '['/sbin/ifup', 'wlp6s0=wlp6s0-home', '-o', 'wpa-ssid=DataRoom', '-o', 'wpa-psk=902456bdc9a0ff7e7fecf72c303e75d87d4e6bf209e24c36453bc6cc8a9e1ee1', '-o', 'wireless-channel=auto']' returned non-zero exit status 1

    I tried to search for the solution but found no related issue. Thanks for the help

    opened by nadeemnehru 2
  • Make the code compliant with Python 3.3 or higher (@nicolargo)

    Make the code compliant with Python 3.3 or higher (@nicolargo)

    Hi @rockymeza ,

    i am the maintainer of the Glances software (https://github.com/nicolargo/glances). It uses your nice lib to grab Wifi stats. Unfortunately, there is an issue with Python 3.3 or highers (see https://github.com/nicolargo/glances/issues/1373#issuecomment-449639945).

    This pull request makes your lib compliant with Python 3.3 or higher. Can you review the PR, merge and tag a new version on Pypi ?

    Thanks !

    opened by nicolargo 1
Hook and simulate global keyboard events on Windows and Linux.

keyboard Take full control of your keyboard with this small Python library. Hook global events, register hotkeys, simulate key presses and much more.

BoppreH 3.2k Dec 30, 2022
Python Keylogger for Linux

A keylogger is a program that records your keystrokes, this program saves them in a .txt file on your local computer and, after 30 seconds (or as long as you want), it will close the .txt file and send you an email with everything that has been recorded. once the program is run, this cycle will last infinitely if you don't stop it.

Darío Mazzitelli 4 Jul 31, 2021
Add filters (background blur, etc) to your webcam on Linux.

webcam-filters Add filters (background blur, etc) to your webcam on Linux. Video conferencing applications tend to either lack video effects altogethe

Jashandeep Sohi 480 Dec 14, 2022
This is the remake of the program PYOBD. It works on Python3 and all new libraries. It was tested on Linux, Windows, and it should work on MAC too.

This is the remake of the program PYOBD. It works on Python3 and all new libraries. It was tested on Linux, Windows, and it should work on MAC too. You just need an ELM327 USB or bluetooth device and a PC(laptop preferably).

null 127 Jan 6, 2023
Lenovo Legion 5 Pro 2021 Linux RGB Keyboard Light Controller

Lenovo Legion 5 Pro 2021 Linux RGB Keyboard Light Controller This util allows to drive RGB keyboard light on Lenovo Legion 5 Pro 2021 Laptop Requireme

null 36 Dec 16, 2022
A PYTHON Library for Controlling Motors using SOLO Motor Controllers with RASPBERRY PI, Linux, windows, and more!

A PYTHON Library for Controlling Motors using SOLO Motor Controllers with RASPBERRY PI, Linux, windows, and more!

SOLO Motor Controllers 3 Apr 29, 2022
Tools and documentation to aid in modifying the ADI ADALM Pluto firmware

Pluto firmware modifications This repository contains tools and documentation to aid in modifying the ADI ADALM Pluto firmware. Extraction of the Plut

Daniel Estévez 28 Dec 21, 2022
A raspberrypi tools for python

raspberrypi-tools how to install: first clone this project: git clone https://github.com/Ardumine/rpi-tools.git then go to the folder cd rpi-tools and

null 1 Jan 4, 2022
Unofficial Playdate reverse-engineering notes/tools - covers file formats, server API and USB commands

Unofficial Playdate reverse-engineering notes/tools - covers file formats, server API and USB commands ⚠️ This documentation is unofficial and is not

James 106 Dec 31, 2022
Quickly fetch your WiFi password and if needed, generate a QR code of your WiFi to allow phones to easily connect

wifi-password Quickly fetch your WiFi password and if needed, generate a QR code of your WiFi to allow phones to easily connect. Works on macOS and Li

Siddharth Dushantha 2.6k Jan 5, 2023
[UNMAINTAINED] Automated machine learning for analytics & production

auto_ml Automated machine learning for production and analytics Installation pip install auto_ml Getting started from auto_ml import Predictor from au

Preston Parry 1.6k Jan 2, 2023
UNMAINTAINED! Renders beautiful SVG maps in Python.

Kartograph is not maintained anymore As you probably already guessed from the commit history in this repo, Kartograph.py is not maintained, which mean

null 1k Dec 9, 2022
the classic version Of torrentleechx #Unmaintained #Archived

TorrentleechX-Classic Old Modified Version Repo #Unmaintained #Archived for support join here working example group Leech Here For Any Issues/Imroveme

XcodersHub 18 Jan 30, 2022
Linux SBC featuring two wifi radios, masquerading as a USB charger.

The WiFiWart is an open source WiFi penetration device masquerading as a regular wall charger. It features a 1.2Ghz Cortex A7 MPU with two WiFi chips onboard.

Walker 151 Dec 26, 2022
List of Linux Tools I put on almost every linux / Debian host

Linux-Tools List of Linux Tools I put on almost every Linux / Debian host Installed: geany --> GUI editor/ notepad++ like chkservice --> TUI Linux ser

Stew Alexander 20 Jan 2, 2023
Automation for grabbing keys from a Linux host. Useful during red team exercises to quickly help assess what access to a Linux host can lead to.

keygrabber Automation for grabbing keys from a Linux host. This can be helpful during red team exercises when you gain access to a Linux host and want

Cedric Owens 14 Sep 27, 2022
LSO, also known as Linux Swap Operator, is a software with both GUI and terminal versions that you can manage the Swap area for Linux operating systems.

LSO - Linux Swap Operator Türkçe - LSO Nedir? LSO, diğer adıyla Linux Swap Operator Linux işletim sistemleri için Swap alanını yönetebileceğiniz hem G

Eren İnce 4 Feb 9, 2022
Organize seu linux - organize your linux

OrganizeLinux Organize seu linux - organize your linux Organize seu linux Uma forma rápida de separar arquivos dispersos em pastas. formatos a serem c

Marcus Vinícius Ribeiro Andrade 1 Nov 30, 2021
Morpy Bot Linux - Morpy Bot Linux With Python

Morpy_Bot_Linux Guide to using the robot : ?? Lsmod => to identify admins and st

null 2 Jan 20, 2022