/*
# Exit.asm
# Author: Daniele Votta
# Description: Exit with no nulls.
# Tested on: i686 GNU/Linux
# Shellcode Length: 5
*/
#include<stdio.h>
#include<string.h>
/*
Disassembly of section .text:
00000000 <_start>:
0: 31 c0 xor eax,eax
2: 40 inc eax
3: cd 80 int 0x80
======================= POC Daniele Votta =======================
*/
unsigned char shellcode[] = \
"\x31\xc0\x40\xcd\x80";
int main()
{
printf("Shellcode Length: %d\n", strlen(shellcode));
int (*ret)() = (int(*)())shellcode;
ret();
}
-----------------------------
; Exit.asm
; Author: Daniele Votta
; Description: Exit with no nulls.
;
; Exit: FC 1 - SYNOPSIS
; #include <unistd.h>
; void _exit(int status);
global _start:
section .text
_start:
; Exit Gracefully
xor eax, eax
inc eax
int 0x80 ; syscall
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