-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
290 lines (285 loc) · 12.3 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
using System;
using System.IO;
using TuringMachine.Core;
using TuringMachine.Core.Helpers;
namespace Coverage.Payload
{
class Program
{
static void Main()
{
Fuzzer.Run(3, Fuzz);
}
private static void HitValue(string text)
{
if (RandomHelper.GetRandom(0, 10_000) == 0)
{
throw new Exception(text);
}
}
private static void Fuzz(Stream obj, int taskId)
{
var data = obj.ReadByte();
switch (data)
{
case 0x00: HitValue("Value: 0x00"); break;
case 0x01: HitValue("Value: 0x01"); break;
case 0x02: HitValue("Value: 0x02"); break;
case 0x03: HitValue("Value: 0x03"); break;
case 0x04: HitValue("Value: 0x04"); break;
case 0x05: HitValue("Value: 0x05"); break;
case 0x06: HitValue("Value: 0x06"); break;
case 0x07: HitValue("Value: 0x07"); break;
case 0x08: HitValue("Value: 0x08"); break;
case 0x09: HitValue("Value: 0x09"); break;
case 0x0A: HitValue("Value: 0x0A"); break;
case 0x0B: HitValue("Value: 0x0B"); break;
case 0x0C: HitValue("Value: 0x0C"); break;
case 0x0D: HitValue("Value: 0x0D"); break;
case 0x0E: HitValue("Value: 0x0E"); break;
case 0x0F: HitValue("Value: 0x0F"); break;
case 0x10: HitValue("Value: 0x10"); break;
case 0x11: HitValue("Value: 0x11"); break;
case 0x12: HitValue("Value: 0x12"); break;
case 0x13: HitValue("Value: 0x13"); break;
case 0x14: HitValue("Value: 0x14"); break;
case 0x15: HitValue("Value: 0x15"); break;
case 0x16: HitValue("Value: 0x16"); break;
case 0x17: HitValue("Value: 0x17"); break;
case 0x18: HitValue("Value: 0x18"); break;
case 0x19: HitValue("Value: 0x19"); break;
case 0x1A: HitValue("Value: 0x1A"); break;
case 0x1B: HitValue("Value: 0x1B"); break;
case 0x1C: HitValue("Value: 0x1C"); break;
case 0x1D: HitValue("Value: 0x1D"); break;
case 0x1E: HitValue("Value: 0x1E"); break;
case 0x1F: HitValue("Value: 0x1F"); break;
case 0x20: HitValue("Value: 0x20"); break;
case 0x21: HitValue("Value: 0x21"); break;
case 0x22: HitValue("Value: 0x22"); break;
case 0x23: HitValue("Value: 0x23"); break;
case 0x24: HitValue("Value: 0x24"); break;
case 0x25: HitValue("Value: 0x25"); break;
case 0x26: HitValue("Value: 0x26"); break;
case 0x27: HitValue("Value: 0x27"); break;
case 0x28: HitValue("Value: 0x28"); break;
case 0x29: HitValue("Value: 0x29"); break;
case 0x2A: HitValue("Value: 0x2A"); break;
case 0x2B: HitValue("Value: 0x2B"); break;
case 0x2C: HitValue("Value: 0x2C"); break;
case 0x2D: HitValue("Value: 0x2D"); break;
case 0x2E: HitValue("Value: 0x2E"); break;
case 0x2F: HitValue("Value: 0x2F"); break;
case 0x30: HitValue("Value: 0x30"); break;
case 0x31: HitValue("Value: 0x31"); break;
case 0x32: HitValue("Value: 0x32"); break;
case 0x33: HitValue("Value: 0x33"); break;
case 0x34: HitValue("Value: 0x34"); break;
case 0x35: HitValue("Value: 0x35"); break;
case 0x36: HitValue("Value: 0x36"); break;
case 0x37: HitValue("Value: 0x37"); break;
case 0x38: HitValue("Value: 0x38"); break;
case 0x39: HitValue("Value: 0x39"); break;
case 0x3A: HitValue("Value: 0x3A"); break;
case 0x3B: HitValue("Value: 0x3B"); break;
case 0x3C: HitValue("Value: 0x3C"); break;
case 0x3D: HitValue("Value: 0x3D"); break;
case 0x3E: HitValue("Value: 0x3E"); break;
case 0x3F: HitValue("Value: 0x3F"); break;
case 0x40: HitValue("Value: 0x40"); break;
case 0x41: HitValue("Value: 0x41"); break;
case 0x42: HitValue("Value: 0x42"); break;
case 0x43: HitValue("Value: 0x43"); break;
case 0x44: HitValue("Value: 0x44"); break;
case 0x45: HitValue("Value: 0x45"); break;
case 0x46: HitValue("Value: 0x46"); break;
case 0x47: HitValue("Value: 0x47"); break;
case 0x48: HitValue("Value: 0x48"); break;
case 0x49: HitValue("Value: 0x49"); break;
case 0x4A: HitValue("Value: 0x4A"); break;
case 0x4B: HitValue("Value: 0x4B"); break;
case 0x4C: HitValue("Value: 0x4C"); break;
case 0x4D: HitValue("Value: 0x4D"); break;
case 0x4E: HitValue("Value: 0x4E"); break;
case 0x4F: HitValue("Value: 0x4F"); break;
case 0x50: HitValue("Value: 0x50"); break;
case 0x51: HitValue("Value: 0x51"); break;
case 0x52: HitValue("Value: 0x52"); break;
case 0x53: HitValue("Value: 0x53"); break;
case 0x54: HitValue("Value: 0x54"); break;
case 0x55: HitValue("Value: 0x55"); break;
case 0x56: HitValue("Value: 0x56"); break;
case 0x57: HitValue("Value: 0x57"); break;
case 0x58: HitValue("Value: 0x58"); break;
case 0x59: HitValue("Value: 0x59"); break;
case 0x5A: HitValue("Value: 0x5A"); break;
case 0x5B: HitValue("Value: 0x5B"); break;
case 0x5C: HitValue("Value: 0x5C"); break;
case 0x5D: HitValue("Value: 0x5D"); break;
case 0x5E: HitValue("Value: 0x5E"); break;
case 0x5F: HitValue("Value: 0x5F"); break;
case 0x60: HitValue("Value: 0x60"); break;
case 0x61: HitValue("Value: 0x61"); break;
case 0x62: HitValue("Value: 0x62"); break;
case 0x63: HitValue("Value: 0x63"); break;
case 0x64: HitValue("Value: 0x64"); break;
case 0x65: HitValue("Value: 0x65"); break;
case 0x66: HitValue("Value: 0x66"); break;
case 0x67: HitValue("Value: 0x67"); break;
case 0x68: HitValue("Value: 0x68"); break;
case 0x69: HitValue("Value: 0x69"); break;
case 0x6A: HitValue("Value: 0x6A"); break;
case 0x6B: HitValue("Value: 0x6B"); break;
case 0x6C: HitValue("Value: 0x6C"); break;
case 0x6D: HitValue("Value: 0x6D"); break;
case 0x6E: HitValue("Value: 0x6E"); break;
case 0x6F: HitValue("Value: 0x6F"); break;
case 0x70: HitValue("Value: 0x70"); break;
case 0x71: HitValue("Value: 0x71"); break;
case 0x72: HitValue("Value: 0x72"); break;
case 0x73: HitValue("Value: 0x73"); break;
case 0x74: HitValue("Value: 0x74"); break;
case 0x75: HitValue("Value: 0x75"); break;
case 0x76: HitValue("Value: 0x76"); break;
case 0x77: HitValue("Value: 0x77"); break;
case 0x78: HitValue("Value: 0x78"); break;
case 0x79: HitValue("Value: 0x79"); break;
case 0x7A: HitValue("Value: 0x7A"); break;
case 0x7B: HitValue("Value: 0x7B"); break;
case 0x7C: HitValue("Value: 0x7C"); break;
case 0x7D: HitValue("Value: 0x7D"); break;
case 0x7E: HitValue("Value: 0x7E"); break;
case 0x7F: HitValue("Value: 0x7F"); break;
case 0x80: HitValue("Value: 0x80"); break;
case 0x81: HitValue("Value: 0x81"); break;
case 0x82: HitValue("Value: 0x82"); break;
case 0x83: HitValue("Value: 0x83"); break;
case 0x84: HitValue("Value: 0x84"); break;
case 0x85: HitValue("Value: 0x85"); break;
case 0x86: HitValue("Value: 0x86"); break;
case 0x87: HitValue("Value: 0x87"); break;
case 0x88: HitValue("Value: 0x88"); break;
case 0x89: HitValue("Value: 0x89"); break;
case 0x8A: HitValue("Value: 0x8A"); break;
case 0x8B: HitValue("Value: 0x8B"); break;
case 0x8C: HitValue("Value: 0x8C"); break;
case 0x8D: HitValue("Value: 0x8D"); break;
case 0x8E: HitValue("Value: 0x8E"); break;
case 0x8F: HitValue("Value: 0x8F"); break;
case 0x90: HitValue("Value: 0x90"); break;
case 0x91: HitValue("Value: 0x91"); break;
case 0x92: HitValue("Value: 0x92"); break;
case 0x93: HitValue("Value: 0x93"); break;
case 0x94: HitValue("Value: 0x94"); break;
case 0x95: HitValue("Value: 0x95"); break;
case 0x96: HitValue("Value: 0x96"); break;
case 0x97: HitValue("Value: 0x97"); break;
case 0x98: HitValue("Value: 0x98"); break;
case 0x99: HitValue("Value: 0x99"); break;
case 0x9A: HitValue("Value: 0x9A"); break;
case 0x9B: HitValue("Value: 0x9B"); break;
case 0x9C: HitValue("Value: 0x9C"); break;
case 0x9D: HitValue("Value: 0x9D"); break;
case 0x9E: HitValue("Value: 0x9E"); break;
case 0x9F: HitValue("Value: 0x9F"); break;
case 0xA0: HitValue("Value: 0xA0"); break;
case 0xA1: HitValue("Value: 0xA1"); break;
case 0xA2: HitValue("Value: 0xA2"); break;
case 0xA3: HitValue("Value: 0xA3"); break;
case 0xA4: HitValue("Value: 0xA4"); break;
case 0xA5: HitValue("Value: 0xA5"); break;
case 0xA6: HitValue("Value: 0xA6"); break;
case 0xA7: HitValue("Value: 0xA7"); break;
case 0xA8: HitValue("Value: 0xA8"); break;
case 0xA9: HitValue("Value: 0xA9"); break;
case 0xAA: HitValue("Value: 0xAA"); break;
case 0xAB: HitValue("Value: 0xAB"); break;
case 0xAC: HitValue("Value: 0xAC"); break;
case 0xAD: HitValue("Value: 0xAD"); break;
case 0xAE: HitValue("Value: 0xAE"); break;
case 0xAF: HitValue("Value: 0xAF"); break;
case 0xB0: HitValue("Value: 0xB0"); break;
case 0xB1: HitValue("Value: 0xB1"); break;
case 0xB2: HitValue("Value: 0xB2"); break;
case 0xB3: HitValue("Value: 0xB3"); break;
case 0xB4: HitValue("Value: 0xB4"); break;
case 0xB5: HitValue("Value: 0xB5"); break;
case 0xB6: HitValue("Value: 0xB6"); break;
case 0xB7: HitValue("Value: 0xB7"); break;
case 0xB8: HitValue("Value: 0xB8"); break;
case 0xB9: HitValue("Value: 0xB9"); break;
case 0xBA: HitValue("Value: 0xBA"); break;
case 0xBB: HitValue("Value: 0xBB"); break;
case 0xBC: HitValue("Value: 0xBC"); break;
case 0xBD: HitValue("Value: 0xBD"); break;
case 0xBE: HitValue("Value: 0xBE"); break;
case 0xBF: HitValue("Value: 0xBF"); break;
case 0xC0: HitValue("Value: 0xC0"); break;
case 0xC1: HitValue("Value: 0xC1"); break;
case 0xC2: HitValue("Value: 0xC2"); break;
case 0xC3: HitValue("Value: 0xC3"); break;
case 0xC4: HitValue("Value: 0xC4"); break;
case 0xC5: HitValue("Value: 0xC5"); break;
case 0xC6: HitValue("Value: 0xC6"); break;
case 0xC7: HitValue("Value: 0xC7"); break;
case 0xC8: HitValue("Value: 0xC8"); break;
case 0xC9: HitValue("Value: 0xC9"); break;
case 0xCA: HitValue("Value: 0xCA"); break;
case 0xCB: HitValue("Value: 0xCB"); break;
case 0xCC: HitValue("Value: 0xCC"); break;
case 0xCD: HitValue("Value: 0xCD"); break;
case 0xCE: HitValue("Value: 0xCE"); break;
case 0xCF: HitValue("Value: 0xCF"); break;
case 0xD0: HitValue("Value: 0xD0"); break;
case 0xD1: HitValue("Value: 0xD1"); break;
case 0xD2: HitValue("Value: 0xD2"); break;
case 0xD3: HitValue("Value: 0xD3"); break;
case 0xD4: HitValue("Value: 0xD4"); break;
case 0xD5: HitValue("Value: 0xD5"); break;
case 0xD6: HitValue("Value: 0xD6"); break;
case 0xD7: HitValue("Value: 0xD7"); break;
case 0xD8: HitValue("Value: 0xD8"); break;
case 0xD9: HitValue("Value: 0xD9"); break;
case 0xDA: HitValue("Value: 0xDA"); break;
case 0xDB: HitValue("Value: 0xDB"); break;
case 0xDC: HitValue("Value: 0xDC"); break;
case 0xDD: HitValue("Value: 0xDD"); break;
case 0xDE: HitValue("Value: 0xDE"); break;
case 0xDF: HitValue("Value: 0xDF"); break;
case 0xE0: HitValue("Value: 0xE0"); break;
case 0xE1: HitValue("Value: 0xE1"); break;
case 0xE2: HitValue("Value: 0xE2"); break;
case 0xE3: HitValue("Value: 0xE3"); break;
case 0xE4: HitValue("Value: 0xE4"); break;
case 0xE5: HitValue("Value: 0xE5"); break;
case 0xE6: HitValue("Value: 0xE6"); break;
case 0xE7: HitValue("Value: 0xE7"); break;
case 0xE8: HitValue("Value: 0xE8"); break;
case 0xE9: HitValue("Value: 0xE9"); break;
case 0xEA: HitValue("Value: 0xEA"); break;
case 0xEB: HitValue("Value: 0xEB"); break;
case 0xEC: HitValue("Value: 0xEC"); break;
case 0xED: HitValue("Value: 0xED"); break;
case 0xEE: HitValue("Value: 0xEE"); break;
case 0xEF: HitValue("Value: 0xEF"); break;
case 0xF0: HitValue("Value: 0xF0"); break;
case 0xF1: HitValue("Value: 0xF1"); break;
case 0xF2: HitValue("Value: 0xF2"); break;
case 0xF3: HitValue("Value: 0xF3"); break;
case 0xF4: HitValue("Value: 0xF4"); break;
case 0xF5: HitValue("Value: 0xF5"); break;
case 0xF6: HitValue("Value: 0xF6"); break;
case 0xF7: HitValue("Value: 0xF7"); break;
case 0xF8: HitValue("Value: 0xF8"); break;
case 0xF9: HitValue("Value: 0xF9"); break;
case 0xFA: HitValue("Value: 0xFA"); break;
case 0xFB: HitValue("Value: 0xFB"); break;
case 0xFC: HitValue("Value: 0xFC"); break;
case 0xFD: HitValue("Value: 0xFD"); break;
case 0xFE: HitValue("Value: 0xFE"); break;
case 0xFF: HitValue("Value: 0xFF"); break;
default: HitValue("Value: 0x" + data.ToString("X2")); break;
}
}
}
}