Skip to content

Commit

Permalink
fixed mode docker parser command line #56
Browse files Browse the repository at this point in the history
  • Loading branch information
mh4x0f committed Jun 26, 2020
1 parent 9590792 commit d6d744a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -34,6 +34,7 @@ All notable changes to this project will be documented in this file.
- fixed version of dnslib from pydns_server #49
- restricting version module problems
- fixed description tool on setup.py file
- fixed mode docker parser command line #56


## [released]
Expand Down
12 changes: 6 additions & 6 deletions wifipumpkin3/__main__.py
Expand Up @@ -19,13 +19,13 @@
from os import getuid


def parser_args_func(parse_args):
def parser_args_func(parse_args, config):
if parse_args.nocolors:
set_nocolors()

if parse_args.wireless_mode:
if parse_args.wireless_mode in conf.get_all_childname("ap_mode"):
conf.set_one("ap_mode", parse_args.wireless_mode, True)
if parse_args.wireless_mode in config.get_all_childname("ap_mode"):
config.set_one("ap_mode", parse_args.wireless_mode, True)
print(
display_messages(
"Wireless Mode: {}".format(
Expand All @@ -39,10 +39,10 @@ def parser_args_func(parse_args):
def main():

app = QtCore.QCoreApplication(sys.argv)
conf = SettingsINI.getInstance()
config = SettingsINI.getInstance()

# settings default values that change on
conf.set("accesspoint", "status_ap", False)
config.set("accesspoint", "status_ap", False)

parser = argparse.ArgumentParser(
description="WiFi-Pumpkin - pure line-oriented command"
Expand Down Expand Up @@ -90,7 +90,7 @@ def main():
)

parse_args = parser.parse_args()
parser_args_func(parse_args)
parser_args_func(parse_args, config)

# check is rootuser
if not getuid() == 0:
Expand Down

0 comments on commit d6d744a

Please sign in to comment.