[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : win32 PEB!NtGlobalFlags shellcode 14 bytes
# Published : 2009-02-24
# Author : Koshi
# Previous Title : win32 telnetbind by winexec 111 bytes
# Next Title : linux/x86 chmod("/etc/shadow",666) & exit(0) 30 bytes
/*
PEB!NtGlobalFlags ( 14 BYTES )
Author: Koshi
Description: Uses PEB method to determine whether a debugger is
attached to the running proccess or not. No 9x. :(
Length: 14 Bytes
Registers Used: EAX,ESI,ESP
Compiled: jpXV34dd3v09Fh
*/
/*
00401000 > 6A 70 PUSH 70
00401002 58 POP EAX
00401003 56 PUSH ESI
00401004 333464 XOR ESI,DWORD PTR SS:[ESP]
00401007 64:3376 30 XOR ESI,DWORD PTR FS:[ESI+30]
0040100B 3946 68 CMP DWORD PTR DS:[ESI+68],EAX
JE DebuggerPresent ( If equal debugger attached )
*/
unsigned char Shellcode[] =
{"x6Ax70x58x56x33x34x64"
"x64x33x76x30x39x46x68"};
int main( int argc, char *argv[] )
{
printf( "Shellcode is %u bytes.n", sizeof(Shellcode)-1 );
printf( Shellcode, sizeof(Shellcode) );
return 0;
}
// www.Syue.com [2009-02-24]