https://github.com/0x5844/shellcode_runn3r
Inline Shellcode Runner for macOS (ARM64) in C++
https://github.com/0x5844/shellcode_runn3r
arm64 cpp educational-purposes macos shellcode-loader
Last synced: 5 months ago
JSON representation
Inline Shellcode Runner for macOS (ARM64) in C++
- Host: GitHub
- URL: https://github.com/0x5844/shellcode_runn3r
- Owner: 0x5844
- License: mit
- Created: 2025-01-20T17:12:08.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-01-20T17:19:45.000Z (12 months ago)
- Last Synced: 2025-03-15T08:25:39.757Z (10 months ago)
- Topics: arm64, cpp, educational-purposes, macos, shellcode-loader
- Language: C++
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shellcode_runn3r
Inline Shellcode Runner for macOS (ARM64) in C++
1. Compile the code:
```
g++ -o shellcode_runn3r shellcode_runn3r.cpp
shellcode_runn3r.cpp:37:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
37 | auto shellcode_func = reinterpret_cast(exec_mem);
| ^
1 warning generated.
```
2. Generate a shellcode file:
```
# this is a sample
echo -en '\x1F\x20\x03\xD5\x00\x00\x00\x14' > shellcode.bin
```
3. Run the compiled code with the generated shellcode file (observe the infinite loop as an example):
```
./shellcode_runn3r shellcode.bin
Executing shellcode...
^C
```