Edito: elimino el archivo. El archivo no es válido. Lo siento, pensaba que sería igual de fácil que antes.
ReEdito: Más abajo está el bueno

Mensaje por robalo » 15 Jun 2014, 06:45
Mensaje por chopchop » 18 Jun 2014, 10:46
He estado mirándolo un poco y parece que ahora el video lo hospeda en hqq.tvrobalo escribió:Netu.tv ha cambiado la url para los m3u8
Mensaje por robalo » 18 Jun 2014, 11:33
Mensaje por chopchop » 18 Jun 2014, 18:21
Me has dado la idea con lo de la codificación utf8 y he conseguido desofuscar una url. El problema es llegar a la URL donde sale ya que me topo con un muro de javascript que no sé salvar.robalo escribió:otras veces que está en los escripts codificado en utf8-b64
Código: Seleccionar todo
<html>
<head>
<script type="text/javascript">
function tb(b) {
if (b.indexOf(".") == -1) {
b = b.substr(1);
s2 = "";
for (j = 0; j < b.length; j += 3) s2 += "%u0" + b.slice(j, j + 3);
b = unescape(s2)
}
return b
}
window.onload = function() {
var boton = document.getElementById('boton');
boton.onclick = function() {
var v = document.getElementById('texto').value;
var t = tb(v);
var c = document.getElementById('cont-texto')
c.innerHTML = t;
}
}
</script>
<body>
Cadena cifrada: <input id="texto" size="64" type="text" /> <input id="boton" type="button" value="Convertir" />
<div id="cont-texto"></div>
</body>
Mensaje por jesus » 18 Jun 2014, 20:05
Mensaje por robalo » 18 Jun 2014, 21:39
Código: Seleccionar todo
http://hqq.tv/player/embed_player.php?vid=U14H3MXO3S65&autoplay=no
Código: Seleccionar todo
<script language="javascript" type="text/javascript" src="data:text/javascript;charset=utf-8;base64,([^"])+"><\/script>
Código: Seleccionar todo
<form id="form-98722570" method="get" action="http://hqq.tv/player/embed_player.php" target="_self" hidden>
<input name="vid" id="text" value="U14H3MXO3S65">
<input name="at" id="text" value="9d746aa93cc758aee8a5ee39876d980c">
<input name="autoplayed" id="text" value="yes">
<input name="referer" id="text" value="on">
<input name="http_referer" id="text" value="http://netu.tv/watch_video.php?v=U14H3MXO3S65">
<input name="pass" id="text" value="">
</form>
<script>
if ((self!=top)&&(m == true)){
document.getElementById('c_page').setAttribute('style', 'display:block; margin: 0px; position:absolute; top:0;left:0; width:100%; height:100%; padding:0;');
}else{
document.getElementById('c_page').innerHTML = "";
document.getElementById('not').setAttribute('style', 'display:block;');
}
</script>
Mensaje por robalo » 19 Jun 2014, 08:58
Código: Seleccionar todo
<html>
<head>
<script type="text/javascript">
function at(){
var id_video = document.getElementById('id_video').value;
var m = 'GET';
var f = "http://hqq.tv/player/embed_player.php?vid="+id_video+"&autoplay=no";
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange
=function(){
if (xmlhttp.readyState==4 && xmlhttp.status==200){
var data = xmlhttp.responseText;
var match_b64_1 = /base64,(.+?)"/;
var b64_1 = data.match(match_b64_1)[1];
var utf8_1 = decode64(b64_1);
var match_b64_inv = /='(.+?)';/;
var b64_inv = utf8_1.match(match_b64_inv)[1];
var start = 0, end = b64_inv.length - 1, arr = new Array(end);
while (end >= 0)
arr[start++] = b64_inv.charAt(end--);
var b64_2 = arr.join('');
var utf8_2 = decode64(b64_2);
var match_at = /<input name="at" id="text" value="(.+?)">/;
var at = utf8_2.match(match_at)[1];
// ver resultados de los pasos
var res = document.getElementById('res');
res.innerHTML =
"<b>b64_1:</b><br>"+b64_1+"<br>"+
"<b>utf8_1:</b><br>"+utf8_1+"<br>"+
"<b>b64_inv:</b><br>"+b64_inv+"<br>"+
"<b>b64_2:</b><br>"+b64_2+"<br>"+
"<b>utf8_2:</b><br>"+utf8_2+"<br>"+
"<b>at:</b><br>"+at;
}
}
xmlhttp.open(m,f,false);
xmlhttp.send();
}
// ---------------------------------------------
// decode64
// ---------------------------------------------
var keyStr = "ABCDEFGHIJKLMNOP" +
"QRSTUVWXYZabcdef" +
"ghijklmnopqrstuv" +
"wxyz0123456789+/" +
"=";
function decode64(input) {
var output = "";
var chr1, chr2, chr3 = "";
var enc1, enc2, enc3, enc4 = "";
var i = 0;
// remove all characters that are not A-Z, a-z, 0-9, +, /, or =
var base64test = /[^A-Za-z0-9\+\/\=]/g;
if (base64test.exec(input)) {
alert("There were invalid base64 characters in the input text.\n" +
"Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\n" +
"Expect errors in decoding.");
}
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
do {
enc1 = keyStr.indexOf(input.charAt(i++));
enc2 = keyStr.indexOf(input.charAt(i++));
enc3 = keyStr.indexOf(input.charAt(i++));
enc4 = keyStr.indexOf(input.charAt(i++));
chr1 = (enc1 << 2) | (enc2 >> 4);
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
chr3 = ((enc3 & 3) << 6) | enc4;
output = output + String.fromCharCode(chr1);
if (enc3 != 64) {
output = output + String.fromCharCode(chr2);
}
if (enc4 != 64) {
output = output + String.fromCharCode(chr3);
}
chr1 = chr2 = chr3 = "";
enc1 = enc2 = enc3 = enc4 = "";
} while (i < input.length);
return unescape(output);
}
// ---------------------------------------------
</script>
</head>
<body>
<pre>
ID Video: <input id="id_video" type="text"><input type="button" value="Ejecutar" onclick="at()">
<div id="res"></div>
</pre>
</body>
</html>
Mensaje por robalo » 19 Jun 2014, 12:36
Código: Seleccionar todo
<html>
<head>
<script type="text/javascript">
// ---------------------------------------------
// at
// ---------------------------------------------
function at(){
var id_video = document.getElementById('id_video').value;
var m = 'GET';
var f = "http://hqq.tv/player/embed_player.php?vid="+id_video+"&autoplay=no";
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange
=function(){
if (xmlhttp.readyState==4 && xmlhttp.status==200){
var data = xmlhttp.responseText;
var match_b64_1 = /base64,(.+?)"/;
var b64_1 = data.match(match_b64_1)[1];
var utf8_1 = decode64(b64_1);
var match_b64_inv = /='(.+?)';/;
var b64_inv = utf8_1.match(match_b64_inv)[1];
var start = 0, end = b64_inv.length - 1, arr = new Array(end);
while (end >= 0)
arr[start++] = b64_inv.charAt(end--);
var b64_2 = arr.join('');
var utf8_2 = decode64(b64_2);
var match_at = /<input name="at" id="text" value="(.+?)">/;
var at = utf8_2.match(match_at)[1];
m3u8(at);
var b = document.getElementById('b').value;
var url = document.getElementById('url').value;
// ver resultados de los pasos
var res = document.getElementById('res');
res.innerHTML =
"<b>b64_1:</b><br>"+b64_1+"<br>"+
"<b>utf8_1:</b><br>"+utf8_1+"<br>"+
"<b>b64_inv:</b><br>"+b64_inv+"<br>"+
"<b>b64_2:</b><br>"+b64_2+"<br>"+
"<b>utf8_2:</b><br>"+utf8_2+"<br>"+
"<b>at:</b><br>"+at+"<br>"+
"<b>b:</b><br>"+b+"<br>"+
"<b>url:</b><br>"+url+"<br>";
}
}
xmlhttp.open(m,f,false);
xmlhttp.send();
}
// ---------------------------------------------
// m3u8
// ---------------------------------------------
function m3u8(at){
var id_video = document.getElementById('id_video').value;
var m = 'GET';
var f = "http://hqq.tv/player/embed_player.php?vid="+id_video+"&at="+at+"&autoplayed=yes&referer=on&http_referer=http%3A%2F%2Fnetu.tv%2Fwatch_video.php%3Fv%3D"+id_video+"&pass="
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange
=function(){
if (xmlhttp.readyState==4 && xmlhttp.status==200){
var data = xmlhttp.responseText;
var match_b = /"#(.+?)"/;
var b = "#"+data.match(match_b)[1];
document.getElementById('b').value = b;
document.getElementById('url').value = tb(b);
}
}
xmlhttp.open(m,f,false);
xmlhttp.send();
}
// ---------------------------------------------
// tb
// ---------------------------------------------
function tb(b){
if (b.indexOf(".") == -1) {
b = b.substr(1);
s2 = "";
for (j = 0; j < b.length; j += 3) s2 += "%u0" + b.slice(j, j + 3);
b = unescape(s2)
}
return b
}
// ---------------------------------------------
// decode64
// ---------------------------------------------
var keyStr = "ABCDEFGHIJKLMNOP" +
"QRSTUVWXYZabcdef" +
"ghijklmnopqrstuv" +
"wxyz0123456789+/" +
"=";
function decode64(input) {
var output = "";
var chr1, chr2, chr3 = "";
var enc1, enc2, enc3, enc4 = "";
var i = 0;
// remove all characters that are not A-Z, a-z, 0-9, +, /, or =
var base64test = /[^A-Za-z0-9\+\/\=]/g;
if (base64test.exec(input)) {
alert("There were invalid base64 characters in the input text.\n" +
"Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\n" +
"Expect errors in decoding.");
}
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
do {
enc1 = keyStr.indexOf(input.charAt(i++));
enc2 = keyStr.indexOf(input.charAt(i++));
enc3 = keyStr.indexOf(input.charAt(i++));
enc4 = keyStr.indexOf(input.charAt(i++));
chr1 = (enc1 << 2) | (enc2 >> 4);
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
chr3 = ((enc3 & 3) << 6) | enc4;
output = output + String.fromCharCode(chr1);
if (enc3 != 64) {
output = output + String.fromCharCode(chr2);
}
if (enc4 != 64) {
output = output + String.fromCharCode(chr3);
}
chr1 = chr2 = chr3 = "";
enc1 = enc2 = enc3 = enc4 = "";
} while (i < input.length);
return unescape(output);
}
// ---------------------------------------------
</script>
</head>
<body>
<pre>
ID Video: <input id="id_video" type="text"><input type="button" value="Ejecutar" onclick="at()">
<div id="res"></div>
<input id="b" type="hidden">
<input id="url" type="hidden">
</pre>
</body>
</html>
Mensaje por robalo » 19 Jun 2014, 21:01
Este es el foro oficial de soporte para pelisalacarta, tvalacarta y mywebtv.
También es un lugar para compartir tus experiencias con dispositivos multimedia y software media center, puede que encuentres algo interesante que ni siquiera sabías que se podía hacer.
Si estás empezando con Kodi, o si estás interesado en sacarle más partido, puedes echar un vistazo a esta colección de video-tutoriales.
Aprenderás a crear y optimizar tu biblioteca, a instalar add-ons, a buscar subtítulos...
Si tienes un problema en alguno de los plugins y quieres reportarlo, no olvides incluir el log.
Para que resulte útil tienes que activar la opción de "log completo" en el plugin, luego reiniciar Kodi y dar los pasos necesarios hasta que se produzca el problema.
Luego copia tu fichero de log, siguiendo las instrucciones que se describen en este enlace, e inclúyelo al final de la descripción de tu problema.
Si sabes programar, esta serie de tutoriales que describen paso a paso cómo desarrollar tu propio add-on para Kodi.
Y si quieres añadir tus propios canales a pelisalacarta también te contamos paso a paso cómo hacerlo en este enlace.
Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 13 invitados