vb6rocod / utils

resolve video hosting servers
38 stars 36 forks source link

please add pkspeed.net #31

Closed viperspolite closed 1 year ago

viperspolite commented 2 years ago

demo link: https://pkspeed.net/lmjp5u1sldqt.html embed link: https://pkspeed.net/embed-lmjp5u1sldqt.html

vb6rocod commented 1 year ago

$ua="Mozilla/5.0 (Windows NT 10.0; rv:86.0) Gecko/20100101 Firefox/86.0"; $l="https://pkspeed.net/lmjp5u1sldqt.html"; $l="https://pkspeed.net/embed-lmjp5u1sldqt.html"; preg_match("/(\w+)\.html/",$l,$c); $l="https://pkspeed.net/".$c[0];

$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $l); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, $ua); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_ENCODING,""); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15); curl_setopt($ch, CURLOPT_TIMEOUT, 25); $h = curl_exec($ch); curl_close($ch); require_once("JavaScriptUnpacker.php"); $jsu = new JavaScriptUnpacker(); $out = $jsu->Unpack($h);

preg_match("/src:\"([^\"]+)\"/",$out,$m); $link=$m[1]; echo $link;