komimoe / arkari Goto Github PK
View Code? Open in Web Editor NEWYet another llvm based obfuscator based on goron.
License: Apache License 2.0
Yet another llvm based obfuscator based on goron.
License: Apache License 2.0
update to 16.0.6
大佬,goron中有IPObfuscationContext.cpp,但是你移植过来的就删掉了,这个具体是干什么的,请大佬解答解答
错误 172 error : error in backend: llvm.eh.recoverfp must take a function as the first argument
错误 173 error : clang frontend command failed with exit code 70 (use -v to see invocation)
使用命令:-mllvm -irobf-indbr -mllvm -irobf-icall -mllvm -irobf-indgv -mllvm -irobf-cse -mllvm -irobf-cff
给我说下
比如说能否将你编译成功的给整合进ndk22 23 24 25
我发现只要加上这些代码,然后启用cse
,编译器就会crash,虽然问题不大,换成constexpr cosnt char* name_list[]
就行
constexpr std::array name_list{
"a.json",
"b.json",
"c.json",
"d.json",
"e.json",
"f.json",
"g.json"
};
for (auto file : name_list) {
LOGI("%s", file);
}
Assertion failed: Ty && "Invalid GetElementPtrInst indices for type!", file D:\source\llvm-project\llvm\include\llvm/IR/Instructions.h, line 933
[build] Stack dump:
[build] 0. Program arguments: clang++.exe --target=aarch64-none-linux-android28 --sysroot=D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_6\sysroot -Dfoo_EXPORTS -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Oz -flto -fdata-sections -ffunction-sections -O3 -DNDEBUG -fPIC -fvisibility=hidden -fno-rtti -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -std=gnu++17 -mllvm -irobf-indbr -mllvm -irobf-icall -mllvm -irobf-indgv -mllvm -irobf-cse -mllvm -irobf-cff -MD -MT foo.cc.o -MF foo.cc.o.d -o foo.cc.o -c foo.cc
[build] 1. <eof> parser at end of file
[build] 2. Optimizer
[build] Exception Code: 0x80000003
[build] #0 0x00007ff6e4197445 (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2487445)
[build] #1 0x00007ff96d86cb7d (C:\Windows\System32\ucrtbase.dll+0x6cb7d)
[build] #2 0x00007ff96d86db81 (C:\Windows\System32\ucrtbase.dll+0x6db81)
[build] #3 0x00007ff96d86f505 (C:\Windows\System32\ucrtbase.dll+0x6f505)
[build] #4 0x00007ff96d86f841 (C:\Windows\System32\ucrtbase.dll+0x6f841)
[build] #5 0x00007ff6e1ed618a (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1c618a)
[build] #6 0x00007ff6e3b998da (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1e898da)
[build] #7 0x00007ff6e3b333f4 (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1e233f4)
[build] #8 0x00007ff6e1e3411c (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x12411c)
[build] #9 0x00007ff6e536e4f3 (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x365e4f3)
[build] #10 0x00007ff6e536e34f (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x365e34f)
[build] #11 0x00007ff6e536e73f (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x365e73f)
[build] #12 0x00007ff6e536d8d6 (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x365d8d6)
[build] #13 0x00007ff6e53704a1 (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x36604a1)
[build] #14 0x00007ff6e5366b61 (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x3656b61)
[build] #15 0x00007ff6e52775cd (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x35675cd)
[build] #16 0x00007ff6e4586850 (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2876850)
[build] #17 0x00007ff6e45839f2 (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x28739f2)
[build] #18 0x00007ff6e4584284 (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2874284)
[build] #19 0x00007ff6e6f77c9b (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x5267c9b)
[build] #20 0x00007ff6e5a735f7 (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x3d635f7)
[build] #21 0x00007ff6e4c794c4 (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2f694c4)
[build] #22 0x00007ff6e6f7681c (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x526681c)
[build] #23 0x00007ff6e4c792c8 (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2f692c8)
[build] #24 0x00007ff6e4c3d5ba (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2f2d5ba)
[build] #25 0x00007ff6e4cef8fb (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2fdf8fb)
[build] #26 0x00007ff6e1dbcc3b (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xacc3b)
[build] #27 0x00007ff6e1db5a6b (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xa5a6b)
[build] #28 0x00007ff6e4b4e6aa (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2e3e6aa)
[build] #29 0x00007ff6e4185c4a (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2475c4a)
[build] #30 0x00007ff6e4b4ecbb (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2e3ecbb)
[build] #31 0x00007ff6e4ac40cf (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2db40cf)
[build] #32 0x00007ff6e4ac4290 (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2db4290)
[build] #33 0x00007ff6e4aa8ea2 (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2d98ea2)
[build] #34 0x00007ff6e1db8ca6 (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xa8ca6)
[build] #35 0x00007ff6e6baba38 (D:\Program\ndk-r25b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4e9ba38)
[build] #36 0x00007ff96f567bd4 (C:\Windows\System32\KERNEL32.DLL+0x17bd4)
[build] #37 0x00007ff97038ce51 (C:\Windows\SYSTEM32\ntdll.dll+0x6ce51)
[build] clang++: error: clang frontend command failed due to signal (use -v to see invocation)
[build] clang version 16.0.1 (https://github.com/llvm/llvm-project.git 662fd3794e73f0a812acb55036e36daa651c77e1)
[build] Target: aarch64-none-linux-android28
[build] Thread model: posix
顺带一提,和原版一样抛出的Exception没有被捕获,虽然问题也不大(去掉混淆之后再测试没问题)
class MyException {
public:
MyException(const char* func, const char* file, int line)
: function_(func), file_(file), line_(line){};
MyException(const char* func, const char* file, int line, const char* reason)
: function_(func), file_(file), line_(line), reason_(reason){};
MyException(const char* func, const char* file, int line, const std::string& reason)
: function_(func), file_(file), line_(line), reason_(reason){};
int line_;
const char* function_;
const char* file_;
std::string reason_;
std::string what();
void trace(const char* tag, android_LogPriority priority);
private:
std::string GetShortFileName();
};
When enabling IndirectCall or IndirectGlobalVariable and LTO, the linker crashes with:
ld: error: /var/folders/3z/bt682d0n1l33_v4mrjkg1_000000gn/T/test-e53d6f.o: Explicit load/store type does not match pointee type of pointer operand (Producer: 'LLVM14.0.7git' Reader: 'LLVM 14.0.7git')
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
主要是-irobf-cff这个开了太占用性能了,想让他给不耗性能的函数使用,用__attribute((annotate(("mllvm irobf-cff)"))))没效果
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.