fragattack: add --stay-up argument

This commit is contained in:
Mathy Vanhoef 2020-12-18 21:18:51 +04:00
parent 8ea2321ce3
commit 641c4a5f2d
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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):