Shared Stub
Shared library stub ¸¸µé±â ¶
# Code by JaeHyuk Cho <mailto:minzkn@infoeq.com> Made in KOREA
# http://minzkn.pe.ky .global L_EngineStub .text .org 0x0000 L_EngineStub: /* Shared library °¡ ½ÇÇàµÉ¶§ offset À» °ËÃâÇϱâ À§ÇÑ trick */ call 0f 0: popl %ecx subl $0b, %ecx /* write(1, (void *)pMessage, strlen(pMessage)); */ movl $0x4,%eax movl $1, %ebx addl $0f, %ecx movl $1f - 0f, %edx int $0x80 /* exit(0); */ movl $1,%eax xorl %ebx, %ebx int $0x80 /* while(1); */ jmp . /* Halt */ 0: /* pMessage */ .ascii "My shared stub message\n" .ascii "Code by JaeHyuk Cho <mailto:minzkn@infoeq.com> Made in KOREA\n" .ascii "\n" 1: # End of source |