| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A library for hiding and retrieving imports in ELF binaries.
Compatible Compilers
Clone the repository:
git clone https://github.com/reveny/Android-Native-Import-Hide.git
cd Android-Native-Import-HideTo include the library in your project, add the following line to your source code:
#include "HideImport.hpp"Here is a simple example demonstrating how to use the library and make sure to include HideImport.cpp in the source file list:
#include <stdio.h>
#include "HideImport.hpp"
int main() {
HI_FUNCTION_POINTER(my_malloc, void*, size_t size) = HI_GET("libc.so", "malloc");
void *testMemory = my_malloc(20);
printf("my_malloc test returned: %p\n", testMemory);
free(testMemory);
return 0;
}#include <stdio.h>
#include "HideImport.hpp"
int main() {
void *testMemory2 = HI_CALL("libc.so", malloc, void*, size_t)(15);
printf("malloc test 2 returned: %p\n", testMemory2);
free(testMemory2);
return 0;
}#include <stdio.h>
#include "HideImport.hpp"
int main() {
void *testMemory2 = HI_CALL_SAFE("libc.so", malloc, void*, size_t)(15);
printf("malloc test 2 returned: %p\n", testMemory2);
free(testMemory2);
return 0;
}The SAFE version will check if the function is hooked before calling. If the function happens to be hooked, the call will not be executed and return NULL.
A single header version of the library is available for convenience. Simply include single_header/HideImport.hpp in your project.
Disassembly without string encryption:

Disassembly with string encryption:

Special thanks to:
Feel free to reach out via:
This project is licensed under the MIT License. See the LICENSE file for details.
| Back | FazBrowse Home | New Git URL |