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 /
zip /
Delete
Unzip
Name
Size
Permission
Date
Action
files
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
033.phpt
1.32
KB
-rw-rw-r--
2022-10-31 11:36
033a.phpt
1.12
KB
-rw-rw-r--
2022-10-31 11:36
alias_acrobatics.phpt
1.2
KB
-rw-rw-r--
2022-10-31 11:36
all.phpt
1.79
KB
-rw-rw-r--
2022-10-31 11:36
badalias.phpt
817
B
-rw-rw-r--
2022-10-31 11:36
bug48791.phpt
8.24
KB
-rw-rw-r--
2022-10-31 11:36
bzip2.phpt
3.55
KB
-rw-rw-r--
2022-10-31 11:36
corrupt_001.phpt
630
B
-rw-rw-r--
2022-10-31 11:36
corrupt_002.phpt
362
B
-rw-rw-r--
2022-10-31 11:36
corrupt_003.phpt
370
B
-rw-rw-r--
2022-10-31 11:36
corrupt_004.phpt
401
B
-rw-rw-r--
2022-10-31 11:36
corrupt_005.phpt
341
B
-rw-rw-r--
2022-10-31 11:36
corrupt_006.phpt
379
B
-rw-rw-r--
2022-10-31 11:36
corrupt_007.phpt
396
B
-rw-rw-r--
2022-10-31 11:36
corrupt_008.phpt
3.58
KB
-rw-rw-r--
2022-10-31 11:36
corrupt_009.phpt
414
B
-rw-rw-r--
2022-10-31 11:36
corrupt_010.phpt
407
B
-rw-rw-r--
2022-10-31 11:36
create_new_and_modify.phpt
1.24
KB
-rw-rw-r--
2022-10-31 11:36
create_new_phar_b.phpt
987
B
-rw-rw-r--
2022-10-31 11:36
delete.phpt
802
B
-rw-rw-r--
2022-10-31 11:36
delete_in_phar.phpt
1.24
KB
-rw-rw-r--
2022-10-31 11:36
delete_in_phar_b.phpt
1.08
KB
-rw-rw-r--
2022-10-31 11:36
delete_in_phar_confirm.phpt
1.59
KB
-rw-rw-r--
2022-10-31 11:36
dir.phpt
1.27
KB
-rw-rw-r--
2022-10-31 11:36
exists_as_phar.phpt
995
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller1.phar.phpt
417
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller10.phar.phpt
522
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller11.phar.phpt
482
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller12.phar.phpt
786
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller13.phar.phpt
811
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller14.phar.phpt
438
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller15.phar.phpt
699
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller16.phar.phpt
473
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller17.phar.phpt
459
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller18.phar.phpt
728
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller19.phar.phpt
715
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller2.phar.phpt
446
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller20.phar.phpt
716
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller21.phar.phpt
851
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller3.phar.phpt
672
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller4.phar.phpt
444
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller5.phar.phpt
450
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller6.phar.phpt
517
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller7.phar.phpt
449
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller8.phar.phpt
436
B
-rw-rw-r--
2022-10-31 11:36
frontcontroller9.phar.phpt
602
B
-rw-rw-r--
2022-10-31 11:36
getalias.phpt
1.35
KB
-rw-rw-r--
2022-10-31 11:36
largezip.phpt
828
B
-rw-rw-r--
2022-10-31 11:36
metadata_write_commit.phpt
1.71
KB
-rw-rw-r--
2022-10-31 11:36
notphar.phpt
715
B
-rw-rw-r--
2022-10-31 11:36
odt.phpt
1.02
KB
-rw-rw-r--
2022-10-31 11:36
open_for_write_existing.phpt
855
B
-rw-rw-r--
2022-10-31 11:36
open_for_write_existing_b.phpt
1.29
KB
-rw-rw-r--
2022-10-31 11:36
open_for_write_existing_c.phpt
1.29
KB
-rw-rw-r--
2022-10-31 11:36
open_for_write_newfile.phpt
896
B
-rw-rw-r--
2022-10-31 11:36
open_for_write_newfile_b.phpt
1.71
KB
-rw-rw-r--
2022-10-31 11:36
open_for_write_newfile_c.phpt
1.71
KB
-rw-rw-r--
2022-10-31 11:36
phar_begin_setstub_commit.phpt
2.54
KB
-rw-rw-r--
2022-10-31 11:36
phar_buildfromiterator4.phpt
1.27
KB
-rw-rw-r--
2022-10-31 11:36
phar_buildfromiterator5.phpt
1.22
KB
-rw-rw-r--
2022-10-31 11:36
phar_buildfromiterator6.phpt
1.22
KB
-rw-rw-r--
2022-10-31 11:36
phar_buildfromiterator7.phpt
1.29
KB
-rw-rw-r--
2022-10-31 11:36
phar_buildfromiterator8.phpt
2.36
KB
-rw-rw-r--
2022-10-31 11:36
phar_buildfromiterator9.phpt
1.21
KB
-rw-rw-r--
2022-10-31 11:36
phar_commitwrite.phpt
1
KB
-rw-rw-r--
2022-10-31 11:36
phar_convert_phar.phpt
1.41
KB
-rw-rw-r--
2022-10-31 11:36
phar_copy.phpt
1.35
KB
-rw-rw-r--
2022-10-31 11:36
phar_magic.phpt
1015
B
-rw-rw-r--
2022-10-31 11:36
phar_oo_compressallbz2.phpt
1.82
KB
-rw-rw-r--
2022-10-31 11:36
phar_oo_compressallgz.phpt
1.38
KB
-rw-rw-r--
2022-10-31 11:36
phar_setalias.phpt
1.42
KB
-rw-rw-r--
2022-10-31 11:36
phar_setalias2.phpt
1008
B
-rw-rw-r--
2022-10-31 11:36
phar_setdefaultstub.phpt
2.58
KB
-rw-rw-r--
2022-10-31 11:36
phar_setsignaturealgo2.phpt
2.85
KB
-rw-rw-r--
2022-10-31 11:36
phar_stub.phpt
1.8
KB
-rw-rw-r--
2022-10-31 11:36
phar_stub_error.phpt
1.22
KB
-rw-rw-r--
2022-10-31 11:36
refcount1.phpt
1.66
KB
-rw-rw-r--
2022-10-31 11:36
rename.phpt
864
B
-rw-rw-r--
2022-10-31 11:36
rename_dir.phpt
892
B
-rw-rw-r--
2022-10-31 11:36
rmdir.phpt
834
B
-rw-rw-r--
2022-10-31 11:36
unixzip.phpt
629
B
-rw-rw-r--
2022-10-31 11:36
zlib.phpt
573
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Phar::setSupportedSignatures() with hash, zip-based --SKIPIF-- <?php if (!extension_loaded("phar")) die("skip"); ?> <?php $arr = Phar::getSupportedSignatures(); if (!in_array("OpenSSL", $arr)) die("skip openssl support required"); --INI-- phar.require_hash=0 phar.readonly=0 --FILE-- <?php $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip'; $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.2.phar.zip'; $fname3 = __DIR__ . '/' . basename(__FILE__, '.php') . '.3.phar.zip'; $fname4 = __DIR__ . '/' . basename(__FILE__, '.php') . '.4.phar.zip'; $fname5 = __DIR__ . '/' . basename(__FILE__, '.php') . '.5.phar.zip'; $fname6 = __DIR__ . '/' . basename(__FILE__, '.php') . '.6.phar.zip'; $p = new Phar($fname); $p['file1.txt'] = 'hi'; var_dump($p->getSignature()); $p->setSignatureAlgorithm(Phar::MD5); copy($fname, $fname2); $p = new Phar($fname2); var_dump($p->getSignature()); $p->setSignatureAlgorithm(Phar::SHA1); copy($fname2, $fname3); $p = new Phar($fname3); var_dump($p->getSignature()); try { $p->setSignatureAlgorithm(Phar::SHA256); copy($fname3, $fname4); $p = new Phar($fname4); var_dump($p->getSignature()); } catch (Exception $e) { echo $e->getMessage(); } try { $p->setSignatureAlgorithm(Phar::SHA512); copy($fname4, $fname5); $p = new Phar($fname5); var_dump($p->getSignature()); } catch (Exception $e) { echo $e->getMessage(); } try { $config = __DIR__ . '/../files/openssl.cnf'; $config_arg = array('config' => $config); $keys=openssl_pkey_new($config_arg); openssl_pkey_export($keys, $privkey, NULL, $config_arg); $pubkey=openssl_pkey_get_details($keys); $p->setSignatureAlgorithm(Phar::OPENSSL, $privkey); copy($fname5, $fname6); file_put_contents($fname6 . '.pubkey', $pubkey['key']); $p = new Phar($fname6); var_dump($p->getSignature()); } catch (Exception $e) { echo $e->getMessage(); } ?> ===DONE=== --CLEAN-- <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar.zip'); unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.3.phar.zip'); unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.4.phar.zip'); unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.5.phar.zip'); unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.6.phar.zip'); unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.6.phar.zip.pubkey'); ?> --EXPECTF-- array(2) { ["hash"]=> string(%d) "%s" ["hash_type"]=> string(5) "SHA-1" } array(2) { ["hash"]=> string(%d) "%s" ["hash_type"]=> string(3) "MD5" } array(2) { ["hash"]=> string(%d) "%s" ["hash_type"]=> string(5) "SHA-1" } array(2) { ["hash"]=> string(%d) "%s" ["hash_type"]=> string(7) "SHA-256" } array(2) { ["hash"]=> string(%d) "%s" ["hash_type"]=> string(7) "SHA-512" } array(2) { ["hash"]=> string(%d) "%s" ["hash_type"]=> string(7) "OpenSSL" } ===DONE===