mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
fragattack: add --stay-up argument
This commit is contained in:
parent
8ea2321ce3
commit
641c4a5f2d
@ -204,6 +204,7 @@ if __name__ == "__main__":
|
||||
parser.add_argument('--connected-delay', type=float, default=1, help="Second to wait after AfterAuth before triggering Connected event")
|
||||
parser.add_argument('--to-self', default=False, action='store_true', help="Send ARP/DHCP/ICMP with same src and dst MAC address.")
|
||||
parser.add_argument('--no-drivercheck', default=False, action='store_true', help="Don't check if patched drivers are being used.")
|
||||
parser.add_argument('--stay-up', default=False, action='store_true', help="Don't quit when test has finished.")
|
||||
options = parser.parse_args()
|
||||
|
||||
# Default value for options that should not be command line parameters
|
||||
|
@ -333,6 +333,7 @@ class Station():
|
||||
|
||||
def stop_test(self, failed=True):
|
||||
self.test = None
|
||||
if not self.options.stay_up:
|
||||
quit(failed)
|
||||
|
||||
def reset_keys(self):
|
||||
|
Loading…
Reference in New Issue
Block a user