Skip to content

Commit

Permalink
fixed: set path default config files to /usr/share/wifipumpkin3
Browse files Browse the repository at this point in the history
  • Loading branch information
mh4x0f committed Jun 24, 2022
1 parent 57a1ad0 commit b082f0d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 41 deletions.
19 changes: 4 additions & 15 deletions helps/help_extra_captiveflask.txt
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ def version(version_file):

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
Expand Down
48 changes: 24 additions & 24 deletions wifipumpkin3/core/utility/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

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 = [
Expand All @@ -34,19 +34,19 @@
"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
Expand All @@ -57,12 +57,12 @@

# 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")

Expand All @@ -75,17 +75,17 @@
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 = (
Expand All @@ -101,11 +101,11 @@
)

# 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 = {
Expand All @@ -129,7 +129,7 @@


# 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"
Expand Down

1 comment on commit b082f0d

@blshkv
Copy link
Contributor

@blshkv blshkv commented on b082f0d Jul 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't fix what is NOT broken. Please revert it.

Please sign in to comment.