百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

Android-Native-Import-Hide

> 编程语言
开源

一个用于在 ELF 二进制文件中隐藏和检索导入的库。

199 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个用于在 ELF 二进制文件中隐藏和检索导入的库。

Android-Native-Import-Hide

A library for hiding and retrieving imports in ELF binaries.

Features

  • Hide and retrieve symbols in ELF binaries
  • Support for multiple architectures (x86, x86_64, ARM, ARM64)
  • Cache resolved symbols for performance
  • Thread-safe symbol resolution
  • Detailed logging for debugging purposes
  • Check hooking before calling (ARM and ARM64 only)
  • Prevent hooking completely

Build and Installation

Compatible Compilers

  • GCC or Clang
  • Make
  • CMake

Clone the repository:

bash
git clone https://github.com/reveny/Android-Native-Import-Hide.git
cd Android-Native-Import-Hide

To include the library in your project, add the following line to your source code:

cpp
#include "HideImport.hpp"

Usage

Here is a simple example demonstrating how to use the library and make sure to include HideImport.cpp in the source file list:

Using HI_GET

cpp
#include 
#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;
}

Using HI_CALL

cpp
#include 
#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;
}

Using HI_SAFE

cpp
#include 
#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.

Single Header Library

A single header version of the library is available for convenience. Simply include single_header/HideImport.hpp in your project.

Preview

Disassembly without string encryption:

Disassembly with string encryption:

Credits

Special thanks to:

  • ARandomPerson for doing a lot of the work and the significant contribution and collaboration on this project.
  • Ac3ss0r for some inspiration from ShellcodeLab
  • LSPlt for inspiration from their module listing implementation: LSPlt

Contact

Feel free to reach out via:

  • Telegram Group: Join Group
  • Telegram Contact: Contact

License

This project is licensed under the MIT License. See the LICENSE file for details.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言