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
6
setup.py
6
setup.py
@ -11,7 +11,11 @@ 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):
|
if not (sys.version_info.major == 3 and sys.version_info.minor >= 7):
|
||||||
print("[!] Wifipumpkin3 requires Python 3.7 or higher!")
|
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)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ class PumpkinShell(Qt.QObject, ConsoleUI):
|
|||||||
self.all_modules = module_list
|
self.all_modules = module_list
|
||||||
|
|
||||||
# intialize the LoggerManager
|
# intialize the LoggerManager
|
||||||
#TODO: this change solve IndexError: list index out of range
|
# TODO: this change solve IndexError: list index out of range
|
||||||
# but not a definitive solution
|
# but not a definitive solution
|
||||||
self.logger_manager = LoggerManager(self)
|
self.logger_manager = LoggerManager(self)
|
||||||
self.coreui = DefaultController(self)
|
self.coreui = DefaultController(self)
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
from wifipumpkin3.core.packets.dhcpserver import DHCPThread
|
from wifipumpkin3.core.packets.dhcpserver import DHCPThread
|
||||||
from wifipumpkin3.core.servers.dhcp.dhcp import DHCPServers
|
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.
|
# This file is part of the wifipumpkin3 Open Source Project.
|
||||||
# wifipumpkin3 is licensed under the Apache 2.0.
|
# wifipumpkin3 is licensed under the Apache 2.0.
|
||||||
@ -40,6 +41,15 @@ class PyDHCP(DHCPServers):
|
|||||||
|
|
||||||
def get_DHCPoutPut(self, data):
|
def get_DHCPoutPut(self, data):
|
||||||
self._connected[data["MAC"]] = 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):
|
def boot(self):
|
||||||
self.reactor = DHCPThread(self.ifaceHostapd, self.DHCPConf)
|
self.reactor = DHCPThread(self.ifaceHostapd, self.DHCPConf)
|
||||||
|
Loading…
Reference in New Issue
Block a user