MCPcopy
hub / github.com/derv82/wifite2 / _add_wep_args

Method _add_wep_args

wifite/args.py:169–284  ·  view source on GitHub ↗
(self, wep)

Source from the content-addressed store, hash-verified

167
168
169 def _add_wep_args(self, wep):
170 # WEP
171 wep.add_argument('--wep',
172 action='store_true',
173 dest='wep_filter',
174 help=Color.s('Show only {C}WEP-encrypted networks{W}'))
175 wep.add_argument('-wep', help=argparse.SUPPRESS, action='store_true',
176 dest='wep_filter')
177
178 wep.add_argument('--require-fakeauth',
179 action='store_true',
180 dest='require_fakeauth',
181 help=Color.s('Fails attacks if {C}fake-auth{W} fails (default: {G}off{W})'))
182 wep.add_argument('--nofakeauth', help=argparse.SUPPRESS, action='store_true',
183 dest='require_fakeauth')
184 wep.add_argument('-nofakeauth', help=argparse.SUPPRESS, action='store_true',
185 dest='require_fakeauth')
186
187 wep.add_argument('--keep-ivs',
188 action='store_true',
189 dest='wep_keep_ivs',
190 default=False,
191 help=Color.s('Retain .IVS files and reuse when cracking ' +
192 '(default: {G}off{W})'))
193
194 wep.add_argument('--pps',
195 action='store',
196 dest='wep_pps',
197 metavar='[pps]',
198 type=int,
199 help=self._verbose('Packets-per-second to replay (default: ' +
200 '{G}%d pps{W})' % self.config.wep_pps))
201 wep.add_argument('-pps', help=argparse.SUPPRESS, action='store',
202 dest='wep_pps', type=int)
203
204 wep.add_argument('--wept',
205 action='store',
206 dest='wep_timeout',
207 metavar='[seconds]',
208 type=int,
209 help=self._verbose('Seconds to wait before failing (default: ' +
210 '{G}%d sec{W})' % self.config.wep_timeout))
211 wep.add_argument('-wept', help=argparse.SUPPRESS, action='store',
212 dest='wep_timeout', type=int)
213
214 wep.add_argument('--wepca',
215 action='store',
216 dest='wep_crack_at_ivs',
217 metavar='[ivs]',
218 type=int,
219 help=self._verbose('Start cracking at this many IVs (default: ' +
220 '{G}%d ivs{W})' % self.config.wep_crack_at_ivs))
221 wep.add_argument('-wepca', help=argparse.SUPPRESS, action='store',
222 dest='wep_crack_at_ivs', type=int)
223
224 wep.add_argument('--weprs',
225 action='store',
226 dest='wep_restart_stale_ivs',

Callers 1

get_argumentsMethod · 0.95

Calls 2

_verboseMethod · 0.95
sMethod · 0.80

Tested by

no test coverage detected