mirror of
https://github.com/Cronocide/wifipumpkin3.git
synced 2025-01-23 03:39:18 +00:00
improved info_ap command print mode
This commit is contained in:
parent
f7de42ca18
commit
05188c0e28
10
core/main.py
10
core/main.py
@ -229,20 +229,20 @@ class PumpkinShell(Qt.QObject, ConsoleUI):
|
||||
self.killThreads()
|
||||
|
||||
|
||||
def do_info(self, args):
|
||||
''' show all variable for settings AP'''
|
||||
headers_table, output_table = ["BSSID", "SSID", "Channel", "Iface"], []
|
||||
def do_info_ap(self, args):
|
||||
''' show all variable and status for settings AP '''
|
||||
headers_table, output_table = ["BSSID", "SSID", "Channel", "Iface", "StatusAP"], []
|
||||
print(display_messages('Settings AccessPoint:',info=True,sublime=True))
|
||||
status_ap =self.conf.get('accesspoint',"statusAP", format=bool)
|
||||
output_table.append([
|
||||
self.conf.get('accesspoint',self.commands["bssid"]),
|
||||
self.conf.get('accesspoint',self.commands["ssid"]),
|
||||
self.conf.get('accesspoint',self.commands["channel"]),
|
||||
self.conf.get('accesspoint',self.commands["interface"]),
|
||||
])
|
||||
setcolor('Yes',color='green') if status_ap else setcolor('False',color='red')])
|
||||
print(tabulate(output_table, headers_table,tablefmt="simple"))
|
||||
print('\n')
|
||||
|
||||
|
||||
def do_set(self, args):
|
||||
''' set variable for access point '''
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user