0xdea/shellcode
GitHub: 0xdea/shellcode
一个多架构 shellcode 样本集合,提供 x86、x86_64、SPARC、MIPS 平台上各类功能 shellcode 的源码参考。
Stars: 25 | Forks: 3
# shellcode
新旧的 shellcode 样本集合。

## 文章
*
## Shellcode
### x86
* [**setuid-linux.c**](x86/setuid-linux.c). 旧版 Linux/x86 的 setuid/execve shellcode(30 字节)。
* [**portbind-linux.c**](x86/portbind-linux.c). 旧版 Linux/x86 的 setuid/portbind shellcode(96 字节)。
* [**reusage-linux.c**](x86/reusage-linux.c). 旧版 Linux/x86 的 execve shellcode,复用 .rodata 中的 "/bin/sh"(16 字节)。
* [**gets-linux.c**](x86/gets-linux.c). 旧版 Linux/x86 的 stdin 重定向/execve shellcode,适用于 gets() 缓冲区溢出。
* [**raptorcode.c**](x86/raptorcode.c). 旧版 Linux/x86 的 shellcode,向当前 tty 写入消息。
* [**setuid-bsd.c**](x86/setuid-bsd.c). 旧版 BSD/x86 的 setuid/execve shellcode(30 字节)。
* [**portbind-bsd.c**](x86/portbind-bsd.c). 旧版 BSD/x86 的 setuid/portbind shellcode(94 字节)。
* [**leetcode.c**](x86/leetcode.c). 旧版 BSD/x86 的 setuid/execve shellcode,代码中隐藏了一条 ASCII 消息。
### x86_64
* [**read-no-H.s**](x86_64/read-no-H.s). 不包含 0x48 字节的 Linux/x86_64 sendfile shellcode。
* [**exec-no-H.s**](x86_64/exec-no-H.s). 不包含 0x48 字节的 Linux/x86_64 exec shellcode。
* [**read-no-syscall.s**](x86_64/read-no-syscall.s). 不包含 0x0f05 字节的 Linux/x86_64 sendfile shellcode。
* [**read-write.s**](x86_64/read-write.s). Linux/x86_64 文件读写 shellcode。
* [**chmod-tiny.s**](x86_64/chmod-tiny.s). 12 字节的 Linux/x86_64 chmod 4 shellcode。
* [**exec-tiny.s**](x86_64/exec-tiny.s). 12 字节的 Linux/x86_64 exec shellcode。
### SPARC
* [**sparc_solaris_exec.c**](SPARC/sparc_solaris_exec.c). Solaris/SPARC setuid/execve shellcode(60 字节)。
* [**sparc_solaris_chmod.c**](SPARC/sparc_solaris_chmod.c). Solaris/SPARC setuid/chmod/exit shellcode(64 字节)。
* [**sparc_solaris_chmod2.c**](SPARC/sparc_solaris_chmod2.c). 极小型的 Solaris/SPARC chmod shellcode(36 字节)。
### MIPS
* [**mips_n32_msb_linux_revsh.c**](MIPS/mips_n32_msb_linux_revsh.c). 基础的 MIPS N32 MSB Linux 反向 shell shellcode。
标签:Hakrawler, Shellcode, 安全, 客户端加密, 技术调研, 汇编, 超时处理