CasperSecurity

Current Path : /var/www/orientalss.com/vendor/php-webdriver/webdriver/lib/Chrome/
Upload File :
Current File : /var/www/orientalss.com/vendor/php-webdriver/webdriver/lib/Chrome/ChromeDevToolsDriver.php

<?php

namespace Facebook\WebDriver\Chrome;

use Facebook\WebDriver\Remote\RemoteWebDriver;

/**
 * Provide access to Chrome DevTools Protocol (CDP) commands via HTTP endpoint of Chromedriver.
 *
 * @see https://chromedevtools.github.io/devtools-protocol/
 */
class ChromeDevToolsDriver
{
    public const SEND_COMMAND = [
        'method' => 'POST',
        'url' => '/session/:sessionId/goog/cdp/execute',
    ];

    /**
     * @var RemoteWebDriver
     */
    private $driver;

    public function __construct(RemoteWebDriver $driver)
    {
        $this->driver = $driver;
    }

    /**
     * Executes a Chrome DevTools command
     *
     * @param string $command The DevTools command to execute
     * @param array $parameters Optional parameters to the command
     * @return array The result of the command
     */
    public function execute($command, array $parameters = [])
    {
        $params = ['cmd' => $command, 'params' => (object) $parameters];

        return $this->driver->executeCustomCommand(
            self::SEND_COMMAND['url'],
            self::SEND_COMMAND['method'],
            $params
        );
    }
}
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY