View Single Post
  #1  
Old 05-24-2015, 05:51 PM
Darby_Crash Darby_Crash is offline
The_Hardcore_Scripter
 
Join Date: Dec 2011
Posts: 53
Darby_Crash is on a distinguished road
Default

[Solved] Help for decrypt


From this page:

Code:
http://xstream.click/s5.html
start a HLS stream:

Code:
http://195.154.227.38:1935/live/vch22lsh/playlist.m3u8
This is the encrypted string with inside the HLS manifest:

Code:
file=62A8emaoLC2GJ6dwLFdwbRCMNJT3af7WNWRSQWD6dwneJaL=jO8aKj5m1jaDZxYT8S9YL=J5ntu0c9BMrz
This is the method for decrypt it:

Code:
<?php

function decode_char ($c) {
	$a1 = str_split("012345679HMDXVJQUGETNovywk");
	$a2 = str_split("cIWm8LlgRBauspzZed=xYtnfbi");
	$result = $c;
	for ($j=0;$j<count($a1);$j++) {
		if ($c == $a1[$j][0]) {
			$result = $a2[$j][0];
			break;
		}
		if ($c == $a2[$j][0]) {
			$result = $a1[$j][0];
			break;
		}
	}
	return $result;
}

function reverse ($s, $direct) {
	if ($direct == 'd') {
		$nlen = strlen($s)-3;
		$r = '';
		while ($nlen > 2) {
			$r .= substr($s,$nlen,1);
			$nlen--;
		}
		$nlen = strlen($r);
		$nlen2 = intval(substr($s,1,1).substr($s,0,1));
		$nlen2 = $nlen2 / 2;
		if ($nlen2 < $nlen) {
			$npos = $nlen2;
			while ($npos < $nlen) {
				$r = substr($r,0, $npos).substr($r,$npos + 1);
				$npos += $nlen2;
			}
		}
	} else {
		$nlen = strlen($s);
		$delta = 7;
		if (($nlen % $delta) == 0) $delta = 8;
		$s0 = $s;
		$s7 = substr($s0,0,$delta);
		$s0 = substr($s0,$delta);
		$s = '';
		while ((strlen($s7) == $delta) && (strlen($s0) > 0)) {
			$s .= $s7 . 'd';
			$s7 = substr($s0,0,$delta);
			$s0 = substr($s0,$delta);
		}
		$s .= $s7;
		$nlen = strlen($s)-1;
		$r = '';
		while ($nlen >= 0) {
			$r .= substr($s,$nlen,1);
			$nlen--;
		}
		$delta2 = $delta + $delta;
		$sdelta2 = $delta2;
		$sdelta4 = substr($sdelta2,1,1).substr($sdelta2,0,1);
		$r = $sdelta4.'A'.$r.'rs';
	}
	return($r);
}

function decode_str ($s) {
	$s = reverse($s,"d");
	$result = '';
	for($i=0;$i<strlen($s);$i++) {
		$result .= decode_char($s[$i]);
	}
	$result = base64_decode($result);
	return $result;
}

echo decode_str('62A8emaoLC2GJ6dwLFdwbRCMNJT3af7WNWRSQWD6dwneJaL=jO8aKj5m1jaDZxYT8S9YL=J5ntu0c9BMrz')."\r\n";

?>
Code:
http://www.nulled.cc/threads/109397/page-3

Last edited by Darby_Crash : 05-25-2015 at 12:30 PM.
Reply With Quote