mirror of
https://github.com/Cronocide/wifipumpkin3.git
synced 2025-01-22 19:37:18 +00:00
added notification when client joined the AP
This commit is contained in:
parent
3002925a96
commit
fcb4ea98b0
8
setup.py
8
setup.py
@ -8,10 +8,14 @@ import re
|
||||
from distutils.dir_util import copy_tree
|
||||
import sys
|
||||
|
||||
# check version the python install
|
||||
# check version the python install
|
||||
if not (sys.version_info.major == 3 and sys.version_info.minor >= 7):
|
||||
print("[!] Wifipumpkin3 requires Python 3.7 or higher!")
|
||||
print("[*] You are using Python {}.{}.".format(sys.version_info.major, sys.version_info.minor))
|
||||
print(
|
||||
"[*] You are using Python {}.{}.".format(
|
||||
sys.version_info.major, sys.version_info.minor
|
||||
)
|
||||
)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
|
@ -70,9 +70,9 @@ class PumpkinShell(Qt.QObject, ConsoleUI):
|
||||
|
||||
self.all_modules = module_list
|
||||
|
||||
# intialize the LoggerManager
|
||||
#TODO: this change solve IndexError: list index out of range
|
||||
# but not a definitive solution
|
||||
# intialize the LoggerManager
|
||||
# TODO: this change solve IndexError: list index out of range
|
||||
# but not a definitive solution
|
||||
self.logger_manager = LoggerManager(self)
|
||||
self.coreui = DefaultController(self)
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
from wifipumpkin3.core.packets.dhcpserver import DHCPThread
|
||||
from wifipumpkin3.core.servers.dhcp.dhcp import DHCPServers
|
||||
from wifipumpkin3.core.utility.printer import display_messages, setcolor
|
||||
|
||||
# This file is part of the wifipumpkin3 Open Source Project.
|
||||
# wifipumpkin3 is licensed under the Apache 2.0.
|
||||
@ -40,6 +41,15 @@ class PyDHCP(DHCPServers):
|
||||
|
||||
def get_DHCPoutPut(self, data):
|
||||
self._connected[data["MAC"]] = data
|
||||
if self.conf.get("accesspoint", "status_ap", format=bool):
|
||||
print(
|
||||
display_messages(
|
||||
"{} client join the AP ".format(
|
||||
setcolor(data["MAC"], color="green")
|
||||
),
|
||||
info=True,
|
||||
)
|
||||
)
|
||||
|
||||
def boot(self):
|
||||
self.reactor = DHCPThread(self.ifaceHostapd, self.DHCPConf)
|
||||
|
Loading…
Reference in New Issue
Block a user