From ae75199d587152aceaf5639aefc58ce15cfc2057 Mon Sep 17 00:00:00 2001 From: v-t-p <46879913+v-t-p@users.noreply.github.com> Date: Sat, 22 Jul 2023 23:54:46 +1000 Subject: [PATCH 1/4] Update args.py Change ignore list to file --- wifite/args.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/wifite/args.py b/wifite/args.py index 6c07e6201..2f9fb1442 100755 --- a/wifite/args.py +++ b/wifite/args.py @@ -144,14 +144,14 @@ def _add_global_args(self, glob): help=self._verbose('ESSID (e.g. {GR}NETGEAR07{W}) of access point to attack')) glob.add_argument('--essid', help=argparse.SUPPRESS, action='store', dest='target_essid', type=str) - glob.add_argument('-E', - action='append', - dest='ignore_essids', - metavar='[text]', - type=str, - default=None, - help=self._verbose( - 'Hides targets with ESSIDs that match the given text. Can be used more than once.')) +glob.add_argument('-E', + action='store', + dest='ignore_essids_file', + metavar='[file]', + type=argparse.FileType('r'), + default=None, + help=self._verbose( + 'Hides targets with ESSIDs that match the given text in the file.')) glob.add_argument('--ignore-essid', help=argparse.SUPPRESS, action='append', dest='ignore_essids', type=str) glob.add_argument('-ic', From ef8d840aaff116a42949abf3fcced25a9200a196 Mon Sep 17 00:00:00 2001 From: v-t-p <46879913+v-t-p@users.noreply.github.com> Date: Sun, 23 Jul 2023 00:36:14 +1000 Subject: [PATCH 2/4] Update args.py --- wifite/args.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/wifite/args.py b/wifite/args.py index 2f9fb1442..95ed9a4d2 100755 --- a/wifite/args.py +++ b/wifite/args.py @@ -144,14 +144,18 @@ def _add_global_args(self, glob): help=self._verbose('ESSID (e.g. {GR}NETGEAR07{W}) of access point to attack')) glob.add_argument('--essid', help=argparse.SUPPRESS, action='store', dest='target_essid', type=str) -glob.add_argument('-E', - action='store', - dest='ignore_essids_file', - metavar='[file]', - type=argparse.FileType('r'), - default=None, - help=self._verbose( - 'Hides targets with ESSIDs that match the given text in the file.')) + def file_to_list(file_path): + with open(file_path, 'r') as f: + return [line.strip() for line in f] + + ... + glob.add_argument('-E', + action='store', + dest='ignore_essids_file', + metavar='[file]', + type=argparse.FileType('r'), + default=None, + help=self._verbose('Hides targets with ESSIDs that match the given text in the file.')) glob.add_argument('--ignore-essid', help=argparse.SUPPRESS, action='append', dest='ignore_essids', type=str) glob.add_argument('-ic', From 47987125d37d4d15e6fb594a0d198e476583227e Mon Sep 17 00:00:00 2001 From: v-t-p <46879913+v-t-p@users.noreply.github.com> Date: Sun, 23 Jul 2023 00:47:59 +1000 Subject: [PATCH 3/4] Update args.py --- wifite/args.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wifite/args.py b/wifite/args.py index 95ed9a4d2..dab442e25 100755 --- a/wifite/args.py +++ b/wifite/args.py @@ -144,11 +144,11 @@ def _add_global_args(self, glob): help=self._verbose('ESSID (e.g. {GR}NETGEAR07{W}) of access point to attack')) glob.add_argument('--essid', help=argparse.SUPPRESS, action='store', dest='target_essid', type=str) - def file_to_list(file_path): - with open(file_path, 'r') as f: + def file_to_list(file_path): + with open(file_path, 'r') as f: return [line.strip() for line in f] - - ... + + ... glob.add_argument('-E', action='store', dest='ignore_essids_file', From 65d78d3d3024890297e84fa3729de3567cb24fd9 Mon Sep 17 00:00:00 2001 From: v-t-p <46879913+v-t-p@users.noreply.github.com> Date: Sun, 23 Jul 2023 00:56:55 +1000 Subject: [PATCH 4/4] Update args.py --- wifite/args.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wifite/args.py b/wifite/args.py index dab442e25..611ff3531 100755 --- a/wifite/args.py +++ b/wifite/args.py @@ -144,11 +144,11 @@ def _add_global_args(self, glob): help=self._verbose('ESSID (e.g. {GR}NETGEAR07{W}) of access point to attack')) glob.add_argument('--essid', help=argparse.SUPPRESS, action='store', dest='target_essid', type=str) - def file_to_list(file_path): - with open(file_path, 'r') as f: + def file_to_list(file_path): + with open(file_path, 'r') as f: return [line.strip() for line in f] - - ... + + ... glob.add_argument('-E', action='store', dest='ignore_essids_file',