{"id":22192748,"url":"https://github.com/ylarod/buer-obfuscator","last_synced_at":"2025-07-01T05:36:38.554Z","repository":{"id":37648961,"uuid":"495729064","full_name":"Ylarod/Buer-Obfuscator","owner":"Ylarod","description":"A WIP Obfuscator based on llvm14","archived":false,"fork":false,"pushed_at":"2022-12-05T08:51:05.000Z","size":189476,"stargazers_count":31,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-30T04:04:46.808Z","etag":null,"topics":["llvm","obfuscation","obfuscator"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ylarod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-24T08:12:13.000Z","updated_at":"2024-10-22T15:24:48.000Z","dependencies_parsed_at":"2023-01-23T00:55:18.840Z","dependency_job_id":null,"html_url":"https://github.com/Ylarod/Buer-Obfuscator","commit_stats":null,"previous_names":["ylarod/buer-obfuscator"],"tags_count":null,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ylarod%2FBuer-Obfuscator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ylarod%2FBuer-Obfuscator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ylarod%2FBuer-Obfuscator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ylarod%2FBuer-Obfuscator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ylarod","download_url":"https://codeload.github.com/Ylarod/Buer-Obfuscator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227732096,"owners_count":17811361,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["llvm","obfuscation","obfuscator"],"created_at":"2024-12-02T12:38:38.509Z","updated_at":"2024-12-02T12:38:39.169Z","avatar_url":"https://github.com/Ylarod.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Buer-Obfuscator\n\nA WIP Obfuscator based on llvm14.\n\n\u003e The name, **Buer**, comes from a character of Genshin Impact, also known as **Nahida**\n\n# Notes\n\nDevelop based on ndk-r25b, source can be found in [ndk-r25b](https://github.com/Ylarod/Buer-Obfuscator/tree/ndk-r25b) (Without commit history)\n\n# Features\n\n1. Function Name Obfuscate\n2. Global Variable Name Obfuscate\n\n# Usage\n\n## Building\n\n### Out-of-tree Building\n\n1. Set LLVM_HOME environment variable or add following code to env.cmake\n\n    ```cmake\n    set(ENV{LLVM_HOME} /path/to/llvm)\n    ```\n\n2. Build it.\n\n### In-tree Building\n\n1. Patch **llvm-project/llvm/CMakeLists.txt**\n\n   ```text\n   Index: llvm/CMakeLists.txt\n   IDEA additional info:\n   Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP\n   \u003c+\u003eUTF-8\n   ===================================================================\n   diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt\n   --- a/llvm/CMakeLists.txt\t(revision 73fc653f7946653a0ed13958fd8fa5391024bd46)\n   +++ b/llvm/CMakeLists.txt\t(date 1670200126146)\n   @@ -1094,6 +1094,8 @@\n      add_subdirectory(examples)\n    endif()\n    \n   +add_subdirectory(../../Obfuscator Obfuscator)\n   +\n    if( LLVM_INCLUDE_TESTS )\n      if(EXISTS ${LLVM_MAIN_SRC_DIR}/projects/test-suite AND TARGET clang)\n        include(LLVMExternalProjectUtils)\n   \n   ```\n   \n2. If you want to build static plugin, uncomment below in **src/CMakeLists.txt**\n\n   ```cmake\n   #    set(LLVM_OBFUSCATOR_LINK_INTO_TOOLS ON)\n   ```\n   \n3. Build LLVM\n\n   ```shell\n   mkdir build \u0026\u0026 cd build\n   cmake -G \"Ninja\" \\\n   -DLLVM_ENABLE_PROJECTS=\"clang\" \\\n   -DCMAKE_BUILD_TYPE=Debug \\\n   -DDEFAULT_SYSROOT=$(xcrun --show-sdk-path) \\\n   -DCMAKE_OSX_SYSROOT=$(xcrun --show-sdk-path) \\\n   -DCMAKE_OSX_ARCHITECTURES=\"arm64\" ..\n   ninja\n   ```\n\n# Debug\n\n1. Run `clang -v -fpass-plugin=libObfuscator.so -Xclang -load -Xclang libObfuscator.so test.cpp -o test`\n2. Get real clang command, which starts with `\"/path/to/clang\" -cc1`\n\n\u003e https://stackoverflow.com/questions/25076625/lldb-not-stopping-on-my-breakpoint\n\n# Development Document\n\n**Mostly Chinese only**\n\n1. [docs](https://github.com/Ylarod/Buer-Obfuscator/tree/main/docs)\n2. [Ylarod's Blog](https://xtuly.cn/tag/LLVM)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fylarod%2Fbuer-obfuscator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fylarod%2Fbuer-obfuscator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fylarod%2Fbuer-obfuscator/lists"}