-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsend_many_responses.py
executable file
·1391 lines (1171 loc) · 66.1 KB
/
send_many_responses.py
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
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env python3
from frames_protocol import *
def test_shift_depth():
MAX_DEPTH = 1024
def test_miso_goes_high():
pin_high(MOSI)
for i in range(0, MAX_DEPTH):
pin_high(CLK)
sleep(DELAY)
if get_pin(MISO):
log("MISO high on count %d, clk-rising" % i)
for j in range(i,MAX_DEPTH):
single_clk_pulse()
break
pin_low(CLK)
sleep(DELAY)
if get_pin(MISO):
log("MISO high on count %s, clk-falling" % i)
for j in range(i,MAX_DEPTH):
single_clk_pulse()
break
if not get_pin(MISO):
log("MISO did not change state to high after %d CLKs" % MAX_DEPTH)
return
def test_miso_goes_low():
pin_low(MOSI)
for i in range(0, MAX_DEPTH):
pin_high(CLK)
sleep(DELAY)
if not get_pin(MISO):
log("MISO low on count %d, clk-rising" % i)
for j in range(i,MAX_DEPTH):
single_clk_pulse()
break
pin_low(CLK)
sleep(DELAY)
if not get_pin(MISO):
log("MISO low on count %s, clk-falling" % i)
for j in range(i,MAX_DEPTH):
single_clk_pulse()
break
if get_pin(MISO):
log("MISO did not change state to low after %d CLKs" % MAX_DEPTH)
return
if get_pin(MISO):
shift_in_and_out_sequence(bitstring.BitString(bin='1'*MAX_DEPTH))
test_miso_goes_low()
test_miso_goes_high()
else:
shift_in_and_out_sequence(bitstring.BitString(bin='0'*MAX_DEPTH))
test_miso_goes_high()
test_miso_goes_low()
return
from password_candidates import *
def try_responses(password_prepare, message_responder, frame_responder, name=None):
for password in passwords:
if name is None:
name = str(password_prepare)+str(message_responder)+str(frame_responder)
log("\n%s (%s):" % (password, name))
def unexpected_output_action(test_bytes):
return False
challenge_instigate = instigat
challenge_sequence = clock_in_clock_out(challenge_instigate, blanksss, single_clk_pulse, unexpected_output_action, default_serial_handler)
log("challenge: %s" % challenge_sequence.hex)
password_sequence = password_prepare(bitstring.BitString(password))
message_response_sequence = message_responder(password_sequence, challenge_sequence[:128])
frame_response_sequence = frame_responder(message_response_sequence, challenge_sequence)
log("response: %s" % frame_response_sequence.hex)
def unexpected_output_action(test_bytes):
if not bitstring.BitString(test_bytes) == blanksss:
return True
return False
def anything_but_testmode_serial_handler(line):
log(line)
if 'Test mode activated' in line.decode("utf-8"):
return True, line
return False, line
result_sequence = clock_in_clock_out(frame_response_sequence, blanksss, single_clk_pulse, unexpected_output_action, anything_but_testmode_serial_handler)
if result_sequence != blanksss:
log("=====================================================================================")
log("FLAG (???)")
log("result : %s" % result_sequence.hex)
log("=====================================================================================")
with open('flags.txt', 'a') as the_file:
the_file.write("\n%s (%s):\n" % (password, name))
the_file.write("challenge: %s\n" % challenge_sequence.hex)
the_file.write("response : %s\n" % frame_response_sequence.hex)
the_file.write("result : %s\n" % result_sequence.hex)
return
def test_roundtrip(expected_sequence):
actual_sequence = send_and_receive(expected_sequence)
if actual_sequence != expected_sequence:
log("sent : %s" % expected_sequence.hex)
log("received: %s" % actual_sequence.hex)
return False
return True
def explore_after_instigate():
enable_shift()
test_shift_depth()
disable_shift()
test_roundtrip(instigat)
enable_shift()
test_shift_depth()
disable_shift()
# changing_bits = blanksss.copy()
# for bit in range(0,512):
# log('')
# test_roundtrip(instigat)
#
# test_sequence = blanksss.copy()
# test_sequence.set(1, [bit])
# if not test_roundtrip(test_sequence):
# changing_bits |= test_sequence
#
# log("changing bits: %s" % changing_bits.hex)
return
def walk_all_response_offset():
for offset in range(0,512):
log('')
test_roundtrip(instigat)
response_sequence = blanksss.copy()
response_sequence.overwrite(bitstring.BitString(bin='1'*128), offset)
test_roundtrip(response_sequence)
return
def trigger_challenge_algorithm():
test_roundtrip(instigat)
response_sequence = onesssss.copy()
def unexpected_output_action():
return
test_roundtrip(response_sequence)
return
def sustain_the_challenge():
def unexpected_output_action(test_bytes):
return False
clock_in_clock_out(instigat, instigat, single_clk_pulse, unexpected_output_action, logging_serial_handler)
clock_in_clock_out(instigat, instigat, single_clk_pulse, unexpected_output_action, logging_serial_handler)
return
def try_all_challenges():
for frame_responder in [get_offset_responder(384-24), get_offset_responder(384)]: # [get_setbit_responder(instigat), get_setbit_responder(sd_alone), get_setbit_responder(sd_count), get_setbit_responder(sd_alone | sd_count), get_setbit_responder(instigat | sd_alone | sd_count), get_setbit_responder(blanksss),get_offset_responder(128), get_offset_responder(256), get_offset_responder(384)]:
for variant_responder in [get_trivial_responder, get_rev_responder, get_swp_responder, get_swprev_responder]:
for password_prepare in [pad_password, md5_password]:
for operation in [encrypt, decrypt]:
for cipher in [aes_ecb, aes_ctr, aes_cbc]:
try_responses(password_prepare, variant_responder(get_cipher_message_responder(operation, cipher)), frame_responder, name=str(password_prepare)+str(variant_responder)+str(operation)+str(cipher)+str(frame_responder))
for password_prepare in [trivial, pad_password]:
for message_responder in [hmacmd5, md5concat]:
try_responses(password_prepare, variant_responder(message_responder), frame_responder, name=str(password_prepare)+str(variant_responder)+str(message_responder)+str(frame_responder))
for password_prepare in [pad_password]:
try_responses(password_prepare, variant_responder(xor), frame_responder,name=str(password_prepare)+str(variant_responder)+str(xor)+str(frame_responder) )
return
def try_suggested_challenges():
for frame_responder in [get_offset_ored_responder(384-24), get_offset_ored_responder(128), get_offset_ored_responder(0)]:
for variant_responder in [get_bitswapped_responder, get_rev_bitswapped_responder, get_rev_responder]:
for password_prepare in [pad_password, md5_password]:
for operation in [encrypt, decrypt]:
for cipher in [aes_ecb]:
try_responses(password_prepare, variant_responder(get_cipher_message_responder(operation, cipher)), frame_responder, name=str(password_prepare)+str(variant_responder)+str(operation)+str(cipher)+str(frame_responder))
for password_prepare in [trivial, pad_password]:
for message_responder in [hmacmd5, md5concat]:
try_responses(password_prepare, variant_responder(message_responder), frame_responder, name=str(password_prepare)+str(variant_responder)+str(message_responder)+str(frame_responder))
return
def try_jb_challenges():
for i in range(0,512-128-24):
frame_responder = get_offset_responder(i)
for variant_responder in [get_rev_responder, get_bitswapped_responder, get_rev_bitswapped_responder]:
for password_prepare in [pad_password]:
for operation in [encrypt, decrypt]:
for cipher in [aes_ecb]:
try_responses(password_prepare, variant_responder(get_cipher_message_responder(operation, cipher)), frame_responder, name=str(password_prepare)+str(variant_responder)+str(operation)+str(cipher)+str(frame_responder))
return
def try_aes_challenges():
for frame_responder in [get_offset_ored_responder(356), get_offset_ored_responder(356-128), get_offset_responder(512-128-25-128)]:
for variant_responder in [get_rev_responder, get_bitswapped_responder, get_rev_bitswapped_responder]:
for password_prepare in [ssl_password, pad_password]:
for operation in [encrypt, decrypt]:
for cipher in [aes_ecb]:
try_responses(password_prepare, variant_responder(get_cipher_message_responder(operation, cipher)), frame_responder, name=str(password_prepare)+str(variant_responder)+str(operation)+str(cipher)+str(frame_responder))
return
def try_just128bit_experiment():
#release_reset_and_wait()
serial_handler = logging_serial_handler
frameA_rx = quick_instigate_challenge(serial_handler)
if frameA_rx is None:
return None
frameB1_rx = single_frame_send_and_receive(bitstring.BitString(hex='00'*16))
if not get_and_handle_serial(serial_handler):
return None
frameB2_rx = single_frame_send_and_receive(bitstring.BitString(hex='CC'*16))
if not get_and_handle_serial(serial_handler):
return None
log("end frame")
single_clk_pulse()
if not get_and_handle_serial(serial_handler):
return None
frameC_rx = quick_instigate_challenge(serial_handler)
if frameC_rx is None:
return None
frameD1_rx = single_frame_send_and_receive(bitstring.BitString(hex='00'*16))
if not get_and_handle_serial(serial_handler):
return None
frameD2_rx = single_frame_send_and_receive(bitstring.BitString(hex='CC'*16))
if not get_and_handle_serial(serial_handler):
return None
log("end frame")
single_clk_pulse()
if not get_and_handle_serial(serial_handler):
return None
return
def explore_frames_shiftdepth():
serial_handler = logging_serial_handler
sentinel = bitstring.BitString(hex='DEFEA7ED55555555555555555555555555555555')
enable_shift()
rx = shift_in_and_out_sequence_until(sentinel)
log("frameA shift depth: %d" % (rx.len - sentinel.len))
get_and_handle_serial(serial_handler)
shift_in_and_out_sequence(instigat[-160:]) #quick instigate
disable_shift()
single_clk_pulse()
get_and_handle_serial(serial_handler)
enable_shift()
rx = shift_in_and_out_sequence_until(sentinel)
get_and_handle_serial(serial_handler)
log("frameB shift depth: %d" % (rx.len - sentinel.len))
disable_shift()
single_clk_pulse()
get_and_handle_serial(serial_handler)
enable_shift()
rx = shift_in_and_out_sequence_until(sentinel)
get_and_handle_serial(serial_handler)
log("frameC shift depth: %d" % (rx.len - sentinel.len))
disable_shift()
single_clk_pulse()
get_and_handle_serial(serial_handler)
return
def guess_frameB_auth_bit():
serial_handler = logging_serial_handler
enable_shift()
shift_in_and_out_sequence(instigat[-160:]) #quick instigate
disable_shift()
single_clk_pulse()
get_and_handle_serial(serial_handler)
trailer=bitstring.BitString(hex='55555555555555555555555555555555DEFEA7ED')
test_bit = bitstring.BitString(bin='0'*512)
test_bit.overwrite(trailer, 512-trailer.len)
enable_shift()
rx = shift_in_and_out_sequence(test_bit)
disable_shift()
single_clk_pulse()
get_and_handle_serial(serial_handler)
sleep(1)
get_and_handle_serial(serial_handler)
return
def explore_frameB_bits():
serial_handler = logging_serial_handler
for bit in range(512-128, 0, -1):
release_reset_and_wait()
enable_shift()
shift_in_and_out_sequence(instigat[-160:]) #quick instigate
disable_shift()
log("end frame")
single_clk_pulse()
get_and_handle_serial(serial_handler)
test_bit = bitstring.BitString(bin='0'*512)
test_bit.set(1, [bit])
enable_shift()
rx = shift_in_and_out_sequence(test_bit)
disable_shift()
log("end frame")
single_clk_pulse()
get_and_handle_serial(serial_handler)
enable_shift()
shift_in_and_out_sequence(blanksss)
disable_shift()
log("end frame")
single_clk_pulse()
get_and_handle_serial(serial_handler)
return
def explore_frameB_stuckbits():
serial_handler = logging_serial_handler
enable_shift()
shift_in_and_out_sequence(instigat[-160:]) #quick instigate
disable_shift()
log("end frame")
single_clk_pulse()
get_and_handle_serial(serial_handler)
test_bit = bitstring.BitString(bin='1'*512)
test_bit &= ~(sd_count|sd_alone|instigat|authicat)
enable_shift()
shift_in_and_out_sequence(test_bit)
disable_shift()
log("end frame")
single_clk_pulse()
get_and_handle_serial(serial_handler)
enable_shift()
actual_bit=shift_in_and_out_sequence(blanksss)
disable_shift()
log("end frame")
single_clk_pulse()
get_and_handle_serial(serial_handler)
log("stuck bits: %s" % (test_bit ^ actual_bit).hex)
return
def explore_auth_failed():
serial_handler = logging_serial_handler
enable_shift()
shift_in_and_out_sequence((instigat)[-160:]) #quick instigate
disable_shift()
log("end frame")
single_clk_pulse()
get_and_handle_serial(serial_handler)
# test_bit = bitstring.BitString(bin='1'*512)
# test_bit &= ~(sd_count|sd_alone|instigat|authicat|b_stuck)
# test_bit |= authicat
test_bit = bitstring.BitString(bin='0'*512)
test_bit |= authicat
test_bit.overwrite(bitstring.BitString(bin='1'*128), 0)
enable_shift()
shift_in_and_out_sequence(bitstring.BitString(bin='0'*128))
shift_in_and_out_sequence(test_bit)
disable_shift()
log("end frame")
single_clk_pulse()
get_and_handle_serial(serial_handler)
enable_shift()
actual_bit=shift_in_and_out_sequence(blanksss)
disable_shift()
log("end frame")
single_clk_pulse()
get_and_handle_serial(serial_handler)
return
def explore_repeat_frameA_nochallenge():
serial_handler = logging_serial_handler
while True:
enable_shift()
shift_in_and_out_sequence(((blanksss))[-160:]) #quick instigate
disable_shift()
log("end frame")
pin_high(TRIG_OUT)
single_clk_pulse()
pin_low(TRIG_OUT)
get_and_handle_serial(serial_handler)
sleep(2)
return
def explore_repeat_frameB_auth_failed():
serial_handler = logging_serial_handler
while True:
enable_shift()
shift_in_and_out_sequence((instigat)[-160:]) #quick instigate
disable_shift()
log("end frame")
single_clk_pulse()
get_and_handle_serial(serial_handler)
test_bit = instigat.copy()[-160:]
enable_shift()
shift_in_and_out_sequence(instigat[-160:])
shift_in_and_out_sequence(test_bit)
disable_shift()
log("end frame")
pin_high(TRIG_OUT)
single_clk_pulse()
pin_low(TRIG_OUT)
get_and_handle_serial(serial_handler)
sleep(2)
return
def try_frameB_response(password_bytes, password_prepare, message_responder, frame_responder, name=None):
serial_handler = reset_on_sd_serial_handler
serial_output = bytearray(b'')
if name is None:
name = str(password_bytes)+str(password_prepare)+str(message_responder)
log("\n%s" % name)
frameA_rx = quick_instigate_challenge(serial_handler)
if frameA_rx is None:
return None
challenge_sequence = single_frame_send_and_receive(bitstring.BitString(hex='00'*16))
ok, line = get_and_handle_serial(serial_handler)
if not ok:
return None
serial_output.extend(line)
log("challenge: %s" % challenge_sequence.hex)
password_sequence = password_prepare(bitstring.BitString(password_bytes))
log("password prepared : %s" % password_sequence.hex)
message_response_sequence = message_responder(password_sequence, challenge_sequence)
log("response : %s" % message_response_sequence.hex)
frame_response_sequence = frame_responder(message_response_sequence, challenge_sequence)
pin_high(TRIG_OUT) # interesting stuff happens in frameB here
single_frame_send_and_receive(frame_response_sequence)
pin_low(TRIG_OUT) # interesting area over now
ok, line = get_and_handle_serial(serial_handler)
if not ok:
return None
serial_output.extend(line)
log("end frame")
single_clk_pulse()
ok, line = get_and_handle_serial(serial_handler)
if not ok:
return None
serial_output.extend(line)
result_sequence = single_frame_send_and_receive(bitstring.BitString(bin='0'*512))
log("end frame")
single_clk_pulse()
ok, line = get_and_handle_serial(serial_handler)
if not ok:
return None
serial_output.extend(line)
if len(serial_output.decode('utf-8').strip(' \t\n\r')) == 0:
log("WARNING: no output on serial")
if ((not 'Authentication failed' in serial_output.decode('utf-8')) and (not 'Self-destruct triggered' in serial_output.decode('utf-8'))) or (result_sequence != blanksss):
log("=====================================================================================")
log("FLAG (???)")
log("result : %s" % result_sequence.hex)
log("=====================================================================================")
with open('flags.txt', 'a') as the_file:
the_file.write("\n%s\n" % name)
the_file.write("challenge: %s\n" % challenge_sequence.hex)
the_file.write("response : %s\n" % message_response_sequence.hex)
the_file.write("result : %s\n" % result_sequence.hex)
the_file.write("serial : %s\n" % serial_output)
return
def try_frameB_quadD_responses(passwords, password_prepare, message_responder, name=None):
frame_responder = get_quadD_andauth_responder()
serial_handler = reset_on_sd_serial_handler
serial_output = bytearray(b'')
if name is None:
name = str(password_bytes)+str(password_prepare)+str(message_responder)
initiated = False
for password_bytes in passwords:
log("\n%s%s" % (password_bytes, name))
if not initiated:
frameA_rx = quick_instigate_challenge(serial_handler)
if frameA_rx is None:
return None
challenge_sequence = single_frame_send_and_receive(bitstring.BitString(hex='00'*16))
initiated = True
ok, line = get_and_handle_serial(serial_handler)
if not ok:
return None
serial_output.extend(line)
log("challenge: %s" % challenge_sequence.hex)
else:
log("reuse previous challenge: %s" % challenge_sequence.hex)
password_sequence = password_prepare(bitstring.BitString(password_bytes))
log("password prepared: %s" % password_sequence.hex)
message_response_sequence = message_responder(password_sequence, challenge_sequence)
if message_response_sequence & (sd_alone | sd_count)[-128:]:
log("skipping self-destruct response: %s" % message_response_sequence.hex)
initiated = True # not needed, but reminds us we need to try again without re-initiating a challenge
continue
log("response : %s" % message_response_sequence.hex)
frame_response_sequence = frame_responder(message_response_sequence, challenge_sequence)
single_frame_send_and_receive(frame_response_sequence)
ok, line = get_and_handle_serial(serial_handler)
if not ok:
return None
serial_output.extend(line)
log("end frame")
single_clk_pulse()
initiated = False
ok, line = get_and_handle_serial(serial_handler)
if not ok:
return None
serial_output.extend(line)
result_sequence = single_frame_send_and_receive(bitstring.BitString(bin='0'*512))
log("end frame")
single_clk_pulse()
ok, line = get_and_handle_serial(serial_handler)
if not ok:
return None
serial_output.extend(line)
if len(serial_output.decode('utf-8').strip(' \t\n\r')) == 0:
log("WARNING: no output on serial")
if ((not 'Authentication failed' in serial_output.decode('utf-8')) and (not 'Self-destruct triggered' in serial_output.decode('utf-8'))) or (result_sequence != blanksss):
log("=====================================================================================")
log("FLAG (???)")
log("result : %s" % result_sequence.hex)
log("=====================================================================================")
with open('flags.txt', 'a') as the_file:
the_file.write("\n%s\n" % name)
the_file.write("challenge: %s\n" % challenge_sequence.hex)
the_file.write("response : %s\n" % message_response_sequence.hex)
the_file.write("result : %s\n" % result_sequence.hex)
the_file.write("serial : %s\n" % serial_output)
return
def try_all_aes_frameB_challenges():
for argsorder_responder in [get_trivial_responder, get_swp_responder]:
for password_prepare in [pad_password, ssl_password, md5_password]:
for frame_responder in [get_quadA_andauth_responder(), get_quadB_andauth_responder()]:
for variant_responder in [get_rev_responder, get_bitswapped_responder, get_rev_bitswapped_responder, get_trivial_responder]:
for operation in [encrypt, decrypt]:
for cipher in [aes_ecb]:
for password in passwords:
try_frameB_response(password, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), frame_responder, name=str(password)+str(password_prepare)+str(variant_responder)+str(argsorder_responder)+str(operation)+str(cipher)+str(frame_responder))
return
def try_aes_frameB_challenges():
for frame_responder in [get_quadA_andauth_responder()]:
for variant_responder in [get_rev_responder, get_bitswapped_responder, get_rev_bitswapped_responder, get_trivial_responder]:
for password_prepare in [pad_password, ssl_password2, ssl_password, md5_password]:
for operation in [encrypt, decrypt]:
for cipher in [aes_ecb]:
for password in passwords:
try_frameB_response(password, password_prepare, variant_responder(get_cipher_message_responder(operation, cipher)), frame_responder, name=str(password)+str(password_prepare)+str(variant_responder)+str(operation)+str(cipher)+str(frame_responder))
return
def continue_aes_frameB_challenges():
for frame_responder in [get_quadA_andauth_responder()]:
for variant_responder in [get_trivial_responder]:
for password_prepare in [pad_password, ssl_password2, ssl_password, md5_password]:
for operation in [encrypt, decrypt]:
for cipher in [aes_ecb]:
for password in passwords:
try_frameB_response(password, password_prepare, variant_responder(get_cipher_message_responder(operation, cipher)), frame_responder, name=str(password)+str(password_prepare)+str(variant_responder)+str(operation)+str(cipher)+str(frame_responder))
for frame_responder in [get_quadB_andauth_responder()]:
for variant_responder in [get_rev_responder, get_bitswapped_responder, get_rev_bitswapped_responder, get_trivial_responder]:
for password_prepare in [pad_password, ssl_password2, ssl_password, md5_password]:
for operation in [encrypt, decrypt]:
for cipher in [aes_ecb]:
for password in passwords:
try_frameB_response(password, password_prepare, variant_responder(get_cipher_message_responder(operation, cipher)), frame_responder, name=str(password)+str(password_prepare)+str(variant_responder)+str(operation)+str(cipher)+str(frame_responder))
return
def continue_swapped_aes_frameB_challenges():
for frame_responder in [get_quadB_andauth_responder(), get_quadA_andauth_responder()]:
for variant_responder in [get_rev_responder, get_bitswapped_responder, get_rev_bitswapped_responder, get_trivial_responder]:
for argsorder_responder in [get_swp_responder]: #get_trivial_responder
for password_prepare in [pad_password, ssl_password2, ssl_password, md5_password]:
for operation in [encrypt, decrypt]:
for cipher in [aes_ecb]:
for password in passwords:
try_frameB_response(password, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), frame_responder, name=str(password)+str(password_prepare)+str(variant_responder)+str(argsorder_responder)+str(operation)+str(cipher)+str(frame_responder))
return
def try_frameB_quadD_guess_challenges():
for argsorder_responder in [get_trivial_responder, get_swp_responder]:
for password_prepare in [pad_password, ssl_password, md5_password]:
for frame_responder in [get_quadD_andauth_responder()]:
for variant_responder in [get_rev_responder, get_bitswapped_responder, get_rev_bitswapped_responder, get_trivial_responder]:
for operation in [decrypt]:
for cipher in [aes_ecb]:
for password in passwords:
try_frameB_response(password, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), frame_responder, name=str(password)+str(password_prepare)+str(variant_responder)+str(argsorder_responder)+str(operation)+str(cipher)+str(frame_responder))
return
def try_frameB_quadD_nosd_challenges():
for argsorder_responder in [get_trivial_responder, get_swp_responder]:
for password_prepare in [pad_password, ssl_password, md5_password]:
for variant_responder in [get_rev_responder, get_bitswapped_responder, get_rev_bitswapped_responder, get_trivial_responder]:
for operation in [decrypt, encrypt]:
for cipher in [aes_ecb]:
try_frameB_quadD_responses(passwords, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(variant_responder.__name__)+'/'+str(operation.__name__)+'/'+str(cipher.__name__))
return
def try_aes_frameB_pairs_challenges_bestguess():
attempts = list()
for frame_responder in [get_quadA_andauth_responder()]:
for variant_responder in [get_rev_responder, get_trivial_responder, get_bitswapped_responder, get_rev_bitswapped_responder]:
for password_prepare in [pad_password]:
for operation in [encrypt, decrypt]:
for cipher in [aes_ecb]:
for password in get_16byte_pair_passwords():
attempts.append([password, password_prepare, variant_responder, operation, cipher, frame_responder])
#start at quadA_responder/get_trivial_responder/pad_password/encrypt/aes_ecb/b'iloveyoustarwars'
#start = 413
#backdoorstarwars etc
#start = 768
for i in range(start, len(attempts)):
password, password_prepare, variant_responder, operation, cipher, frame_responder = attempts[i]
log("%d of %d" %(i, len(attempts)))
try_frameB_response(password, password_prepare, variant_responder(get_cipher_message_responder(operation, cipher)), frame_responder, name=str(frame_responder.__name__)+'/'+str(variant_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(operation.__name__)+'/'+str(cipher.__name__)+'/'+str(password))
i = i + 1
return
def try_aes_frameB_pairs_challenges_therest():
attempts = list()
for frame_responder in [get_quadA_andauth_responder()]:
for variant_responder in [get_rev_responder, get_trivial_responder, get_bitswapped_responder, get_rev_bitswapped_responder]:
for argsorder_responder in [get_trivial_responder, get_swp_responder]:
for password_prepare in [pad_password]:
for operation in [encrypt, decrypt]:
for cipher in [aes_ecb]:
for password in get_16byte_pair_password_repeats():
attempts.append([password, password_prepare, variant_responder, argsorder_responder, operation, cipher, frame_responder])
for frame_responder in [get_quadB_andauth_responder()]:
for variant_responder in [get_rev_responder, get_trivial_responder, get_bitswapped_responder, get_rev_bitswapped_responder]:
for argsorder_responder in [get_trivial_responder, get_swp_responder]:
for password_prepare in [pad_password]:
for operation in [encrypt, decrypt]:
for cipher in [aes_ecb]:
passwords = get_16byte_pair_passwords()
passwords.extend(get_16byte_pair_password_repeats())
for password in passwords:
attempts.append([password, password_prepare, variant_responder, argsorder_responder, operation, cipher, frame_responder])
#for argsorder_responder in [get_trivial_responder, get_swp_responder]:
# for variant_responder in [get_rev_responder, get_trivial_responder, get_bitswapped_responder, get_rev_bitswapped_responder]:
# for password_prepare in [pad_password]:
# for operation in [encrypt, decrypt]:
# for cipher in [aes_ecb]:
# passwords = get_16byte_pair_passwords()
# passwords.extend(get_16byte_pair_password_repeats())
# try_frameB_quadD_responses(passwords, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(variant_responder.__name__)+'/'+str(operation.__name__)+'/'+str(cipher.__name__))
start = 2050
for i in range(start, len(attempts)):
password, password_prepare, variant_responder, argsorder_responder, operation, cipher, frame_responder = attempts[i]
log("%d of %d" %(i, len(attempts)))
try_frameB_response(password, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), frame_responder, name=str(frame_responder.__name__)+'/'+str(variant_responder.__name__)+'/'+str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(operation.__name__)+'/'+str(cipher.__name__)+'/'+str(password))
i = i + 1
return
def try_aes_frameB_pairs_challenges_justdoitallagain():
attempts = list()
for frame_responder in [get_quadA_andauth_responder(), get_quadB_andauth_responder()]:
for variant_responder in [get_rev_responder, get_trivial_responder, get_bitswapped_responder, get_rev_bitswapped_responder]:
for argsorder_responder in [get_trivial_responder, get_swp_responder]:
for password_prepare in [pad_password]:
for operation in [encrypt, decrypt]:
for cipher in [aes_ecb]:
passwords = get_16byte_pair_passwords()
passwords.extend(get_16byte_pair_password_repeats())
for password in passwords:
attempts.append([password, password_prepare, variant_responder, argsorder_responder, operation, cipher, frame_responder])
start = 1187
for i in range(start, len(attempts)):
password, password_prepare, variant_responder, argsorder_responder, operation, cipher, frame_responder = attempts[i]
log("%d of %d" %(i, len(attempts)))
try_frameB_response(password, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), frame_responder, name=str(frame_responder.__name__)+'/'+str(variant_responder.__name__)+'/'+str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(operation.__name__)+'/'+str(cipher.__name__)+'/'+str(password))
i = i + 1
for argsorder_responder in [get_trivial_responder, get_swp_responder]:
for variant_responder in [get_rev_responder, get_trivial_responder, get_bitswapped_responder, get_rev_bitswapped_responder]:
for password_prepare in [pad_password]:
for operation in [encrypt, decrypt]:
for cipher in [aes_ecb]:
passwords = get_16byte_pair_passwords()
passwords.extend(get_16byte_pair_password_repeats())
try_frameB_quadD_responses(passwords, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), str(get_quadD_andauth_responder().__name__)+'/'+str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(variant_responder.__name__)+'/'+str(operation.__name__)+'/'+str(cipher.__name__))
return
def try_aes_frameB_pairs_challenges_trymorebitswapsandcmac():
attempts = list()
for frame_responder in [get_quadA_andauth_responder(), get_quadB_andauth_responder()]:
for variant_responder in [get_rev_responder, get_trivial_responder, get_bitswapped_responder, get_rev_bitswapped_responder, get_wordbitswapped_responder, get_rev_wordbitswapped_responder, get_longbitswapped_responder, get_rev_longbitswapped_responder]:
for argsorder_responder in [get_trivial_responder, get_swp_responder]:
for password_prepare in [pad_password]:
passwords = get_16byte_pair_passwords()
passwords.extend(get_16byte_pair_password_repeats())
for password in passwords:
attempts.append([password, password_prepare, variant_responder(argsorder_responder(aes_cmac)), frame_responder, str(frame_responder.__name__)+'/'+str(variant_responder.__name__)+'/'+str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(aes_cmac.__name__)+'/'+str(password)])
for frame_responder in [get_quadA_andauth_responder(), get_quadB_andauth_responder()]:
for variant_responder in [get_wordbitswapped_responder, get_rev_wordbitswapped_responder, get_longbitswapped_responder, get_rev_longbitswapped_responder]:
for argsorder_responder in [get_trivial_responder, get_swp_responder]:
for password_prepare in [pad_password]:
for operation in [encrypt, decrypt]:
for cipher in [aes_ecb]:
passwords = get_16byte_pair_passwords()
passwords.extend(get_16byte_pair_password_repeats())
for password in passwords:
attempts.append([password, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), frame_responder, str(frame_responder.__name__)+'/'+str(variant_responder.__name__)+'/'+str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(operation.__name__)+'/'+str(cipher.__name__)+'/'+str(password)])
start = 0
for i in range(start, len(attempts)):
password, password_prepare, message_responder, frame_responder, name = attempts[i]
log("%d of %d" %(i, len(attempts)))
try_frameB_response(password, password_prepare, message_responder, frame_responder, name=name)
i = i + 1
for argsorder_responder in [get_trivial_responder, get_swp_responder]:
for variant_responder in [get_wordbitswapped_responder, get_rev_wordbitswapped_responder, get_longbitswapped_responder, get_rev_longbitswapped_responder]:
for password_prepare in [pad_password]:
for operation in [encrypt, decrypt]:
for cipher in [aes_ecb]:
passwords = get_16byte_pair_passwords()
passwords.extend(get_16byte_pair_password_repeats())
try_frameB_quadD_responses(passwords, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), str(get_quadD_andauth_responder().__name__)+'/'+str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(variant_responder.__name__)+'/'+str(operation.__name__)+'/'+str(cipher.__name__))
return
def try_aes_frameB_pairs_challenges_tryrepeatingchallenge():
attempts = list()
for frame_responder in [get_quadB_andauth_responder()]:
for variant_responder in [get_rev_responder, get_trivial_responder, get_bitswapped_responder, get_rev_bitswapped_responder, get_wordbitswapped_responder, get_rev_wordbitswapped_responder, get_longbitswapped_responder, get_rev_longbitswapped_responder]:
for argsorder_responder in [get_trivial_responder, get_swp_responder]:
for password_prepare in [pad_password]:
passwords = get_16byte_pair_passwords()
passwords.extend(get_16byte_pair_password_repeats())
for password in passwords:
attempts.append([password, password_prepare, variant_responder(argsorder_responder(aes_cmac)), frame_responder, str(frame_responder.__name__)+'/'+str(variant_responder.__name__)+'/'+str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(aes_cmac.__name__)+'/'+str(password)])
for frame_responder in [get_quadB_andauth_responder()]:
for variant_responder in [get_rev_responder, get_trivial_responder, get_bitswapped_responder, get_rev_bitswapped_responder, get_wordbitswapped_responder, get_rev_wordbitswapped_responder, get_longbitswapped_responder, get_rev_longbitswapped_responder]:
for argsorder_responder in [get_trivial_responder, get_swp_responder]:
for password_prepare in [pad_password]:
for operation in [encrypt, decrypt]:
for cipher in [aes_ecb]:
passwords = get_16byte_pair_passwords()
passwords.extend(get_16byte_pair_password_repeats())
for password in passwords:
attempts.append([password, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), frame_responder, str(frame_responder.__name__)+'/'+str(variant_responder.__name__)+'/'+str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(operation.__name__)+'/'+str(cipher.__name__)+'/'+str(password)])
start = 0
for i in range(start, len(attempts)):
password, password_prepare, message_responder, frame_responder, name = attempts[i]
log("%d of %d" %(i, len(attempts)))
try_frameB_response(password, password_prepare, message_responder, frame_responder, name=name)
i = i + 1
return
def try_startrekstarwars_anomaly():
attempts = list()
for frame_responder in [get_quadA_andauth_responder()]:
for variant_responder in [get_trivial_responder]:
for argsorder_responder in [get_trivial_responder]:
for password_prepare in [pad_password]:
for operation in [encrypt]:
for cipher in [aes_ecb]:
for password in [b'startrekstarwars']:
attempts.append([password, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), frame_responder, str(frame_responder.__name__)+'/'+str(variant_responder.__name__)+'/'+str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(operation.__name__)+'/'+str(cipher.__name__)+'/'+str(password)])
while True:
start = 0
for i in range(start, len(attempts)):
password, password_prepare, message_responder, frame_responder, name = attempts[i]
log("%d of %d" %(i, len(attempts)))
try_frameB_response(password, password_prepare, message_responder, frame_responder, name=name)
i = i + 1
return
def try_frameB_quadA_againagain():
attempts = list()
for frame_responder in [get_quadA_andauth_responder()]:
for variant_responder in [get_rev_responder, get_trivial_responder]:
for argsorder_responder in [get_trivial_responder, get_swp_responder]:
for password_prepare in [pad_password]:
for operation in [encrypt, decrypt]:
for cipher in [aes_ecb]:
passwords = get_16byte_pair_passwords()
passwords.extend(get_16byte_pair_password_repeats())
for password in passwords:
attempts.append([password, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), frame_responder, str(frame_responder.__name__)+'/'+str(variant_responder.__name__)+'/'+str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(operation.__name__)+'/'+str(cipher.__name__)+'/'+str(password)])
attempts.append([password, password_prepare, variant_responder(argsorder_responder(aes_cmac)), frame_responder, str(frame_responder.__name__)+'/'+str(variant_responder.__name__)+'/'+str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(aes_cmac.__name__)+'/'+str(password)])
start = 0
for i in range(start, len(attempts)):
password, password_prepare, message_responder, frame_responder, name = attempts[i]
log("%d of %d" %(i, len(attempts)))
try_frameB_response(password, password_prepare, message_responder, frame_responder, name=name)
i = i + 1
return
def try_frameB_offsets_bestguesses():
attempts = list()
for offset in [203, 200, 202, 204, 201]:
frame_responder = get_offet_and_auth_responder(offset)
for variant_responder in [get_rev_responder, get_trivial_responder]:
for argsorder_responder in [get_trivial_responder, get_swp_responder]:
for password_prepare in [pad_password]:
for operation in [decrypt]:
for cipher in [aes_ecb]:
passwords = get_16byte_pair_passwords()
passwords.extend(get_16byte_pair_password_repeats())
for password in passwords:
attempts.append([password, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), frame_responder, str(frame_responder.__name__)+'(%d' % offset +')'+'/'+str(variant_responder.__name__)+'/'+str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(operation.__name__)+'/'+str(cipher.__name__)+'/'+str(password)])
start = 0
for i in range(start, len(attempts)):
password, password_prepare, message_responder, frame_responder, name = attempts[i]
log("%d of %d" %(i, len(attempts)))
try_frameB_response(password, password_prepare, message_responder, frame_responder, name=name)
i = i + 1
return
def try_frameB_offsets_therest():
attempts = list()
for offset in [208, 192]:
frame_responder = get_lsb_offet_and_auth_responder(offset)
for variant_responder in [get_rev_responder, get_trivial_responder]:
for argsorder_responder in [get_trivial_responder]:
for password_prepare in [pad_password]:
for operation in [decrypt]:
for cipher in [aes_ecb]:
passwords = get_16byte_pair_passwords()
passwords.extend(get_16byte_pair_password_repeats())
for password in passwords:
attempts.append([password, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), frame_responder, str(frame_responder.__name__)+'(%d' % offset +')'+'/'+str(variant_responder.__name__)+'/'+str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(operation.__name__)+'/'+str(cipher.__name__)+'/'+str(password)])
for offset in [203, 200, 202, 204, 208, 192]:
frame_responder = get_msb_offet_and_auth_responder(offset)
for variant_responder in [get_rev_responder, get_trivial_responder, get_bitswapped_responder, get_rev_bitswapped_responder]:
for argsorder_responder in [get_trivial_responder]:
for password_prepare in [pad_password]:
for operation in [decrypt]:
for cipher in [aes_ecb]:
passwords = get_16byte_pair_passwords()
passwords.extend(get_16byte_pair_password_repeats())
for password in passwords:
attempts.append([password, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), frame_responder, str(frame_responder.__name__)+'(%d' % offset +')'+'/'+str(variant_responder.__name__)+'/'+str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(operation.__name__)+'/'+str(cipher.__name__)+'/'+str(password)])
for offset in [203, 200, 202, 204, 201]:
frame_responder = get_lsb_offet_and_auth_responder(offset)
for variant_responder in [get_bitswapped_responder, get_rev_bitswapped_responder]:
for argsorder_responder in [get_trivial_responder]:
for password_prepare in [pad_password]:
for operation in [decrypt]:
for cipher in [aes_ecb]:
passwords = get_16byte_pair_passwords()
passwords.extend(get_16byte_pair_password_repeats())
for password in passwords:
attempts.append([password, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), frame_responder, str(frame_responder.__name__)+'(%d' % offset +')'+'/'+str(variant_responder.__name__)+'/'+str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(operation.__name__)+'/'+str(cipher.__name__)+'/'+str(password)])
start = 0
for i in range(start, len(attempts)):
password, password_prepare, message_responder, frame_responder, name = attempts[i]
log("%d of %d" %(i, len(attempts)))
try_frameB_response(password, password_prepare, message_responder, frame_responder, name=name)
i = i + 1
return
def try_frameB_offsets_dontforget196():
attempts = list()
for offset in [196]:
frame_responder = get_msb_offet_and_auth_responder(offset)
for variant_responder in [get_rev_responder, get_trivial_responder, get_bitswapped_responder, get_rev_bitswapped_responder]:
for argsorder_responder in [get_trivial_responder]:
for password_prepare in [pad_password]:
for operation in [decrypt]:
for cipher in [aes_ecb]:
passwords = get_16byte_pair_passwords()
passwords.extend(get_16byte_pair_password_repeats())
for password in passwords:
attempts.append([password, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), frame_responder, str(frame_responder.__name__)+'(%d' % offset +')'+'/'+str(variant_responder.__name__)+'/'+str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(operation.__name__)+'/'+str(cipher.__name__)+'/'+str(password)])
start = 0
for i in range(start, len(attempts)):
password, password_prepare, message_responder, frame_responder, name = attempts[i]
log("%d of %d" %(i, len(attempts)))
try_frameB_response(password, password_prepare, message_responder, frame_responder, name=name)
i = i + 1
return
def try_frameB_offsets_theotherway_bestguess():
attempts = list()
for offset in [512-203, 512-200, 512-201, 512-202, 512-199, 512-198, 512-196]:
frame_responder = get_lsb_offet_and_auth_responder(offset)
for variant_responder in [get_rev_responder, get_trivial_responder, get_bitswapped_responder, get_rev_bitswapped_responder]:
for argsorder_responder in [get_trivial_responder]:
for password_prepare in [pad_password]:
for operation in [decrypt]:
for cipher in [aes_ecb]:
passwords = get_16byte_pair_passwords()
passwords.extend(get_16byte_pair_password_repeats())
for password in passwords:
attempts.append([password, password_prepare, variant_responder(argsorder_responder(get_cipher_message_responder(operation, cipher))), frame_responder, str(frame_responder.__name__)+'(%d' % offset +')'+'/'+str(variant_responder.__name__)+'/'+str(argsorder_responder.__name__)+'/'+str(password_prepare.__name__)+'/'+str(operation.__name__)+'/'+str(cipher.__name__)+'/'+str(password)])
start = 1587
for i in range(start, len(attempts)):
password, password_prepare, message_responder, frame_responder, name = attempts[i]
log("%d of %d" %(i, len(attempts)))
try_frameB_response(password, password_prepare, message_responder, frame_responder, name=name)
i = i + 1
return
mystery_sequence = bitstring.BitString(hex='00588384f9653e1719f34b517d928124')
def try_repeat_mystery_sequence():
def mystery_sequence_responder(password_sequence, challenge_sequence):
return mystery_sequence
try_frameB_response(b'', pad_password, mystery_sequence_responder, get_lsb_offet_and_auth_responder(512-201), name='repeat mystery')
return
def try_frameB_maybeflag():
attempts = list()
for offset in [512-201]: