Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
phar /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
bug53872
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
bug54289
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
bug64931
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
bug77586
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
cache_list
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
files
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
tar
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
test79082
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
zip
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
001.phpt
189
B
-rw-rw-r--
2022-10-31 11:36
002.phpt
444
B
-rw-rw-r--
2022-10-31 11:36
003.phpt
285
B
-rw-rw-r--
2022-10-31 11:36
003a.phpt
308
B
-rw-rw-r--
2022-10-31 11:36
004.phpt
261
B
-rw-rw-r--
2022-10-31 11:36
005.phpt
314
B
-rw-rw-r--
2022-10-31 11:36
006.phpt
333
B
-rw-rw-r--
2022-10-31 11:36
007.phpt
285
B
-rw-rw-r--
2022-10-31 11:36
008.phpt
626
B
-rw-rw-r--
2022-10-31 11:36
009.phpt
707
B
-rw-rw-r--
2022-10-31 11:36
010.phpt
926
B
-rw-rw-r--
2022-10-31 11:36
011.phpt
832
B
-rw-rw-r--
2022-10-31 11:36
012.phpt
533
B
-rw-rw-r--
2022-10-31 11:36
013.phpt
706
B
-rw-rw-r--
2022-10-31 11:36
014.phpt
702
B
-rw-rw-r--
2022-10-31 11:36
015.phpt
662
B
-rw-rw-r--
2022-10-31 11:36
015b.phpt
768
B
-rw-rw-r--
2022-10-31 11:36
016.phpt
1.47
KB
-rw-rw-r--
2022-10-31 11:36
016b.phpt
838
B
-rw-rw-r--
2022-10-31 11:36
017.phpt
882
B
-rw-rw-r--
2022-10-31 11:36
018.phpt
699
B
-rw-rw-r--
2022-10-31 11:36
019.phpt
761
B
-rw-rw-r--
2022-10-31 11:36
019b.phpt
1.2
KB
-rw-rw-r--
2022-10-31 11:36
019c.phpt
1.31
KB
-rw-rw-r--
2022-10-31 11:36
020.phpt
1.76
KB
-rw-rw-r--
2022-10-31 11:36
021.phpt
1.16
KB
-rw-rw-r--
2022-10-31 11:36
022.phpt
2.65
KB
-rw-rw-r--
2022-10-31 11:36
023.phpt
891
B
-rw-rw-r--
2022-10-31 11:36
024-opcache-win32.phpt
1.67
KB
-rw-rw-r--
2022-10-31 11:36
024.phpt
722
B
-rw-rw-r--
2022-10-31 11:36
025.phpt
715
B
-rw-rw-r--
2022-10-31 11:36
026.phpt
934
B
-rw-rw-r--
2022-10-31 11:36
027.phpt
2.43
KB
-rw-rw-r--
2022-10-31 11:36
028.phpt
1.05
KB
-rw-rw-r--
2022-10-31 11:36
029.phpt
1.39
KB
-rw-rw-r--
2022-10-31 11:36
030.phpt
1.22
KB
-rw-rw-r--
2022-10-31 11:36
031.phpt
529
B
-rw-rw-r--
2022-10-31 11:36
032.phpt
438
B
-rw-rw-r--
2022-10-31 11:36
033.phpt
1.06
KB
-rw-rw-r--
2022-10-31 11:36
033a.phpt
945
B
-rw-rw-r--
2022-10-31 11:36
72321_1.zip
250
B
-rw-rw-r--
2022-10-31 11:36
72321_2.zip
258
B
-rw-rw-r--
2022-10-31 11:36
addfuncs.phpt
1.53
KB
-rw-rw-r--
2022-10-31 11:36
alias_acrobatics.phpt
1.15
KB
-rw-rw-r--
2022-10-31 11:36
badparameters.phpt
5.99
KB
-rw-rw-r--
2022-10-31 11:36
bug13727.phpt
19.87
KB
-rw-rw-r--
2022-10-31 11:36
bug13786.phpt
705
B
-rw-rw-r--
2022-10-31 11:36
bug45218_SLOWTEST.phpt
152.85
KB
-rw-rw-r--
2022-10-31 11:36
bug46032.phpt
780
B
-rw-rw-r--
2022-10-31 11:36
bug46060.phpt
777
B
-rw-rw-r--
2022-10-31 11:36
bug46178.phpt
461
B
-rw-rw-r--
2022-10-31 11:36
bug47085.phpt
755
B
-rw-rw-r--
2022-10-31 11:36
bug48377.2.phpt
655
B
-rw-rw-r--
2022-10-31 11:36
bug48377.phpt
813
B
-rw-rw-r--
2022-10-31 11:36
bug52013.phpt
1.06
KB
-rw-rw-r--
2022-10-31 11:36
bug53872.phpt
674
B
-rw-rw-r--
2022-10-31 11:36
bug54289.phpt
2.01
KB
-rw-rw-r--
2022-10-31 11:36
bug54395.phpt
294
B
-rw-rw-r--
2022-10-31 11:36
bug60164.phpt
478
B
-rw-rw-r--
2022-10-31 11:36
bug60261.phpt
305
B
-rw-rw-r--
2022-10-31 11:36
bug65028.phpt
5.69
KB
-rw-rw-r--
2022-10-31 11:36
bug65414.phpt
1.06
KB
-rw-rw-r--
2022-10-31 11:36
bug66960.phpt
623
B
-rw-rw-r--
2022-10-31 11:36
bug69279.phpt
745
B
-rw-rw-r--
2022-10-31 11:36
bug69279a.phpt
865
B
-rw-rw-r--
2022-10-31 11:36
bug69279a.zip
719
B
-rw-rw-r--
2022-10-31 11:36
bug69324.phar
269
B
-rw-rw-r--
2022-10-31 11:36
bug69324.phpt
364
B
-rw-rw-r--
2022-10-31 11:36
bug69441.phar
5.64
KB
-rw-rw-r--
2022-10-31 11:36
bug69441.phpt
525
B
-rw-rw-r--
2022-10-31 11:36
bug69453.phpt
542
B
-rw-rw-r--
2022-10-31 11:36
bug69453.tar.phar
8
KB
-rw-rw-r--
2022-10-31 11:36
bug69720.phar
8
KB
-rw-rw-r--
2022-10-31 11:36
bug69720.phpt
1.02
KB
-rw-rw-r--
2022-10-31 11:36
bug69958.phpt
615
B
-rw-rw-r--
2022-10-31 11:36
bug69958.tar
513
B
-rw-rw-r--
2022-10-31 11:36
bug70019.phpt
534
B
-rw-rw-r--
2022-10-31 11:36
bug70019.zip
184
B
-rw-rw-r--
2022-10-31 11:36
bug70091.phpt
1.11
KB
-rw-rw-r--
2022-10-31 11:36
bug70433.phpt
561
B
-rw-rw-r--
2022-10-31 11:36
bug70433.zip
269
B
-rw-rw-r--
2022-10-31 11:36
bug71331.phpt
472
B
-rw-rw-r--
2022-10-31 11:36
bug71331.tar
2.5
KB
-rw-rw-r--
2022-10-31 11:36
bug71354.phpt
263
B
-rw-rw-r--
2022-10-31 11:36
bug71354.tar
1.5
KB
-rw-rw-r--
2022-10-31 11:36
bug71391.phpt
408
B
-rw-rw-r--
2022-10-31 11:36
bug71391.tar
3.5
KB
-rw-rw-r--
2022-10-31 11:36
bug71488.phpt
546
B
-rw-rw-r--
2022-10-31 11:36
bug71488.tar
10
KB
-rw-rw-r--
2022-10-31 11:36
bug71498.phpt
373
B
-rw-rw-r--
2022-10-31 11:36
bug71498.zip
64.14
KB
-rw-rw-r--
2022-10-31 11:36
bug71625.phpt
699
B
-rw-rw-r--
2022-10-31 11:36
bug72321.phpt
890
B
-rw-rw-r--
2022-10-31 11:36
bug72928.phpt
417
B
-rw-rw-r--
2022-10-31 11:36
bug72928.zip
140
B
-rw-rw-r--
2022-10-31 11:36
bug73035.phpt
414
B
-rw-rw-r--
2022-10-31 11:36
bug73035.tar
10
KB
-rw-rw-r--
2022-10-31 11:36
bug73764.phar
138
B
-rw-rw-r--
2022-10-31 11:36
bug73764.phpt
380
B
-rw-rw-r--
2022-10-31 11:36
bug73768.phar
219
B
-rw-rw-r--
2022-10-31 11:36
bug73768.phpt
384
B
-rw-rw-r--
2022-10-31 11:36
bug73809.phpt
846
B
-rw-rw-r--
2022-10-31 11:36
bug74196.1.2.3.phar.tar.gz
288
B
-rw-rw-r--
2022-10-31 11:36
bug74196.phpt
579
B
-rw-rw-r--
2022-10-31 11:36
bug74383.phpt
390
B
-rw-rw-r--
2022-10-31 11:36
bug74386.phpt
519
B
-rw-rw-r--
2022-10-31 11:36
bug74991.phpt
1.06
KB
-rw-rw-r--
2022-10-31 11:36
bug75102.phpt
325
B
-rw-rw-r--
2022-10-31 11:36
bug75102.tar
2
KB
-rw-rw-r--
2022-10-31 11:36
bug76584.phpt
865
B
-rw-rw-r--
2022-10-31 11:36
bug77022.phpt
1
KB
-rw-rw-r--
2022-10-31 11:36
bug77143.phar
50
B
-rw-rw-r--
2022-10-31 11:36
bug77143.phpt
425
B
-rw-rw-r--
2022-10-31 11:36
bug77247.phpt
274
B
-rw-rw-r--
2022-10-31 11:36
bug77322.phpt
495
B
-rw-rw-r--
2022-10-31 11:36
bug77396.phpt
398
B
-rw-rw-r--
2022-10-31 11:36
bug77565.phpt
299
B
-rw-rw-r--
2022-10-31 11:36
bug77565.zip
318
B
-rw-rw-r--
2022-10-31 11:36
bug77586.phpt
666
B
-rw-rw-r--
2022-10-31 11:36
bug79082.phpt
1.72
KB
-rw-rw-r--
2022-10-31 11:36
bug79503.phar
3.91
KB
-rw-rw-r--
2022-10-31 11:36
bug79503.phpt
402
B
-rw-rw-r--
2022-10-31 11:36
bug79797.phar
274
B
-rw-rw-r--
2022-10-31 11:36
bug79797.phpt
265
B
-rw-rw-r--
2022-10-31 11:36
bug79912.phpt
1.22
KB
-rw-rw-r--
2022-10-31 11:36
bug81211.phpt
1.67
KB
-rw-rw-r--
2022-10-31 11:36
bug81726.gz
204
B
-rw-rw-r--
2022-10-31 11:36
bug81726.phpt
449
B
-rw-rw-r--
2022-10-31 11:36
cached_manifest_1.phpt
1023
B
-rw-rw-r--
2022-10-31 11:36
create_new_and_modify.phpt
1.3
KB
-rw-rw-r--
2022-10-31 11:36
create_new_phar.phpt
796
B
-rw-rw-r--
2022-10-31 11:36
create_new_phar_b.phpt
977
B
-rw-rw-r--
2022-10-31 11:36
create_new_phar_c.phpt
599
B
-rw-rw-r--
2022-10-31 11:36
create_path_error.phpt
2.83
KB
-rw-rw-r--
2022-10-31 11:36
delete.phpt
804
B
-rw-rw-r--
2022-10-31 11:36
delete_in_phar.phpt
1.22
KB
-rw-rw-r--
2022-10-31 11:36
delete_in_phar_b.phpt
1.04
KB
-rw-rw-r--
2022-10-31 11:36
delete_in_phar_confirm.phpt
1.57
KB
-rw-rw-r--
2022-10-31 11:36
dir.phpt
3.73
KB
-rw-rw-r--
2022-10-31 11:36
fatal_error_webphar.phpt
614
B
-rw-rw-r--
2022-10-31 11:36
fgc_edgecases.phpt
3.22
KB
-rw-rw-r--
2022-10-31 11:36
file_get_contents.phpt
791
B
-rw-rw-r--
2022-10-31 11:36
fopen.phpt
1.19
KB
-rw-rw-r--
2022-10-31 11:36
fopen_edgecases.phpt
5.09
KB
-rw-rw-r--
2022-10-31 11:36
fopen_edgecases2.phpt
1.2
KB
-rw-rw-r--
2022-10-31 11:36
front.phar.phpt
531
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller1.phpt
321
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller10.phpt
498
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller11.phpt
386
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller12.phpt
675
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller13.phpt
700
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller14.phpt
342
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller15.phpt
603
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller16.phpt
377
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller17.phpt
363
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller18.phpt
617
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller19.phpt
604
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller2.phpt
350
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller20.phpt
605
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller21.phpt
730
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller22.phpt
649
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller23.phpt
461
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller24.phpt
400
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller25.phpt
471
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller26.phpt
377
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller27.phpt
361
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller28.phpt
8.36
KB
-rw-rw-r--
2022-10-31 11:36
frontcontroller29.phpt
663
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller3.phpt
576
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller30.phpt
240
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller31.phpt
390
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller32.phpt
416
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller33.phpt
428
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller34.phpt
416
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller4.phpt
343
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller5.phpt
349
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller6.phpt
421
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller7.phpt
348
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller8.phpt
412
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller9.phpt
578
B
-rw-rw-r--
2022-10-31 11:36
include_path.phpt
928
B
-rw-rw-r--
2022-10-31 11:36
include_path_advanced.phpt
231
B
-rw-rw-r--
2022-10-31 11:36
ini_set.phpt
647
B
-rw-rw-r--
2022-10-31 11:36
ini_set_off.phpt
1.75
KB
-rw-rw-r--
2022-10-31 11:36
invalid_alias.phpt
981
B
-rw-rw-r--
2022-10-31 11:36
invalid_setstubalias.phpt
1.29
KB
-rw-rw-r--
2022-10-31 11:36
metadata_read.phpt
1.24
KB
-rw-rw-r--
2022-10-31 11:36
metadata_write.phpt
1.32
KB
-rw-rw-r--
2022-10-31 11:36
metadata_write_commit.phpt
1.55
KB
-rw-rw-r--
2022-10-31 11:36
mkdir.phpt
1.61
KB
-rw-rw-r--
2022-10-31 11:36
mounteddir.phpt
3.18
KB
-rw-rw-r--
2022-10-31 11:36
nophar.phpt
294
B
-rw-rw-r--
2022-10-31 11:36
nophar_web.phpt
269
B
-rw-rw-r--
2022-10-31 11:36
open_for_write_existing.phpt
758
B
-rw-rw-r--
2022-10-31 11:36
open_for_write_existing_b.phpt
1.17
KB
-rw-rw-r--
2022-10-31 11:36
open_for_write_existing_c.phpt
1.17
KB
-rw-rw-r--
2022-10-31 11:36
open_for_write_newfile.phpt
798
B
-rw-rw-r--
2022-10-31 11:36
open_for_write_newfile_b.phpt
1.59
KB
-rw-rw-r--
2022-10-31 11:36
open_for_write_newfile_c.phpt
1.59
KB
-rw-rw-r--
2022-10-31 11:36
opendir.phpt
1.2
KB
-rw-rw-r--
2022-10-31 11:36
opendir_edgecases.phpt
1.23
KB
-rw-rw-r--
2022-10-31 11:36
phar_begin_setstub_commit.phpt
1.58
KB
-rw-rw-r--
2022-10-31 11:36
phar_buildfromdirectory1.phpt
603
B
-rw-rw-r--
2022-10-31 11:36
phar_buildfromdirectory2-win.phpt
661
B
-rw-rw-r--
2022-10-31 11:36
phar_buildfromdirectory2.phpt
692
B
-rw-rw-r--
2022-10-31 11:36
phar_buildfromdirectory4.phpt
1.06
KB
-rw-rw-r--
2022-10-31 11:36
phar_buildfromdirectory5.phpt
1.06
KB
-rw-rw-r--
2022-10-31 11:36
phar_buildfromdirectory6.phpt
852
B
-rw-rw-r--
2022-10-31 11:36
phar_buildfromiterator1.phpt
577
B
-rw-rw-r--
2022-10-31 11:36
phar_buildfromiterator10.phpt
2.87
KB
-rw-rw-r--
2022-10-31 11:36
phar_buildfromiterator4.phpt
1.49
KB
-rw-rw-r--
2022-10-31 11:36
phar_buildfromiterator5.phpt
1.21
KB
-rw-rw-r--
2022-10-31 11:36
phar_buildfromiterator6.phpt
1.21
KB
-rw-rw-r--
2022-10-31 11:36
phar_buildfromiterator7.phpt
1.27
KB
-rw-rw-r--
2022-10-31 11:36
phar_buildfromiterator8.phpt
2.04
KB
-rw-rw-r--
2022-10-31 11:36
phar_buildfromiterator9.phpt
1.21
KB
-rw-rw-r--
2022-10-31 11:36
phar_bz2.phpt
1.37
KB
-rw-rw-r--
2022-10-31 11:36
phar_commitwrite.phpt
921
B
-rw-rw-r--
2022-10-31 11:36
phar_construct_invalidurl.phpt
838
B
-rw-rw-r--
2022-10-31 11:36
phar_convert_again.phpt
6.17
KB
-rw-rw-r--
2022-10-31 11:36
phar_convert_repeated.phpt
4.55
KB
-rw-rw-r--
2022-10-31 11:36
phar_convert_repeated_b.phpt
3.44
KB
-rw-rw-r--
2022-10-31 11:36
phar_convert_tar.phpt
1.4
KB
-rw-rw-r--
2022-10-31 11:36
phar_convert_tar2.phpt
1.69
KB
-rw-rw-r--
2022-10-31 11:36
phar_convert_tar3.phpt
1.71
KB
-rw-rw-r--
2022-10-31 11:36
phar_convert_zip.phpt
1.4
KB
-rw-rw-r--
2022-10-31 11:36
phar_copy.phpt
2.27
KB
-rw-rw-r--
2022-10-31 11:36
phar_create_in_cwd.phpt
957
B
-rw-rw-r--
2022-10-31 11:36
phar_createdefaultstub.phpt
22.39
KB
-rw-rw-r--
2022-10-31 11:36
phar_ctx_001.phpt
2.32
KB
-rw-rw-r--
2022-10-31 11:36
phar_decompress.phpt
1.94
KB
-rw-rw-r--
2022-10-31 11:36
phar_dir_iterate.phpt
860
B
-rw-rw-r--
2022-10-31 11:36
phar_dotted_path.phpt
713
B
-rw-rw-r--
2022-10-31 11:36
phar_extract.phpt
4.01
KB
-rw-rw-r--
2022-10-31 11:36
phar_extract2.phpt
1.36
KB
-rw-rw-r--
2022-10-31 11:36
phar_extract3.phpt
890
B
-rw-rw-r--
2022-10-31 11:36
phar_get_supported_signatures_002.phpt
478
B
-rw-rw-r--
2022-10-31 11:36
phar_get_supported_signatures_002a.phpt
507
B
-rw-rw-r--
2022-10-31 11:36
phar_get_supportedcomp1.phpt
450
B
-rw-rw-r--
2022-10-31 11:36
phar_get_supportedcomp2.phpt
419
B
-rw-rw-r--
2022-10-31 11:36
phar_get_supportedcomp3.phpt
417
B
-rw-rw-r--
2022-10-31 11:36
phar_get_supportedcomp4.phpt
357
B
-rw-rw-r--
2022-10-31 11:36
phar_gobyebye-win32.phpt
1.85
KB
-rw-rw-r--
2022-10-31 11:36
phar_gobyebye.phpt
1.71
KB
-rw-rw-r--
2022-10-31 11:36
phar_gzip.phpt
1.11
KB
-rw-rw-r--
2022-10-31 11:36
phar_isvalidpharfilename.phpt
3.17
KB
-rw-rw-r--
2022-10-31 11:36
phar_magic.phpt
761
B
-rw-rw-r--
2022-10-31 11:36
phar_metadata_read.phpt
1.77
KB
-rw-rw-r--
2022-10-31 11:36
phar_metadata_write.phpt
1.51
KB
-rw-rw-r--
2022-10-31 11:36
phar_mount.phpt
1.96
KB
-rw-rw-r--
2022-10-31 11:36
phar_offset_check.phpt
1.62
KB
-rw-rw-r--
2022-10-31 11:36
phar_offset_get_error.phpt
1.02
KB
-rw-rw-r--
2022-10-31 11:36
phar_oo_001.phpt
842
B
-rw-rw-r--
2022-10-31 11:36
phar_oo_002.phpt
2.5
KB
-rw-rw-r--
2022-10-31 11:36
phar_oo_003.phpt
815
B
-rw-rw-r--
2022-10-31 11:36
phar_oo_004.phpt
1.94
KB
-rw-rw-r--
2022-10-31 11:36
phar_oo_005.phpt
1.38
KB
-rw-rw-r--
2022-10-31 11:36
phar_oo_006.phpt
997
B
-rw-rw-r--
2022-10-31 11:36
phar_oo_007.phpt
1.52
KB
-rw-rw-r--
2022-10-31 11:36
phar_oo_008.phpt
1.62
KB
-rw-rw-r--
2022-10-31 11:36
phar_oo_009.phpt
992
B
-rw-rw-r--
2022-10-31 11:36
phar_oo_010.phpt
846
B
-rw-rw-r--
2022-10-31 11:36
phar_oo_011.phpt
554
B
-rw-rw-r--
2022-10-31 11:36
phar_oo_011b.phpt
627
B
-rw-rw-r--
2022-10-31 11:36
phar_oo_012.phpt
574
B
-rw-rw-r--
2022-10-31 11:36
phar_oo_012_confirm.phpt
720
B
-rw-rw-r--
2022-10-31 11:36
phar_oo_012b.phpt
726
B
-rw-rw-r--
2022-10-31 11:36
phar_oo_compressallbz2.phpt
1.57
KB
-rw-rw-r--
2022-10-31 11:36
phar_oo_compressallgz.phpt
1.72
KB
-rw-rw-r--
2022-10-31 11:36
phar_oo_compressed_001.phpt
1.52
KB
-rw-rw-r--
2022-10-31 11:36
phar_oo_compressed_001b.phpt
1.52
KB
-rw-rw-r--
2022-10-31 11:36
phar_oo_compressed_002.phpt
1.77
KB
-rw-rw-r--
2022-10-31 11:36
phar_oo_compressed_002b.phpt
1.77
KB
-rw-rw-r--
2022-10-31 11:36
phar_oo_getcontents.phpt
909
B
-rw-rw-r--
2022-10-31 11:36
phar_oo_getcontentsgz.phpt
867
B
-rw-rw-r--
2022-10-31 11:36
phar_oo_getmodified.phpt
806
B
-rw-rw-r--
2022-10-31 11:36
phar_oo_iswriteable.phpt
1.88
KB
-rw-rw-r--
2022-10-31 11:36
phar_oo_nosig.phpt
386
B
-rw-rw-r--
2022-10-31 11:36
phar_oo_uncompressall.phpt
1.9
KB
-rw-rw-r--
2022-10-31 11:36
phar_running.phpt
776
B
-rw-rw-r--
2022-10-31 11:36
phar_setalias.phpt
757
B
-rw-rw-r--
2022-10-31 11:36
phar_setalias2.phpt
1.25
KB
-rw-rw-r--
2022-10-31 11:36
phar_setdefaultstub.phpt
21.63
KB
-rw-rw-r--
2022-10-31 11:36
phar_setsignaturealgo2.phpt
1.76
KB
-rw-rw-r--
2022-10-31 11:36
phar_stub.phpt
2.14
KB
-rw-rw-r--
2022-10-31 11:36
phar_stub_error.phpt
1.33
KB
-rw-rw-r--
2022-10-31 11:36
phar_stub_write.phpt
1.43
KB
-rw-rw-r--
2022-10-31 11:36
phar_stub_write_file.phpt
1.49
KB
-rw-rw-r--
2022-10-31 11:36
phar_unlinkarchive.phpt
2.96
KB
-rw-rw-r--
2022-10-31 11:36
pharfileinfo_chmod.phpt
830
B
-rw-rw-r--
2022-10-31 11:36
pharfileinfo_compression.phpt
2.16
KB
-rw-rw-r--
2022-10-31 11:36
pharfileinfo_construct.phpt
1.33
KB
-rw-rw-r--
2022-10-31 11:36
pharfileinfo_destruct.phpt
529
B
-rw-rw-r--
2022-10-31 11:36
pharfileinfo_getcrc32.phpt
1.12
KB
-rw-rw-r--
2022-10-31 11:36
pharfileinfo_setmetadata.phpt
1.42
KB
-rw-rw-r--
2022-10-31 11:36
phpinfo_001.phpt
1.73
KB
-rw-rw-r--
2022-10-31 11:36
phpinfo_002.phpt
1.05
KB
-rw-rw-r--
2022-10-31 11:36
phpinfo_003.phpt
1.08
KB
-rw-rw-r--
2022-10-31 11:36
phpinfo_004.phpt
3.13
KB
-rw-rw-r--
2022-10-31 11:36
readfile.phpt
754
B
-rw-rw-r--
2022-10-31 11:36
readfile_edgecases.phpt
1.75
KB
-rw-rw-r--
2022-10-31 11:36
refcount1.phpt
1.56
KB
-rw-rw-r--
2022-10-31 11:36
rename.phpt
844
B
-rw-rw-r--
2022-10-31 11:36
rename_dir.phpt
873
B
-rw-rw-r--
2022-10-31 11:36
rename_dir_and_mount.phpt
1.58
KB
-rw-rw-r--
2022-10-31 11:36
rmdir.phpt
789
B
-rw-rw-r--
2022-10-31 11:36
security.phpt
863
B
-rw-rw-r--
2022-10-31 11:36
stat.phpt
3.61
KB
-rw-rw-r--
2022-10-31 11:36
stat2_5.3.phpt
1.62
KB
-rw-rw-r--
2022-10-31 11:36
test_alias_unset.phpt
1.57
KB
-rw-rw-r--
2022-10-31 11:36
test_signaturealgos.phpt
899
B
-rw-rw-r--
2022-10-31 11:36
test_unset.phpt
1.04
KB
-rw-rw-r--
2022-10-31 11:36
webphar_compilefail.phpt
399
B
-rw-rw-r--
2022-10-31 11:36
withphar.phpt
246
B
-rw-rw-r--
2022-10-31 11:36
withphar_web.phpt
349
B
-rw-rw-r--
2022-10-31 11:36
zf_test.phpt
1.36
KB
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Phar: Phar::createDefaultStub() with and without arg --SKIPIF-- <?php if (!extension_loaded("phar")) die("skip"); ?> --FILE-- <?php try { var_dump(Phar::createDefaultStub()); echo "============================================================================\n"; echo "============================================================================\n"; var_dump(Phar::createDefaultStub('my/custom/thingy.php')); echo "============================================================================\n"; echo "============================================================================\n"; var_dump(strlen(Phar::createDefaultStub(str_repeat('a', 400)))); echo "============================================================================\n"; echo "============================================================================\n"; var_dump(Phar::createDefaultStub(str_repeat('a', 401))); } catch(Exception $e) { echo $e->getMessage() . "\n"; } echo "============================================================================\n"; echo "============================================================================\n"; echo "============================================================================\n"; echo "============================================================================\n"; try { var_dump(Phar::createDefaultStub('my/custom/thingy.php', 'the/web.php')); echo "============================================================================\n"; echo "============================================================================\n"; var_dump(strlen(Phar::createDefaultStub('index.php', str_repeat('a', 400)))); var_dump(Phar::createDefaultStub('hio', str_repeat('a', 401))); } catch (Exception $e) { echo $e->getMessage() . "\n"; } ?> ===DONE=== --EXPECT-- string(6641) "<?php $web = 'index.php'; if (in_array('phar', stream_get_wrappers()) && class_exists('Phar', 0)) { Phar::interceptFileFuncs(); set_include_path('phar://' . __FILE__ . PATH_SEPARATOR . get_include_path()); Phar::webPhar(null, $web); include 'phar://' . __FILE__ . '/' . Extract_Phar::START; return; } if (@(isset($_SERVER['REQUEST_URI']) && isset($_SERVER['REQUEST_METHOD']) && ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'POST'))) { Extract_Phar::go(true); $mimes = array( 'phps' => 2, 'c' => 'text/plain', 'cc' => 'text/plain', 'cpp' => 'text/plain', 'c++' => 'text/plain', 'dtd' => 'text/plain', 'h' => 'text/plain', 'log' => 'text/plain', 'rng' => 'text/plain', 'txt' => 'text/plain', 'xsd' => 'text/plain', 'php' => 1, 'inc' => 1, 'avi' => 'video/avi', 'bmp' => 'image/bmp', 'css' => 'text/css', 'gif' => 'image/gif', 'htm' => 'text/html', 'html' => 'text/html', 'htmls' => 'text/html', 'ico' => 'image/x-ico', 'jpe' => 'image/jpeg', 'jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'js' => 'application/x-javascript', 'midi' => 'audio/midi', 'mid' => 'audio/midi', 'mod' => 'audio/mod', 'mov' => 'movie/quicktime', 'mp3' => 'audio/mp3', 'mpg' => 'video/mpeg', 'mpeg' => 'video/mpeg', 'pdf' => 'application/pdf', 'png' => 'image/png', 'swf' => 'application/shockwave-flash', 'tif' => 'image/tiff', 'tiff' => 'image/tiff', 'wav' => 'audio/wav', 'xbm' => 'image/xbm', 'xml' => 'text/xml', ); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); $basename = basename(__FILE__); if (!strpos($_SERVER['REQUEST_URI'], $basename)) { chdir(Extract_Phar::$temp); include $web; return; } $pt = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], $basename) + strlen($basename)); if (!$pt || $pt == '/') { $pt = $web; header('HTTP/1.1 301 Moved Permanently'); header('Location: ' . $_SERVER['REQUEST_URI'] . '/' . $pt); exit; } $a = realpath(Extract_Phar::$temp . DIRECTORY_SEPARATOR . $pt); if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) { header('HTTP/1.0 404 Not Found'); echo "<html>\n <head>\n <title>File Not Found<title>\n </head>\n <body>\n <h1>404 - File Not Found</h1>\n </body>\n</html>"; exit; } $b = pathinfo($a); if (!isset($b['extension'])) { header('Content-Type: text/plain'); header('Content-Length: ' . filesize($a)); readfile($a); exit; } if (isset($mimes[$b['extension']])) { if ($mimes[$b['extension']] === 1) { include $a; exit; } if ($mimes[$b['extension']] === 2) { highlight_file($a); exit; } header('Content-Type: ' .$mimes[$b['extension']]); header('Content-Length: ' . filesize($a)); readfile($a); exit; } } class Extract_Phar { static $temp; static $origdir; const GZ = 0x1000; const BZ2 = 0x2000; const MASK = 0x3000; const START = 'index.php'; const LEN = 6643; static function go($return = false) { $fp = fopen(__FILE__, 'rb'); fseek($fp, self::LEN); $L = unpack('V', $a = fread($fp, 4)); $m = ''; do { $read = 8192; if ($L[1] - strlen($m) < 8192) { $read = $L[1] - strlen($m); } $last = fread($fp, $read); $m .= $last; } while (strlen($last) && strlen($m) < $L[1]); if (strlen($m) < $L[1]) { die('ERROR: manifest length read was "' . strlen($m) .'" should be "' . $L[1] . '"'); } $info = self::_unpack($m); $f = $info['c']; if ($f & self::GZ) { if (!function_exists('gzinflate')) { die('Error: zlib extension is not enabled -' . ' gzinflate() function needed for zlib-compressed .phars'); } } if ($f & self::BZ2) { if (!function_exists('bzdecompress')) { die('Error: bzip2 extension is not enabled -' . ' bzdecompress() function needed for bz2-compressed .phars'); } } $temp = self::tmpdir(); if (!$temp || !is_writable($temp)) { $sessionpath = session_save_path(); if (strpos ($sessionpath, ";") !== false) $sessionpath = substr ($sessionpath, strpos ($sessionpath, ";")+1); if (!file_exists($sessionpath) || !is_dir($sessionpath)) { die('Could not locate temporary directory to extract phar'); } $temp = $sessionpath; } $temp .= '/pharextract/'.basename(__FILE__, '.phar'); self::$temp = $temp; self::$origdir = getcwd(); @mkdir($temp, 0777, true); $temp = realpath($temp); if (!file_exists($temp . DIRECTORY_SEPARATOR . md5_file(__FILE__))) { self::_removeTmpFiles($temp, getcwd()); @mkdir($temp, 0777, true); @file_put_contents($temp . '/' . md5_file(__FILE__), ''); foreach ($info['m'] as $path => $file) { $a = !file_exists(dirname($temp . '/' . $path)); @mkdir(dirname($temp . '/' . $path), 0777, true); clearstatcache(); if ($path[strlen($path) - 1] == '/') { @mkdir($temp . '/' . $path, 0777); } else { file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp)); @chmod($temp . '/' . $path, 0666); } } } chdir($temp); if (!$return) { include self::START; } } static function tmpdir() { if (strpos(PHP_OS, 'WIN') !== false) { if ($var = getenv('TMP') ? getenv('TMP') : getenv('TEMP')) { return $var; } if (is_dir('/temp') || mkdir('/temp')) { return realpath('/temp'); } return false; } if ($var = getenv('TMPDIR')) { return $var; } return realpath('/tmp'); } static function _unpack($m) { $info = unpack('V', substr($m, 0, 4)); $l = unpack('V', substr($m, 10, 4)); $m = substr($m, 14 + $l[1]); $s = unpack('V', substr($m, 0, 4)); $o = 0; $start = 4 + $s[1]; $ret['c'] = 0; for ($i = 0; $i < $info[1]; $i++) { $len = unpack('V', substr($m, $start, 4)); $start += 4; $savepath = substr($m, $start, $len[1]); $start += $len[1]; $ret['m'][$savepath] = array_values(unpack('Va/Vb/Vc/Vd/Ve/Vf', substr($m, $start, 24))); $ret['m'][$savepath][3] = sprintf('%u', $ret['m'][$savepath][3] & 0xffffffff); $ret['m'][$savepath][7] = $o; $o += $ret['m'][$savepath][2]; $start += 24 + $ret['m'][$savepath][5]; $ret['c'] |= $ret['m'][$savepath][4] & self::MASK; } return $ret; } static function extractFile($path, $entry, $fp) { $data = ''; $c = $entry[2]; while ($c) { if ($c < 8192) { $data .= @fread($fp, $c); $c = 0; } else { $c -= 8192; $data .= @fread($fp, 8192); } } if ($entry[4] & self::GZ) { $data = gzinflate($data); } elseif ($entry[4] & self::BZ2) { $data = bzdecompress($data); } if (strlen($data) != $entry[0]) { die("Invalid internal .phar file (size error " . strlen($data) . " != " . $stat[7] . ")"); } if ($entry[3] != sprintf("%u", crc32($data) & 0xffffffff)) { die("Invalid internal .phar file (checksum error)"); } return $data; } static function _removeTmpFiles($temp, $origdir) { chdir($temp); foreach (glob('*') as $f) { if (file_exists($f)) { is_dir($f) ? @rmdir($f) : @unlink($f); if (file_exists($f) && is_dir($f)) { self::_removeTmpFiles($f, getcwd()); } } } @rmdir($temp); clearstatcache(); chdir($origdir); } } Extract_Phar::go(); __HALT_COMPILER(); ?>" ============================================================================ ============================================================================ string(6652) "<?php $web = 'index.php'; if (in_array('phar', stream_get_wrappers()) && class_exists('Phar', 0)) { Phar::interceptFileFuncs(); set_include_path('phar://' . __FILE__ . PATH_SEPARATOR . get_include_path()); Phar::webPhar(null, $web); include 'phar://' . __FILE__ . '/' . Extract_Phar::START; return; } if (@(isset($_SERVER['REQUEST_URI']) && isset($_SERVER['REQUEST_METHOD']) && ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'POST'))) { Extract_Phar::go(true); $mimes = array( 'phps' => 2, 'c' => 'text/plain', 'cc' => 'text/plain', 'cpp' => 'text/plain', 'c++' => 'text/plain', 'dtd' => 'text/plain', 'h' => 'text/plain', 'log' => 'text/plain', 'rng' => 'text/plain', 'txt' => 'text/plain', 'xsd' => 'text/plain', 'php' => 1, 'inc' => 1, 'avi' => 'video/avi', 'bmp' => 'image/bmp', 'css' => 'text/css', 'gif' => 'image/gif', 'htm' => 'text/html', 'html' => 'text/html', 'htmls' => 'text/html', 'ico' => 'image/x-ico', 'jpe' => 'image/jpeg', 'jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'js' => 'application/x-javascript', 'midi' => 'audio/midi', 'mid' => 'audio/midi', 'mod' => 'audio/mod', 'mov' => 'movie/quicktime', 'mp3' => 'audio/mp3', 'mpg' => 'video/mpeg', 'mpeg' => 'video/mpeg', 'pdf' => 'application/pdf', 'png' => 'image/png', 'swf' => 'application/shockwave-flash', 'tif' => 'image/tiff', 'tiff' => 'image/tiff', 'wav' => 'audio/wav', 'xbm' => 'image/xbm', 'xml' => 'text/xml', ); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); $basename = basename(__FILE__); if (!strpos($_SERVER['REQUEST_URI'], $basename)) { chdir(Extract_Phar::$temp); include $web; return; } $pt = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], $basename) + strlen($basename)); if (!$pt || $pt == '/') { $pt = $web; header('HTTP/1.1 301 Moved Permanently'); header('Location: ' . $_SERVER['REQUEST_URI'] . '/' . $pt); exit; } $a = realpath(Extract_Phar::$temp . DIRECTORY_SEPARATOR . $pt); if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) { header('HTTP/1.0 404 Not Found'); echo "<html>\n <head>\n <title>File Not Found<title>\n </head>\n <body>\n <h1>404 - File Not Found</h1>\n </body>\n</html>"; exit; } $b = pathinfo($a); if (!isset($b['extension'])) { header('Content-Type: text/plain'); header('Content-Length: ' . filesize($a)); readfile($a); exit; } if (isset($mimes[$b['extension']])) { if ($mimes[$b['extension']] === 1) { include $a; exit; } if ($mimes[$b['extension']] === 2) { highlight_file($a); exit; } header('Content-Type: ' .$mimes[$b['extension']]); header('Content-Length: ' . filesize($a)); readfile($a); exit; } } class Extract_Phar { static $temp; static $origdir; const GZ = 0x1000; const BZ2 = 0x2000; const MASK = 0x3000; const START = 'my/custom/thingy.php'; const LEN = 6654; static function go($return = false) { $fp = fopen(__FILE__, 'rb'); fseek($fp, self::LEN); $L = unpack('V', $a = fread($fp, 4)); $m = ''; do { $read = 8192; if ($L[1] - strlen($m) < 8192) { $read = $L[1] - strlen($m); } $last = fread($fp, $read); $m .= $last; } while (strlen($last) && strlen($m) < $L[1]); if (strlen($m) < $L[1]) { die('ERROR: manifest length read was "' . strlen($m) .'" should be "' . $L[1] . '"'); } $info = self::_unpack($m); $f = $info['c']; if ($f & self::GZ) { if (!function_exists('gzinflate')) { die('Error: zlib extension is not enabled -' . ' gzinflate() function needed for zlib-compressed .phars'); } } if ($f & self::BZ2) { if (!function_exists('bzdecompress')) { die('Error: bzip2 extension is not enabled -' . ' bzdecompress() function needed for bz2-compressed .phars'); } } $temp = self::tmpdir(); if (!$temp || !is_writable($temp)) { $sessionpath = session_save_path(); if (strpos ($sessionpath, ";") !== false) $sessionpath = substr ($sessionpath, strpos ($sessionpath, ";")+1); if (!file_exists($sessionpath) || !is_dir($sessionpath)) { die('Could not locate temporary directory to extract phar'); } $temp = $sessionpath; } $temp .= '/pharextract/'.basename(__FILE__, '.phar'); self::$temp = $temp; self::$origdir = getcwd(); @mkdir($temp, 0777, true); $temp = realpath($temp); if (!file_exists($temp . DIRECTORY_SEPARATOR . md5_file(__FILE__))) { self::_removeTmpFiles($temp, getcwd()); @mkdir($temp, 0777, true); @file_put_contents($temp . '/' . md5_file(__FILE__), ''); foreach ($info['m'] as $path => $file) { $a = !file_exists(dirname($temp . '/' . $path)); @mkdir(dirname($temp . '/' . $path), 0777, true); clearstatcache(); if ($path[strlen($path) - 1] == '/') { @mkdir($temp . '/' . $path, 0777); } else { file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp)); @chmod($temp . '/' . $path, 0666); } } } chdir($temp); if (!$return) { include self::START; } } static function tmpdir() { if (strpos(PHP_OS, 'WIN') !== false) { if ($var = getenv('TMP') ? getenv('TMP') : getenv('TEMP')) { return $var; } if (is_dir('/temp') || mkdir('/temp')) { return realpath('/temp'); } return false; } if ($var = getenv('TMPDIR')) { return $var; } return realpath('/tmp'); } static function _unpack($m) { $info = unpack('V', substr($m, 0, 4)); $l = unpack('V', substr($m, 10, 4)); $m = substr($m, 14 + $l[1]); $s = unpack('V', substr($m, 0, 4)); $o = 0; $start = 4 + $s[1]; $ret['c'] = 0; for ($i = 0; $i < $info[1]; $i++) { $len = unpack('V', substr($m, $start, 4)); $start += 4; $savepath = substr($m, $start, $len[1]); $start += $len[1]; $ret['m'][$savepath] = array_values(unpack('Va/Vb/Vc/Vd/Ve/Vf', substr($m, $start, 24))); $ret['m'][$savepath][3] = sprintf('%u', $ret['m'][$savepath][3] & 0xffffffff); $ret['m'][$savepath][7] = $o; $o += $ret['m'][$savepath][2]; $start += 24 + $ret['m'][$savepath][5]; $ret['c'] |= $ret['m'][$savepath][4] & self::MASK; } return $ret; } static function extractFile($path, $entry, $fp) { $data = ''; $c = $entry[2]; while ($c) { if ($c < 8192) { $data .= @fread($fp, $c); $c = 0; } else { $c -= 8192; $data .= @fread($fp, 8192); } } if ($entry[4] & self::GZ) { $data = gzinflate($data); } elseif ($entry[4] & self::BZ2) { $data = bzdecompress($data); } if (strlen($data) != $entry[0]) { die("Invalid internal .phar file (size error " . strlen($data) . " != " . $stat[7] . ")"); } if ($entry[3] != sprintf("%u", crc32($data) & 0xffffffff)) { die("Invalid internal .phar file (checksum error)"); } return $data; } static function _removeTmpFiles($temp, $origdir) { chdir($temp); foreach (glob('*') as $f) { if (file_exists($f)) { is_dir($f) ? @rmdir($f) : @unlink($f); if (file_exists($f) && is_dir($f)) { self::_removeTmpFiles($f, getcwd()); } } } @rmdir($temp); clearstatcache(); chdir($origdir); } } Extract_Phar::go(); __HALT_COMPILER(); ?>" ============================================================================ ============================================================================ int(7032) ============================================================================ ============================================================================ Illegal filename passed in for stub creation, was 401 characters long, and only 400 or less is allowed ============================================================================ ============================================================================ ============================================================================ ============================================================================ string(6654) "<?php $web = 'the/web.php'; if (in_array('phar', stream_get_wrappers()) && class_exists('Phar', 0)) { Phar::interceptFileFuncs(); set_include_path('phar://' . __FILE__ . PATH_SEPARATOR . get_include_path()); Phar::webPhar(null, $web); include 'phar://' . __FILE__ . '/' . Extract_Phar::START; return; } if (@(isset($_SERVER['REQUEST_URI']) && isset($_SERVER['REQUEST_METHOD']) && ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'POST'))) { Extract_Phar::go(true); $mimes = array( 'phps' => 2, 'c' => 'text/plain', 'cc' => 'text/plain', 'cpp' => 'text/plain', 'c++' => 'text/plain', 'dtd' => 'text/plain', 'h' => 'text/plain', 'log' => 'text/plain', 'rng' => 'text/plain', 'txt' => 'text/plain', 'xsd' => 'text/plain', 'php' => 1, 'inc' => 1, 'avi' => 'video/avi', 'bmp' => 'image/bmp', 'css' => 'text/css', 'gif' => 'image/gif', 'htm' => 'text/html', 'html' => 'text/html', 'htmls' => 'text/html', 'ico' => 'image/x-ico', 'jpe' => 'image/jpeg', 'jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'js' => 'application/x-javascript', 'midi' => 'audio/midi', 'mid' => 'audio/midi', 'mod' => 'audio/mod', 'mov' => 'movie/quicktime', 'mp3' => 'audio/mp3', 'mpg' => 'video/mpeg', 'mpeg' => 'video/mpeg', 'pdf' => 'application/pdf', 'png' => 'image/png', 'swf' => 'application/shockwave-flash', 'tif' => 'image/tiff', 'tiff' => 'image/tiff', 'wav' => 'audio/wav', 'xbm' => 'image/xbm', 'xml' => 'text/xml', ); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); $basename = basename(__FILE__); if (!strpos($_SERVER['REQUEST_URI'], $basename)) { chdir(Extract_Phar::$temp); include $web; return; } $pt = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], $basename) + strlen($basename)); if (!$pt || $pt == '/') { $pt = $web; header('HTTP/1.1 301 Moved Permanently'); header('Location: ' . $_SERVER['REQUEST_URI'] . '/' . $pt); exit; } $a = realpath(Extract_Phar::$temp . DIRECTORY_SEPARATOR . $pt); if (!$a || strlen(dirname($a)) < strlen(Extract_Phar::$temp)) { header('HTTP/1.0 404 Not Found'); echo "<html>\n <head>\n <title>File Not Found<title>\n </head>\n <body>\n <h1>404 - File Not Found</h1>\n </body>\n</html>"; exit; } $b = pathinfo($a); if (!isset($b['extension'])) { header('Content-Type: text/plain'); header('Content-Length: ' . filesize($a)); readfile($a); exit; } if (isset($mimes[$b['extension']])) { if ($mimes[$b['extension']] === 1) { include $a; exit; } if ($mimes[$b['extension']] === 2) { highlight_file($a); exit; } header('Content-Type: ' .$mimes[$b['extension']]); header('Content-Length: ' . filesize($a)); readfile($a); exit; } } class Extract_Phar { static $temp; static $origdir; const GZ = 0x1000; const BZ2 = 0x2000; const MASK = 0x3000; const START = 'my/custom/thingy.php'; const LEN = 6656; static function go($return = false) { $fp = fopen(__FILE__, 'rb'); fseek($fp, self::LEN); $L = unpack('V', $a = fread($fp, 4)); $m = ''; do { $read = 8192; if ($L[1] - strlen($m) < 8192) { $read = $L[1] - strlen($m); } $last = fread($fp, $read); $m .= $last; } while (strlen($last) && strlen($m) < $L[1]); if (strlen($m) < $L[1]) { die('ERROR: manifest length read was "' . strlen($m) .'" should be "' . $L[1] . '"'); } $info = self::_unpack($m); $f = $info['c']; if ($f & self::GZ) { if (!function_exists('gzinflate')) { die('Error: zlib extension is not enabled -' . ' gzinflate() function needed for zlib-compressed .phars'); } } if ($f & self::BZ2) { if (!function_exists('bzdecompress')) { die('Error: bzip2 extension is not enabled -' . ' bzdecompress() function needed for bz2-compressed .phars'); } } $temp = self::tmpdir(); if (!$temp || !is_writable($temp)) { $sessionpath = session_save_path(); if (strpos ($sessionpath, ";") !== false) $sessionpath = substr ($sessionpath, strpos ($sessionpath, ";")+1); if (!file_exists($sessionpath) || !is_dir($sessionpath)) { die('Could not locate temporary directory to extract phar'); } $temp = $sessionpath; } $temp .= '/pharextract/'.basename(__FILE__, '.phar'); self::$temp = $temp; self::$origdir = getcwd(); @mkdir($temp, 0777, true); $temp = realpath($temp); if (!file_exists($temp . DIRECTORY_SEPARATOR . md5_file(__FILE__))) { self::_removeTmpFiles($temp, getcwd()); @mkdir($temp, 0777, true); @file_put_contents($temp . '/' . md5_file(__FILE__), ''); foreach ($info['m'] as $path => $file) { $a = !file_exists(dirname($temp . '/' . $path)); @mkdir(dirname($temp . '/' . $path), 0777, true); clearstatcache(); if ($path[strlen($path) - 1] == '/') { @mkdir($temp . '/' . $path, 0777); } else { file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp)); @chmod($temp . '/' . $path, 0666); } } } chdir($temp); if (!$return) { include self::START; } } static function tmpdir() { if (strpos(PHP_OS, 'WIN') !== false) { if ($var = getenv('TMP') ? getenv('TMP') : getenv('TEMP')) { return $var; } if (is_dir('/temp') || mkdir('/temp')) { return realpath('/temp'); } return false; } if ($var = getenv('TMPDIR')) { return $var; } return realpath('/tmp'); } static function _unpack($m) { $info = unpack('V', substr($m, 0, 4)); $l = unpack('V', substr($m, 10, 4)); $m = substr($m, 14 + $l[1]); $s = unpack('V', substr($m, 0, 4)); $o = 0; $start = 4 + $s[1]; $ret['c'] = 0; for ($i = 0; $i < $info[1]; $i++) { $len = unpack('V', substr($m, $start, 4)); $start += 4; $savepath = substr($m, $start, $len[1]); $start += $len[1]; $ret['m'][$savepath] = array_values(unpack('Va/Vb/Vc/Vd/Ve/Vf', substr($m, $start, 24))); $ret['m'][$savepath][3] = sprintf('%u', $ret['m'][$savepath][3] & 0xffffffff); $ret['m'][$savepath][7] = $o; $o += $ret['m'][$savepath][2]; $start += 24 + $ret['m'][$savepath][5]; $ret['c'] |= $ret['m'][$savepath][4] & self::MASK; } return $ret; } static function extractFile($path, $entry, $fp) { $data = ''; $c = $entry[2]; while ($c) { if ($c < 8192) { $data .= @fread($fp, $c); $c = 0; } else { $c -= 8192; $data .= @fread($fp, 8192); } } if ($entry[4] & self::GZ) { $data = gzinflate($data); } elseif ($entry[4] & self::BZ2) { $data = bzdecompress($data); } if (strlen($data) != $entry[0]) { die("Invalid internal .phar file (size error " . strlen($data) . " != " . $stat[7] . ")"); } if ($entry[3] != sprintf("%u", crc32($data) & 0xffffffff)) { die("Invalid internal .phar file (checksum error)"); } return $data; } static function _removeTmpFiles($temp, $origdir) { chdir($temp); foreach (glob('*') as $f) { if (file_exists($f)) { is_dir($f) ? @rmdir($f) : @unlink($f); if (file_exists($f) && is_dir($f)) { self::_removeTmpFiles($f, getcwd()); } } } @rmdir($temp); clearstatcache(); chdir($origdir); } } Extract_Phar::go(); __HALT_COMPILER(); ?>" ============================================================================ ============================================================================ int(7032) Illegal web filename passed in for stub creation, was 401 characters long, and only 400 or less is allowed ===DONE===