Lucene search
K

Linux/x86 exit(0) Shellcode (5 bytes)

🗓️ 20 Mar 2018 00:00:00Reported by Anurag SrivastavaType 
zdt
 zdt
🔗 0day.today👁 19 Views

Smallest Linux/x86 exit(0) shellcode by Anurag Srivastav

Code
/*
# Smallest Linux/x86 - exit(0) shellcode (5 bytes)
# Author: Anurag Srivastava
# Tested on: i686 GNU/Linux
# Shellcode Length: 5

exitchotu:     file format elf32-i386

Disassembly of section .text:

08048060 <_start>:
 8048060:  6a 01                  push   0x1
 8048062:  58                     pop    eax
 8048063:  cd 80                  int    0x80
===============POC by Anurag Srivastava=========================
*/
#include<stdio.h>
#include<string.h>
 
unsigned char code[] = \
 
"\x6a\x01\x58\xcd\x80";
 
main()
{
 
printf("Shellcode Length: %d\n", strlen(code));
 
int (*ret)() = (int(*)())code;
 
ret();
 
}

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

20 Mar 2018 00:00Current
0.1Low risk
Vulners AI Score0.1
19