1 unstable release

0.1.0 Jun 20, 2019

#26 in #malware

BSD-3-Clause

5KB

xorstring

xorstring is the implementation of Malware related compile-time hacks with C++11 by LeFF but for Rust Nightly (2018 edition).

This XOR encrypts byte-string literals at compile-time with a XOR-cypher, then decrypts them at runtime. This circumvents simple .rodata, .data, and .text string checks by anti-cheats such as Valve Anti-Cheat, in that it can store plain-text internal data without the anti-cheat noticing it.

Why nightly?

Because of proc_macro_hygiene.

Where is the under-the-hood implementation?

Here: https://github.com/Proximyst/xorstring-procmacro

Licence

The project is licensed under the BSD 3-Clause Licence.


lib.rs:

XOR encrypted strings for Rust.

These are simply a port of LeFF's C++11 compile-time hacky XOR strings.

Dependencies

~2MB
~48K SLoC