-
Notifications
You must be signed in to change notification settings - Fork 21
/
cve-2020-1350.sh
611 lines (605 loc) · 22.8 KB
/
cve-2020-1350.sh
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
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
#!/usr/bin/env bash
##################################################################
# #
# Script to exploit CVE-2020-1350 AKA SIGRed. #
# Targets Domain Controller and achieves Domain Admin. #
# #
# Testing on corporate environments up to Windows Server 2019, #
# #
# Requirements: Local LAN Access, Linux OS (Attacker) #
# #
# Notes: #
# - Usage ./cve20201350.sh <Domain Controller IP Address> #
# - Example ./cve20201350.sh 10.0.0.1 #
# #
# Written by Tinker. For Demonstration Purposes Only. #
# #
##################################################################
USAGE="
Bash script to achieve Domain Admin via SIGRed (CVE-2020-1350)
Flags:
-c Domain Controller IP Address.
usage: cve-2020-1350.sh -c <domain controller>
example: cve-2020-1350.sh -c 10.0.0.1
"
# Check if any flags were set. If not, print out help.
if [ $# -eq 0 ]; then
echo "$USAGE"
exit
fi
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Arabic (NX)',
# {
# 'Ret' => 0x6fd8f727,
# 'DisableNX' => 0x6fd916e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Chinese - Traditional / Taiwan (NX)',
# {
# 'Ret' => 0x5860f727,
# 'DisableNX' => 0x586116e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Chinese - Simplified (NX)',
# {
# 'Ret' => 0x58fbf727,
# 'DisableNX' => 0x58fc16e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Chinese - Traditional (NX)',
# {
# 'Ret' => 0x5860f727,
# 'DisableNX' => 0x586116e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Czech (NX)',
# {
# 'Ret' => 0x6fe1f727,
# 'DisableNX' => 0x6fe216e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Danish (NX)',
# {
# 'Ret' => 0x5978f727,
# 'DisableNX' => 0x597916e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 German (NX)',
# {
# 'Ret' => 0x6fd9f727,
# 'DisableNX' => 0x6fda16e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
echo "We're no strangers to love"
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Greek (NX)',
# {
# 'Ret' => 0x592af727,
# 'DisableNX' => 0x592b16e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Spanish (NX)',
# {
# 'Ret' => 0x6fdbf727,
# 'DisableNX' => 0x6fdc16e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
echo "You know the rules and so do I."
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Finnish (NX)',
# {
# 'Ret' => 0x597df727,
# 'DisableNX' => 0x597e16e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 French (NX)',
# {
# 'Ret' => 0x595bf727,
# 'DisableNX' => 0x595c16e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
echo "A full commitment's what I'm thinking of."
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Hebrew (NX)',
# {
# 'Ret' => 0x5940f727,
# 'DisableNX' => 0x594116e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Hungarian (NX)',
# {
# 'Ret' => 0x5970f727,
# 'DisableNX' => 0x597116e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
echo "You wouldn't get this from any other guy."
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Italian (NX)',
# {
# 'Ret' => 0x596bf727,
# 'DisableNX' => 0x596c16e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Japanese (NX)',
# {
# 'Ret' => 0x567fd3be,
# 'DisableNX' => 0x568016e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
echo "I just wanna tell you how I'm feeling."
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Korean (NX)',
# {
# 'Ret' => 0x6fd6f727,
# 'DisableNX' => 0x6fd716e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Dutch (NX)',
# {
# 'Ret' => 0x596cf727,
# 'DisableNX' => 0x596d16e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
echo "Gotta make you understand"
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Norwegian (NX)',
# {
# 'Ret' => 0x597cf727,
# 'DisableNX' => 0x597d16e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Polish (NX)',
# {
# 'Ret' => 0x5941f727,
# 'DisableNX' => 0x594216e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
echo "Never gonna give you up."
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Portuguese - Brazilian (NX)',
# {
# 'Ret' => 0x596ff727,
# 'DisableNX' => 0x597016e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Portuguese (NX)',
# {
# 'Ret' => 0x596bf727,
# 'DisableNX' => 0x596c16e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
echo "Never gonna let you down."
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Russian (NX)',
# {
# 'Ret' => 0x6fe1f727,
# 'DisableNX' => 0x6fe216e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Swedish (NX)',
# {
# 'Ret' => 0x597af727,
# 'DisableNX' => 0x597b16e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
echo "Never gonna run around and desert you."
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP2 Turkish (NX)',
# {
# 'Ret' => 0x5a78f727,
# 'DisableNX' => 0x5a7916e2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Arabic (NX)',
# {
# 'Ret' => 0x6fd8f807,
# 'DisableNX' => 0x6fd917c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
echo "Never gonna make you cry."
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Chinese - Traditional / Taiwan (NX)',
# {
# 'Ret' => 0x5860f807,
# 'DisableNX' => 0x586117c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Chinese - Simplified (NX)',
# {
# 'Ret' => 0x58fbf807,
# 'DisableNX' => 0x58fc17c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
echo "Never gonna say goodbye."
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Chinese - Traditional (NX)',
# {
# 'Ret' => 0x5860f807,
# 'DisableNX' => 0x586117c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Czech (NX)',
# {
# 'Ret' => 0x6fe1f807,
# 'DisableNX' => 0x6fe217c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
echo "Never gonna tell a lie and hurt you."
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Danish (NX)',
# {
# 'Ret' => 0x5978f807,
# 'DisableNX' => 0x597917c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 German (NX)',
# {
# 'Ret' => 0x6fd9f807,
# 'DisableNX' => 0x6fda17c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Greek (NX)',
# {
# 'Ret' => 0x592af807,
# 'DisableNX' => 0x592b17c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Spanish (NX)',
# {
# 'Ret' => 0x6fdbf807,
# 'DisableNX' => 0x6fdc17c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Finnish (NX)',
# {
# 'Ret' => 0x597df807,
# 'DisableNX' => 0x597e17c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 French (NX)',
# {
# 'Ret' => 0x595bf807,
# 'DisableNX' => 0x595c17c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Hebrew (NX)',
# {
# 'Ret' => 0x5940f807,
# 'DisableNX' => 0x594117c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Hungarian (NX)',
# {
# 'Ret' => 0x5970f807,
# 'DisableNX' => 0x597117c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Italian (NX)',
# {
# 'Ret' => 0x596bf807,
# 'DisableNX' => 0x596c17c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Japanese (NX)',
# {
# 'Ret' => 0x567fd4d2,
# 'DisableNX' => 0x568017c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Korean (NX)',
# {
# 'Ret' => 0x6fd6f807,
# 'DisableNX' => 0x6fd717c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Dutch (NX)',
# {
# 'Ret' => 0x596cf807,
# 'DisableNX' => 0x596d17c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Norwegian (NX)',
# {
# 'Ret' => 0x597cf807,
# 'DisableNX' => 0x597d17c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Polish (NX)',
# {
# 'Ret' => 0x5941f807,
# 'DisableNX' => 0x594217c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Portuguese - Brazilian (NX)',
# {
# 'Ret' => 0x596ff807,
# 'DisableNX' => 0x597017c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Portuguese (NX)',
# {
# 'Ret' => 0x596bf807,
# 'DisableNX' => 0x596c17c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Russian (NX)',
# {
# 'Ret' => 0x6fe1f807,
# 'DisableNX' => 0x6fe217c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Swedish (NX)',
# {
# 'Ret' => 0x597af807,
# 'DisableNX' => 0x597b17c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# # NX bypass for XP SP2/SP3
# [ 'Windows XP SP3 Turkish (NX)',
# {
# 'Ret' => 0x5a78f807,
# 'DisableNX' => 0x5a7917c2,
# 'Scratch' => 0x00020408
# }
# ], # JMP ESI ACGENRAL.DLL, NX/NX BYPASS ACGENRAL.DLL
#
# def exploit
#
# connect()
# dns_query()
#
# # Use a copy of the target
# mytarget = target
#
#
# if(target['auto'])
#
# mytarget = nil
#
# print_status("Automatically detecting the target...")
# fprint = smb_fingerprint()
#
# print_status("Fingerprint: #{fprint['os']} - #{fprint['sp']} - lang:#{fprint['lang']}")
#
# # Bail early on unknown OS
# if(fprint['os'] == 'Unknown')
# raise RuntimeError, "No matching target"
# end
#
# # Windows 2000 is mostly universal
# if(fprint['os'] == 'Windows 2000')
# mytarget = self.targets[1]
# end
#
# # Windows XP SP0/SP1 is mostly universal
# if(fprint['os'] == 'Windows XP' and fprint['sp'] == "Service Pack 0 / 1")
# mytarget = self.targets[2]
# end
#
# # Windows 2003 SP0 is mostly universal
# if(fprint['os'] == 'Windows 2003' and fprint['sp'] == "No Service Pack")
# mytarget = self.targets[5]
# end
#
# # Windows 2003 R2 is treated the same as 2003
# if(fprint['os'] == 'Windows 2003 R2')
# fprint['os'] = 'Windows 2003'
# end
#
# # Service Pack match must be exact
# if((not mytarget) and fprint['sp'].index('+'))
# print_error("Could not determine the exact service pack")
# print_status("Auto-targeting failed, use 'show targets' to manually select one")
# disconnect
# return
# end
#
# # Language Pack match must be exact or we default to English
# if((not mytarget) and fprint['lang'] == 'Unknown')
# print_status("We could not detect the language pack, defaulting to English")
# fprint['lang'] = 'English'
# end
#
# # Normalize the service pack string
# fprint['sp'].gsub!(/Service Packs+/, 'SP')
#
# if(not mytarget)
# self.targets.each do |t|
# if(t.name =~ /#{fprint['os']} #{fprint['sp']} #{fprint['lang']} (NX)/)
# mytarget = t
# break
# end
# end
# end
#
# if(not mytarget)
# raise RuntimeError, "No matching target"
# end
#
# print_status("Selected Target: #{mytarget.name}")
# end
#
# #
# # Build the malicious path name
# #
#
# padder = [*("A".."Z")]
# pad = "A"
# while(pad.length < 7)
# c = padder[rand(padder.length)]
# next if pad.index(c)
# pad += c
# end
#
# prefix = "\"
# path = ""
# server = Rex::Text.rand_text_alpha(rand(8)+1).upcase
#
#
# #
# # Windows 2000, XP (NX), and 2003 (NO NX) mytargets
# #
# if(not mytarget['RetDec'])
#
# jumper = Rex::Text.rand_text_alpha(70).upcase
# jumper[ 4,4] = [mytarget.ret].pack("V")
# jumper[50,8] = make_nops(8)
# jumper[58,2] = "xebx62"
#
# path =
# Rex::Text.to_unicode("\") +
#
# # This buffer is removed from the front
# Rex::Text.rand_text_alpha(100) +
#
# # Shellcode
# payload.encoded +
#
# # Relative path to trigger the bug
# Rex::Text.to_unicode("\..\..\") +
#
# # Extra padding
# Rex::Text.to_unicode(pad) +
#
# # Writable memory location (static)
# [mytarget['Scratch']].pack("V") + # EBP
#
# # Return to code which disables NX (or just the return)
# [ mytarget['DisableNX'] || mytarget.ret ].pack("V") +
#
# # Padding with embedded jump
# jumper +
#
# # NULL termination
# "x00" doc.txt notes 2
echo "100% Open Source!"