Add php files
This commit is contained in:
26
metagen.php
Executable file
26
metagen.php
Executable file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
error_reporting(E_ERROR);
|
||||
ini_set('display_errors',1);
|
||||
|
||||
|
||||
// connect via SSL, but don't check cert
|
||||
$handle=curl_init('https://system.saas-systems.pl:444');
|
||||
curl_setopt($handle, CURLOPT_VERBOSE, true);
|
||||
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false);
|
||||
$headers = array();
|
||||
$headers[] = "GET / HTTP/1.1\r\n";
|
||||
$headers[] = 'Connection: Upgrade';
|
||||
$headers[] = 'Upgrade: websocket';
|
||||
$headers[] = 'Host: system.saas-systems.pl:444';
|
||||
$headers[] = 'Origin: https://localhost:444';
|
||||
$headers[] = "\x00" . 'asdasdasd' . "\xff";
|
||||
$headers[] = 'Connection: Close';
|
||||
$headers[]='asdasdas';
|
||||
|
||||
curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);
|
||||
|
||||
$content = curl_exec($handle);
|
||||
|
||||
echo $content.'aaa'; // show target page
|
||||
?>
|
||||
Reference in New Issue
Block a user