Giter VIP home page Giter VIP logo

unwinder's People

Contributors

kudaes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

unwinder's Issues

2008 and 2012 compatibility

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

undefined reference to `spoof_call2'

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)

cross compile asm

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/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.