Examples in this repo:
β’ Allocate_With_Syscalls β It uses NTDLL functions directly with the ntapi Library
β’ Create_DLL β Creates DLL and pops up a msgbox, Rust does not fully support this so things might get weird since Rust DLL do not have a main function
β’ DeviceIoControl β Opens driver handle and executing DeviceIoControl
β’ EnableDebugPrivileges β Enable SeDebugPrivilege in the current process
β’ Shellcode_Local_inject β Executes shellcode directly in local process by casting pointer
β’ Execute_With_CMD β Executes cmd by passing a command via Rust
β’ ImportedFunctionCall β It imports minidump from dbghelp and executes it
β’ Kernel_Driver_Exploit β Kernel Driver exploit for a simple buffer overflow
β’ Named_Pipe_Client β Named Pipe Client
β’ Named_Pipe_Server β Named Pipe Server
β’ Process_Injection_CreateThread β Process Injection in remote process with CreateRemoteThread
β’ Unhooking β Unhooking calls
β’ asm_syscall β Obtaining PEB address via asm
β’ base64_system_enum β Base64 encoding/decoding strings
β’ http-https-requests β HTTP/S requests by ignoring cert check for GET/POST
β’ patch_etw β Patch ETW
β’ ppid_spoof β Spoof parent process for created process
β’ tcp_ssl_client β TCP client with SSL that ignores cert check (Requires openssl and perl to be installed for compiling)
β’ tcp_ssl_server β TCP Server, with port parameter(Requires openssl and perl to be installed for compiling)
β’ wmi_execute β Executes WMI query to obtain the AV/EDRs in the host
β’ Windows.h+ Bindings β This file contains structures of Windows.h plus complete customized LDR,PEB,etc.. that are undocumented officially by Microsoft, add at the top of your file include!("../bindings.rs");
β’ UUID_Shellcode_Execution β Plants shellcode from UUID array into heap space and uses EnumSystemLocalesA Callback in order to execute the shellcode.
https://github.com/trickster0/OffensiveRust