kudaes / unwinder Goto Github PK
View Code? Open in Web Editor NEWCall stack spoofing for Rust
License: MIT License
Call stack spoofing for Rust
License: MIT License
using unwinder on 2008 or 2012, the exception is thrown as follows
thread 'main' panicked at winproc-0.6.4\src\handle.rs:68:13:
assertion `left != right` failed: Os { code: 6, kind: Uncategorized, message: "句柄无效。" }
left: 0
right: 0
the reason is that the dinvoke_rs::dinvoke::get_module_base_address call fails, I tried to use GetModuleHandleW to get the dll handle, but it still throws an exception, the new exception is as follows
thread 'main' panicked at unwinder\src\lib.rs:1697:63:
misaligned pointer dereference: address must be a multiple of 0x4 but is 0x7ffb335789fd
stack backtrace:
0: rust_begin_unwind
at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library\std\src/panicking.rs:647:5
1: core::panicking::panic_nounwind_fmt::runtime
at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library\core\src/panicking.rs:110:18
2: core::panicking::panic_nounwind_fmt
at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library\core\src/panicking.rs:122:9
3: core::panicking::panic_misaligned_pointer_dereference
at /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library\core\src/panicking.rs:221:5
4: unwinder::get_frame_size_with_setfpreg
at unwinder\src\lib.rs:1697:63
5: unwinder::find_setfpreg
at unwinder\src\lib.rs:1299:27
6: unwinder::spoof_and_call
at unwinder\src\lib.rs:976:35
target\release\deps\apc-772f286d6c12883d.apc.bad2967599c135d4-cgu.0.rcgu.o:apc.bad2967599c135:(.text+0x38b79): undefined reference to `spoof_call2'
Using replace and syscall will cause errors during compilation;
nightly-x86_64-pc-windows-gnu
rustup 1.26.0 (5af9b9484 2023-04-05)
rustc 1.78.0-nightly (ef324565d 2024-02-27)
cargo 1.78.0-nightly (194a60b29 2024-02-21)
Very good project. But I have some problems when I try to cross compile.
It seems that only the msvc environment can compile normally. MSYS2 failed.
warning: [email protected]: x86_64-w64-mingw32-gcc: warning: src/gateway.asm: linker input file unused because linking not done
warning: [email protected]: x86_64-w64-mingw32-ar: /projects/target/x86_64-pc-windows-gnu/release/build/unwinder-5f8cf206a3d006ec/out/src/gateway.o: No such file or directory
error: failed to run custom build command for `unwinder v0.1.1`
I purpose of this is to quickly obfuscate features via rust + OLLVM....
https://vrls.ws/posts/2023/06/obfuscating-rust-binaries-using-llvm-obfuscator-ollvm/
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.