Skip to content

Instantly share code, notes, and snippets.

@t3mp-0xCC
Last active March 27, 2020 14:19
Show Gist options
  • Save t3mp-0xCC/83de2bfb2fba306dce00819299f36a9b to your computer and use it in GitHub Desktop.
Save t3mp-0xCC/83de2bfb2fba306dce00819299f36a9b to your computer and use it in GitHub Desktop.
diff -urN ./android_get_essential_address/libexploit/exploit.c ./android_get_essential_address_no_futex/libexploit/exploit.c
--- ./android_get_essential_address/libexploit/exploit.c 2020-03-27 23:14:09.681349855 +0900
+++ ./android_get_essential_address_no_futex/libexploit/exploit.c 2020-03-27 22:44:25.688475320 +0900
@@ -239,7 +239,7 @@
return false;
}
-static bool
+/*static bool
attempt_futex_exploit(unsigned long int address,
unsigned long int write_value,
unsigned long int restore_value,
@@ -253,7 +253,7 @@
return false;
}
-
+*/
static bool
attempt_fb_mem_exploit(unsigned long int address,
unsigned long int write_value,
@@ -322,13 +322,13 @@
return info.result;
}
printf("\n");
-
+/*
printf("Attempt futex exploit...\n");
if (attempt_futex_exploit(address, write_value, restore_value, &info)) {
return info.result;
}
printf("\n");
-
+*/
if (fb_mem_exploit_enable) {
printf("Attempt fb_mem exploit...\n");
if (attempt_fb_mem_exploit(address, write_value, restore_value, &info)) {
@@ -446,7 +446,7 @@
break;
}
}
-
+/*
if (!result) {
result = true;
@@ -458,7 +458,7 @@
}
}
}
-
+*/
if (!result) {
result = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment