Skip to content

Commit 9ef5ce2

Browse files
authored
Merge pull request derv82#165 from v-t-p/master
Merge changes
2 parents c308b15 + 65d78d3 commit 9ef5ce2

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

wifite/args.py

+10-6
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,18 @@ def _add_global_args(self, glob):
144144
help=self._verbose('ESSID (e.g. {GR}NETGEAR07{W}) of access point to attack'))
145145
glob.add_argument('--essid', help=argparse.SUPPRESS, action='store', dest='target_essid', type=str)
146146

147+
def file_to_list(file_path):
148+
with open(file_path, 'r') as f:
149+
return [line.strip() for line in f]
150+
151+
...
147152
glob.add_argument('-E',
148-
action='append',
149-
dest='ignore_essids',
150-
metavar='[text]',
151-
type=str,
153+
action='store',
154+
dest='ignore_essids_file',
155+
metavar='[file]',
156+
type=argparse.FileType('r'),
152157
default=None,
153-
help=self._verbose(
154-
'Hides targets with ESSIDs that match the given text. Can be used more than once.'))
158+
help=self._verbose('Hides targets with ESSIDs that match the given text in the file.'))
155159
glob.add_argument('--ignore-essid', help=argparse.SUPPRESS, action='append', dest='ignore_essids', type=str)
156160

157161
glob.add_argument('-ic',

0 commit comments

Comments
 (0)