fixed: set path default config files to /usr/share/wifipumpkin3

This commit is contained in:
mh4x0f 2022-06-23 23:50:58 -03:00
parent 57a1ad0e4c
commit b082f0d66f
3 changed files with 30 additions and 41 deletions

View File

@ -1,17 +1,6 @@
How to apply plugins configuration
==================================
Plugins Installation
====================
Now, you need to reinstall the tool,
you have to reinstall on version the python installed,
let's go:
# for python3.7
$ sudo python3.7 setup.py install
# for python3.8
$ sudo python3.8 setup.py install
if you running on Kali linux, only need to:
$ sudo python3 setup.py install
have fun! Hack the Planet
You will need to restart the wp3
to complete the installation.

View File

@ -35,9 +35,9 @@ with open("requirements.txt") as fp:
folders = ["config", "logs", "helps", "scripts", "exceptions"]
config_dir = "/usr/share/wifipumpkin3"
def create_user_dir_config():
user_config_dir = os.path.expanduser("~") + "/.config/wifipumpkin3"
user_config_dir = config_dir
if not os.path.isdir(user_config_dir):
os.makedirs(user_config_dir, exist_ok=True)
# force copy all files `config` to user_config_dir

View File

@ -20,7 +20,7 @@ import wifipumpkin3 as wp3
dir_of_executable = os.path.dirname(__file__)
dir_path = os.getcwd()
user_config_dir = os.path.expanduser("~")
config_dir = "/usr/share/wifipumpkin3"
wp3_setup_packager_path = wp3.__path__[0]
SYSTEMCOMMAND = [
@ -34,19 +34,19 @@ SYSTEMCOMMAND = [
"nano",
]
HELPFILESPATH = user_config_dir + "/.config/wifipumpkin3/helps/"
EXCEPTFILESPATH = user_config_dir + "/.config/wifipumpkin3/exceptions/"
APIRESTPATH = user_config_dir + "/.config/wifipumpkin3/api/"
HELPFILESPATH = config_dir + "/helps/"
EXCEPTFILESPATH = config_dir + "/exceptions/"
APIRESTPATH = config_dir + "/api/"
# DHCP logger connected
CLIENTS_CONNECTED = (
user_config_dir + "/.config/wifipumpkin3/config/session/connected.json"
config_dir + "/config/session/connected.json"
)
DHCPSERVERBINARY = "core/packets/binary/dhcpserver"
# DNS file hosts
DNSHOSTS = user_config_dir + "/.config/wifipumpkin3/config/app/dns_hosts.ini"
DNSHOSTS = config_dir + "/config/app/dns_hosts.ini"
# donation button
# TODO: add donation in readme
@ -57,12 +57,12 @@ DONATE_TXT = (
# settings DHCP
DHCPLEASES_PATH = "/var/lib/dhcp/dhcpd.leases"
DHCPCONF_PATH = user_config_dir + "/.config/wifipumpkin3/config/dhcpd.conf"
DHCPCONF_PATH = config_dir + "/config/dhcpd.conf"
# settings HOSTAPD
HOSTAPDCONF_PATH = user_config_dir + "/.config/wifipumpkin3/config/hostapd/hostapd.conf"
HOSTAPDCONF_PATH = config_dir + "/config/hostapd/hostapd.conf"
HOSTAPDCONF_PATH2 = (
user_config_dir + "/.config/wifipumpkin3/config/hostapd/hostapd+.conf"
config_dir + "/config/hostapd/hostapd+.conf"
)
ALGORITMS = ("TKIP", "CCMP", "TKIP + CCMP")
@ -75,17 +75,17 @@ DOCKERIPTABLESPATH = "/etc/iptables.ipv4.nat"
DOCKERHOSTAPDCONF_PATH = "/etc/hostapd/hostapd.conf"
# logging
LOG_PUMPKINPROXY = user_config_dir + "/.config/wifipumpkin3/logs/ap/pumpkin_proxy.log"
LOG_PYDNSSERVER = user_config_dir + "/.config/wifipumpkin3/logs/ap/pydns_server.log"
LOG_PYDHCPSERVER = user_config_dir + "/.config/wifipumpkin3/logs/ap/pydhcp_server.log"
LOG_SNIFFKIN3 = user_config_dir + "/.config/wifipumpkin3/logs/ap/sniffkin3.log"
LOG_CAPTIVEPO = user_config_dir + "/.config/wifipumpkin3/logs/ap/captiveportal.log"
LOG_RESPONDER3 = user_config_dir + "/.config/wifipumpkin3/logs/ap/responder3.log"
LOG_HOSTAPD = user_config_dir + "/.config/wifipumpkin3/logs/ap/hostapd.log"
LOG_ALL = user_config_dir + "/.config/wifipumpkin3/logs/everything.log"
LOG_PUMPKINPROXY = config_dir + "/logs/ap/pumpkin_proxy.log"
LOG_PYDNSSERVER = config_dir + "/logs/ap/pydns_server.log"
LOG_PYDHCPSERVER = config_dir + "/logs/ap/pydhcp_server.log"
LOG_SNIFFKIN3 = config_dir + "/logs/ap/sniffkin3.log"
LOG_CAPTIVEPO = config_dir + "/logs/ap/captiveportal.log"
LOG_RESPONDER3 = config_dir + "/logs/ap/responder3.log"
LOG_HOSTAPD = config_dir + "/logs/ap/hostapd.log"
LOG_ALL = config_dir + "/logs/everything.log"
LOG_BASE = user_config_dir + "/.config/wifipumpkin3/logs/ap"
LOG_BASE = config_dir + "/logs/ap"
ALL_LOGSPATH = (
@ -101,11 +101,11 @@ ALL_LOGSPATH = (
)
# APP SETTINGS
CONFIG_INI = user_config_dir + "/.config/wifipumpkin3/config/app/config.ini"
CONFIG_SK_INI = user_config_dir + "/.config/wifipumpkin3/config/app/sniffkin3.ini"
CONFIG_PP_INI = user_config_dir + "/.config/wifipumpkin3/config/app/pumpkinproxy.ini"
CONFIG_CP_INI = user_config_dir + "/.config/wifipumpkin3/config/app/captive-portal.ini"
CONFIG_CP_INI_ROOT = "config/app/captive-portal.ini"
CONFIG_INI = config_dir + "/config/app/config.ini"
CONFIG_SK_INI = config_dir + "/config/app/sniffkin3.ini"
CONFIG_PP_INI = config_dir + "/config/app/pumpkinproxy.ini"
CONFIG_CP_INI = config_dir + "/config/app/captive-portal.ini"
CONFIG_CP_INI_ROOT = config_dir + "/config/app/captive-portal.ini"
ALL_CONFIGSINI = {
@ -129,7 +129,7 @@ SOURCE_URL = "https://github.com/P0cL4bs/WiFi-Pumpkin.git"
# settings template
TEMPLATES_FLASK = user_config_dir + "/.config/wifipumpkin3/config/"
TEMPLATES_FLASK = config_dir + "/config/"
TEMP_CUSTOM = dir_path + "/templates/phishing/custom"
TEMP_Win = dir_path + "/templates/fakeupdate/Windows_Update"
TEMP_Java = dir_path + "/templates/fakeupdate/Java_Update"