Skip to content

Commit

Permalink
Merge pull request #165 from v-t-p/master
Browse files Browse the repository at this point in the history
Merge changes
  • Loading branch information
kimocoder authored Aug 9, 2023
2 parents c308b15 + 65d78d3 commit 9ef5ce2
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions wifite/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

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='append',
dest='ignore_essids',
metavar='[text]',
type=str,
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. Can be used more than once.'))
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',
Expand Down

0 comments on commit 9ef5ce2

Please sign in to comment.