#!/usr/bin/python import dbus import sys, os import time import gobject def main(): bus = dbus.SystemBus() wpas_obj = bus.get_object("fi.w1.wpa_supplicant1", "/fi/w1/wpa_supplicant1") props = wpas_obj.GetAll("fi.w1.wpa_supplicant1", dbus_interface=dbus.PROPERTIES_IFACE) print "GetAll(fi.w1.wpa_supplicant1, /fi/w1/wpa_supplicant1):" print props if len(sys.argv) != 2: os._exit(1) ifname = sys.argv[1] wpas = dbus.Interface(wpas_obj, "fi.w1.wpa_supplicant1") path = wpas.GetInterface(ifname) if_obj = bus.get_object("fi.w1.wpa_supplicant1", path) props = if_obj.GetAll("fi.w1.wpa_supplicant1.Interface", dbus_interface=dbus.PROPERTIES_IFACE) print print "GetAll(fi.w1.wpa_supplicant1.Interface, %s):" % (path) print props props = if_obj.GetAll("fi.w1.wpa_supplicant1.Interface.WPS", dbus_interface=dbus.PROPERTIES_IFACE) print print "GetAll(fi.w1.wpa_supplicant1.Interface.WPS, %s):" % (path) print props res = if_obj.Get("fi.w1.wpa_supplicant1.Interface", 'BSSs', dbus_interface=dbus.PROPERTIES_IFACE) if len(res) > 0: bss_obj = bus.get_object("fi.w1.wpa_supplicant1", res[0]) props = bss_obj.GetAll("fi.w1.wpa_supplicant1.BSS", dbus_interface=dbus.PROPERTIES_IFACE) print print "GetAll(fi.w1.wpa_supplicant1.BSS, %s):" % (res[0]) print props res = if_obj.Get("fi.w1.wpa_supplicant1.Interface", 'Networks', dbus_interface=dbus.PROPERTIES_IFACE) if len(res) > 0: net_obj = bus.get_object("fi.w1.wpa_supplicant1", res[0]) props = net_obj.GetAll("fi.w1.wpa_supplicant1.Network", dbus_interface=dbus.PROPERTIES_IFACE) print print "GetAll(fi.w1.wpa_supplicant1.Network, %s):" % (res[0]) print props if __name__ == "__main__": main()
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
p2p | Folder | 0755 |
|
|
60_wpa_supplicant | File | 267 B | 0755 |
|
dbus-listen-preq.py | File | 1.53 KB | 0644 |
|
ieee8021x.conf | File | 269 B | 0644 |
|
openCryptoki.conf | File | 1.12 KB | 0644 |
|
p2p-action-udhcp.sh | File | 1.68 KB | 0755 |
|
p2p-action.sh | File | 2.63 KB | 0755 |
|
p2p-nfc.py | File | 19.73 KB | 0644 |
|
plaintext.conf | File | 133 B | 0644 |
|
udhcpd-p2p.conf | File | 2.86 KB | 0644 |
|
wep.conf | File | 170 B | 0644 |
|
wpa-psk-tkip.conf | File | 181 B | 0644 |
|
wpa2-eap-ccmp.conf | File | 284 B | 0644 |
|
wpas-dbus-new-getall.py | File | 1.7 KB | 0644 |
|
wpas-dbus-new-signals.py | File | 5.93 KB | 0644 |
|
wpas-dbus-new-wps.py | File | 2.17 KB | 0644 |
|
wpas-dbus-new.py | File | 4.17 KB | 0644 |
|
wpas-test.py | File | 2.51 KB | 0644 |
|
wps-ap-cli | File | 1.15 KB | 0755 |
|
wps-nfc.py | File | 15.31 KB | 0644 |
|