2016-10-05 01:44:27 +02:00
|
|
|
#!/usr/bin/python3
|
|
|
|
import os
|
|
|
|
|
|
|
|
class HostapdCLI:
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
def wps_push_button():
|
|
|
|
os.system('hostapd_cli wps_pbc')
|
2016-10-06 20:06:14 +02:00
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
def deauthenticate(client_address):
|
|
|
|
os.system('hostapd_cli deauthenticate ' + client_address)
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
def kill_all():
|
|
|
|
os.system('killall hostapd')
|