(self, glob)
| 38 | |
| 39 | |
| 40 | def _add_global_args(self, glob): |
| 41 | glob.add_argument('-v', |
| 42 | '--verbose', |
| 43 | action='count', |
| 44 | default=0, |
| 45 | dest='verbose', |
| 46 | help=Color.s('Shows more options ({C}-h -v{W}). Prints commands and ' + |
| 47 | 'outputs. (default: {G}quiet{W})')) |
| 48 | |
| 49 | glob.add_argument('-i', |
| 50 | action='store', |
| 51 | dest='interface', |
| 52 | metavar='[interface]', |
| 53 | type=str, |
| 54 | help=Color.s('Wireless interface to use, e.g. {C}wlan0mon{W} ' + |
| 55 | '(default: {G}ask{W})')) |
| 56 | |
| 57 | glob.add_argument('-c', |
| 58 | action='store', |
| 59 | dest='channel', |
| 60 | metavar='[channel]', |
| 61 | type=int, |
| 62 | help=Color.s('Wireless channel to scan (default: {G}all 2Ghz channels{W})')) |
| 63 | glob.add_argument('--channel', help=argparse.SUPPRESS, action='store', |
| 64 | dest='channel', type=int) |
| 65 | |
| 66 | glob.add_argument('-5', |
| 67 | '--5ghz', |
| 68 | action='store_true', |
| 69 | dest='five_ghz', |
| 70 | help=self._verbose('Include 5Ghz channels (default: {G}off{W})')) |
| 71 | |
| 72 | |
| 73 | glob.add_argument('-mac', |
| 74 | '--random-mac', |
| 75 | action='store_true', |
| 76 | dest='random_mac', |
| 77 | help=Color.s('Randomize wireless card MAC address (default: {G}off{W})')) |
| 78 | |
| 79 | glob.add_argument('-p', |
| 80 | action='store', |
| 81 | dest='scan_time', |
| 82 | nargs='?', |
| 83 | const=10, |
| 84 | metavar='scan_time', |
| 85 | type=int, |
| 86 | help=Color.s('{G}Pillage{W}: Attack all targets after ' + |
| 87 | '{C}scan_time{W} (seconds)')) |
| 88 | glob.add_argument('--pillage', help=argparse.SUPPRESS, action='store', |
| 89 | dest='scan_time', nargs='?', const=10, type=int) |
| 90 | |
| 91 | glob.add_argument('--kill', |
| 92 | action='store_true', |
| 93 | dest='kill_conflicting_processes', |
| 94 | help=Color.s('Kill processes that conflict with Airmon/Airodump ' + |
| 95 | '(default: {G}off{W})')) |
| 96 | |
| 97 | glob.add_argument('-b', |
no test coverage detected