https://github.com/damonmohammadbagher/nativepayload_jmp4
in C# you can use Emit(Opcodes.jmp,TargetMethod) in your codes without writing any asm bytes in code to jump to pointer of TargetMethod or (MethodInfo) to run in-memory via Emit(Opcodes.jmp, method) in system.reflection namespace
https://github.com/damonmohammadbagher/nativepayload_jmp4
blueteam bypassing-avs c2 csharp pentest redteam
Last synced: 7 months ago
JSON representation
in C# you can use Emit(Opcodes.jmp,TargetMethod) in your codes without writing any asm bytes in code to jump to pointer of TargetMethod or (MethodInfo) to run in-memory via Emit(Opcodes.jmp, method) in system.reflection namespace
- Host: GitHub
- URL: https://github.com/damonmohammadbagher/nativepayload_jmp4
- Owner: DamonMohammadbagher
- Created: 2024-07-17T16:08:51.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-17T16:11:33.000Z (about 1 year ago)
- Last Synced: 2025-01-24T21:41:17.831Z (9 months ago)
- Topics: blueteam, bypassing-avs, c2, csharp, pentest, redteam
- Language: C#
- Homepage:
- Size: 174 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NativePayload_JMP4
in C# you can use Emit(Opcodes.jmp,TargetMethod) in your codes without writing any asm bytes in code to jump to pointer of TargetMethod or (MethodInfo) to run in-memory via Emit(Opcodes.jmp, method) in system.reflection namespace ;D
yeah you can use this technique to create your own Jump code without write any assembly code in source code ;p lol , "so in this case Csharp Method name [ExecuteInMemory] indirectly called in-memory via jump method without calling c# Method in source code" , i talked about this in my ebook "Bypassing Anti-viruses by C# Programming v2.0" in chapter 3.4 and now you can see source code ;)
Usage:
NativePayload_JMP4.exe