https://github.com/acheong08/shellcode_utils
Compile C to null free x64 or x86 shellcode
https://github.com/acheong08/shellcode_utils
compiler shellcode shellcode-convert
Last synced: 2 months ago
JSON representation
Compile C to null free x64 or x86 shellcode
- Host: GitHub
- URL: https://github.com/acheong08/shellcode_utils
- Owner: acheong08
- Created: 2022-11-08T05:45:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-08T10:16:05.000Z (over 2 years ago)
- Last Synced: 2025-04-14T23:05:58.479Z (2 months ago)
- Topics: compiler, shellcode, shellcode-convert
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shellcode_utils
One liners to convert C code to shellcode# Usage
## Downloading
`$ git clone https://github.com/acheong08/shellcode_utils`
## Dependencies
`$ cd shellcode_utils/linux``$ ./requirements.sh`
## Running
`$ ./get_shellcode.sh `Arch: choose from '16', '32', '64', 'android', 'baremetal', 'cgc', 'freebsd', 'linux', 'windows', 'powerpc64', 'aarch64', 'powerpc', 'sparc64', 'mips64', 'msp430', 'alpha', 'amd64', 'riscv', 'sparc', 'thumb', 'cris', 'i386', 'ia64', 'm68k', 'mips', 's390', 'none', 'avr', 'arm', 'vax', 'little', 'big', 'be', 'eb', 'le', 'el'
# Other notes
[Using the shellcode](linux/README.md)# Credits
https://github.com/ebubekirtrkr/c2shellcode - For converting C to assemblyhttps://github.com/Gallopsled/pwntools - For getting raw opcodes from assembly
https://github.com/ColeHouston/x64-shellcode-encoder - For converting raw opcodes into string and fixing null bytes
https://github.com/isears/x86AlphanumEncoder - For x86 encoding