Skip to content

Commit 4eba9e7

Browse files
committed
RecycledGate Update
Using NtCreateUserProcess via syscall instead of CreateProcessA.
1 parent ee31bdd commit 4eba9e7

File tree

5 files changed

+295
-42
lines changed

5 files changed

+295
-42
lines changed

syscalls/RecycledGate/Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

syscalls/RecycledGate/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edition = "2024"
55

66
[dependencies]
77
ntapi = "0.4.1"
8+
widestring = "1.2.0"
89

910
[dependencies.windows-sys]
1011
version = "0.60.2"
@@ -28,4 +29,4 @@ features = [
2829

2930
[build-dependencies]
3031
cc = "1.2.19"
31-
nasm-rs = "0.3.0"
32+
nasm-rs = "0.3.0"

syscalls/RecycledGate/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ The key evasion aspect is jumping to recycled `syscall; ret` sequences within nt
1212

1313
I have made some changes to the logic and code that support compatibility.
1414

15+
Download RecycledGate PoC: [Downlaod](https://download.5mukx.site/#/home?url=https://github.com/Whitecat18/Rust-for-Malware-Development/tree/main/syscalls/RecycledGate)
16+
1517
## Credits / Resources
1618
* [thefLink](https://x.com/thefLinkk) for original C Implementation of [RecycledGate](https://github.com/thefLink/RecycledGate/tree/main)
1719
* [Sektor7](https://sektor7.net) for inventing and documenting [Halosgate](https://blog.sektor7.net/#!res/2021/halosgate.md) on which this project is based

syscalls/RecycledGate/hasher/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ fn main() {
4141
"NtReadFile",
4242
"NtWriteFile",
4343
"NtDeviceIoControlFile",
44+
"RtlProcessHeap",
4445
];
4546

4647
for name in functions {

0 commit comments

Comments
 (0)