从MSFvenom解码Shellcode(xor x64)?

问题描述 投票:0回答:1

Encoding the shellcode three times using the x64 xor Encoder

我正在编写自己的漏洞,我想知道在我的程序中添加shellcode时是否需要解码shellcode,或者shellcode中的解码器存根已经存在?如果我需要解码,我怎么能这样做,没有给出密钥?

64bit decode xor shellcode metasploit
1个回答
1
投票

不。您不必解密shellcode。我跑了同样的命令,得到了一些看起来像这样的东西

   0:    48 31 c9                 xor    rcx, rcx
   3:    48 81 e9 b6 ff ff ff     sub    rcx, 0xffffffffffffffb6
   a:    48 8d 05 ef ff ff ff     lea    rax, [rip+0xffffffffffffffef]        # 0x0
  11:    48 bb af cc c5 c0 90     movabs rbx, 0x29153c90c0c5ccaf
  18:    3c 15 29  
  1b:    48 31 58 27              xor    QWORD PTR [rax+0x27], rbx
  1f:    48 2d f8 ff ff ff        sub    rax, 0xfffffffffffffff8
  25:    e2 f4                    loop   0x1b

这是shellcode的起始部分,后跟xor'd第二次迭代有效负载。在解密时,我看到它附有类似的存根。所以你不必解密。只需将执行指向缓冲区的开头即可。

© www.soinside.com 2019 - 2024. All rights reserved.