From 450f4de756aaf2cff603b8843fab3a937e6edbe1 Mon Sep 17 00:00:00 2001 From: Gregor Haas Date: Sun, 15 Dec 2019 11:40:50 -0500 Subject: [PATCH] Don't proceed if no permissions --- checkm8_remote/src/exploit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkm8_remote/src/exploit.c b/checkm8_remote/src/exploit.c index e692273..83a0ba3 100644 --- a/checkm8_remote/src/exploit.c +++ b/checkm8_remote/src/exploit.c @@ -16,7 +16,7 @@ int complete_stage(struct pwned_device *device, stage_function *func) int ret; ret = get_device_bundle(device); - if(ret == LIBUSB_ERROR_NO_DEVICE) + if(ret == LIBUSB_ERROR_NO_DEVICE || ret == LIBUSB_ERROR_ACCESS) { checkm8_debug_indent("\tfailed to get device bundle\n"); return CHECKM8_FAIL_NODEV;