https://github.com/0xdea/shellcode
A collection of my shellcode samples.
https://github.com/0xdea/shellcode
bsd linux mips shellcode solaris sparc x86
Last synced: about 1 year ago
JSON representation
A collection of my shellcode samples.
- Host: GitHub
- URL: https://github.com/0xdea/shellcode
- Owner: 0xdea
- License: mit
- Created: 2022-02-05T07:59:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-04T15:48:50.000Z (about 2 years ago)
- Last Synced: 2025-03-20T13:13:32.724Z (about 1 year ago)
- Topics: bsd, linux, mips, shellcode, solaris, sparc, x86
- Language: C
- Homepage: https://0xdeadbeef.info
- Size: 27.3 KB
- Stars: 14
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shellcode
[](https://github.com/0xdea/shellcode)
[](https://github.com/0xdea/shellcode)
[](https://github.com/0xdea/shellcode)
[](https://twitter.com/0xdea)
[](https://infosec.exchange/@raptor)
> “A vulnerability provides an assembly language for a computer that has never been programmed before, and that was not designed with programmability in mind.”
>
> -- Halvar Flake
## x86
* [**setuid-linux.c**](https://github.com/0xdea/shellcode/blob/main/x86/setuid-linux.c). Old setuid/execve shellcode for Linux/x86 (30 bytes).
* [**portbind-linux.c**](https://github.com/0xdea/shellcode/blob/main/x86/portbind-linux.c). Old setuid/portbind shellcode for Linux/x86 (96 bytes).
* [**reusage-linux.c**](https://github.com/0xdea/shellcode/blob/main/x86/reusage-linux.c). Old execve shellcode for Linux/x86 that reuses "/bin/sh" in .rodata (16 bytes).
* [**gets-linux.c**](https://github.com/0xdea/shellcode/blob/main/x86/gets-linux.c). Old stdin-reopen/execve shellcode for Linux/x86, useful against gets() buffer overflows.
* [**raptorcode.c**](https://github.com/0xdea/shellcode/blob/main/x86/raptorcode.c). Old shellcode for Linux/x86 that writes a message to the current tty.
* [**setuid-bsd.c**](https://github.com/0xdea/shellcode/blob/main/x86/setuid-bsd.c). Old setuid/execve shellcode for BSD/x86 (30 bytes).
* [**portbind-bsd.c**](https://github.com/0xdea/shellcode/blob/main/x86/portbind-bsd.c). Old setuid/portbind shellcode for BSD/x86 (94 bytes).
* [**leetcode.c**](https://github.com/0xdea/shellcode/blob/main/x86/leetcode.c). Old setuid/execve shellcode for BSD/x86, with an ASCII message buried in the code.
## SPARC
* [**sparc_solaris_exec.c**](https://github.com/0xdea/shellcode/blob/main/SPARC/sparc_solaris_exec.c). Solaris/SPARC setuid/execve shellcode (60 bytes).
* [**sparc_solaris_chmod.c**](https://github.com/0xdea/shellcode/blob/main/SPARC/sparc_solaris_chmod.c). Solaris/SPARC setuid/chmod/exit shellcode (64 bytes).
* [**sparc_solaris_chmod2.c**](https://github.com/0xdea/shellcode/blob/main/SPARC/sparc_solaris_chmod2.c). Very small Solaris/SPARC chmod shellcode (36 bytes).
## MIPS
* [**mips_n32_msb_linux_revsh.c**](https://github.com/0xdea/shellcode/blob/main/MIPS/mips_n32_msb_linux_revsh.c). Basic MIPS N32 MSB Linux reverse shellcode.