Don't re-exploit device

This commit is contained in:
2019-12-07 14:53:39 -05:00
parent 3a4f9a67f7
commit 551b01a5a6
2 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
.idea/*
cmake-build-debug/*

View File

@@ -108,7 +108,10 @@ int check_function(struct libusb_device_bundle *bundle)
int exploit_device()
{
int ret = complete_stage(stage1_function);
int ret = complete_stage(check_function);
if(ret == 0) return ret;
ret = complete_stage(stage1_function);
if(ret == 0)
{
ret = complete_stage(stage2_function);