mirror of
https://github.com/Cronocide/wifipumpkin3.git
synced 2025-01-22 11:18:55 +00:00
fixed set iptables exception for each rules
This commit is contained in:
parent
6eac18be5a
commit
d3c43782cf
@ -117,6 +117,7 @@ All notable changes to this project will be documented in this file.
|
||||
- Removed all files *.py compiler. [mh4x0f]
|
||||
|
||||
### Fixed
|
||||
- fixed set iptables exception for each rules [mh4x0f]
|
||||
- fixed typo name on readme.md [mh4x0f]
|
||||
- fixed disable security auth wireless by default [mh4x0f]
|
||||
- added depedency PyQt5-sip==12.7.2 to requirements.txt [mh4x0f]
|
||||
|
@ -105,16 +105,17 @@ class Mode(Qt.QObject):
|
||||
self.interfacesLink = Refactor.get_interfaces()
|
||||
print(display_messages("sharing internet connection with NAT...", info=True))
|
||||
self.ifaceHostapd = self.conf.get("accesspoint", "interface")
|
||||
try:
|
||||
for ech in self.conf.get_all_childname("iptables"):
|
||||
|
||||
for ech in self.conf.get_all_childname("iptables"):
|
||||
try:
|
||||
ech = self.conf.get("iptables", ech)
|
||||
if "$inet" in ech and self.interfacesLink["activated"][0] != None:
|
||||
ech = ech.replace("$inet", self.interfacesLink["activated"][0])
|
||||
if "$wlan" in ech:
|
||||
ech = ech.replace("$wlan", self.ifaceHostapd)
|
||||
popen(ech)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
def Stop(self):
|
||||
self.Shutdown()
|
||||
|
Loading…
Reference in New Issue
Block a user