LAZY SAENOZU
  • 게시글 대표 이미지 썸네일 주소
    [ 해킹/Pwnable ]
    32bit 쉘코드 C에서 실행
    2025-05-27 04:39:19
    EnvironmentVMware Workstation Pro, Ubuntu24.04-> powershell sshCode#include int main() { const char shellcode[] = "\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\x31\xd2\xb0\x0b\xcd\x80"; int (*ret)(); ret = (int (*)()) shellcode; (int)(*ret)(); return 0;}Compilegcc -m32 -fno-pic -fno-stack-protector -mpreferred-stack-boundary=2 -no-pie -z execstack -o shell sh..