ASM Obfuscation

This commit is contained in:
Michael Mikovsky
2025-12-13 16:49:32 -07:00
parent 7525b9a213
commit a7cd65f7ae
10 changed files with 1131 additions and 148 deletions
+26 -2
View File
@@ -1,3 +1,27 @@
fn main() {
println!("Hello, world!");
#![no_std]
#![no_main]
enum TestEnum {
Test = 135,
}
#[unsafe(no_mangle)]
pub fn test() -> i32 {
let a = TestEnum::Test;
a as i32
}
#[unsafe(no_mangle)]
fn main() {
let a = 5;
unshell_obfuscate::junk_asm!(0.1);
unsafe { libc::exit(a as i32) }
}
#[panic_handler]
fn panic(_info: &core::panic::PanicInfo) -> ! {
loop {}
}