Foros del Web » Creando para Internet » Flash y Actionscript »

Flash encription o que es este codigo

Estas en el tema de Flash encription o que es este codigo en el foro de Flash y Actionscript en Foros del Web. Hola me gustaria saber si alguien me puede decir mas o menos a que se refiere este codigo me lo paso un amigo pero no ...
  #1 (permalink)  
Antiguo 30/05/2009, 12:53
 
Fecha de Ingreso: mayo-2009
Mensajes: 3
Antigüedad: 15 años
Puntos: 0
Flash encription o que es este codigo

Hola me gustaria saber si alguien me puede decir mas o menos a que se refiere este codigo me lo paso un amigo pero no comprendo bien que hace o para que es si alguien es tan amable de decirme mas o menos de que trata, gracias

Todos son archivos que trabajan en conjunto.

Este es de un archivo AS llamado usuarios:

class Usuarios
{
var ruta_final, arrayPreguntas, arrayOpcionesPreguntas, xmlUsuario, login, idUsuario, nombre, xmlPreguntas, nEscenario, principal, xmlShowed, idPreguntaOpen, xmlAnswer;
static var instance;
function Usuarios()
{
trace ("Debuguer:" + Criptografia.Decode("MCAgICA="));
ruta_final = "opc.toldosmoises";
arrayPreguntas = new Array();
arrayOpcionesPreguntas = new Array();
} // End of the function
static function getInstance()
{
if (Usuarios.instance == undefined)
{
instance = new Usuarios();
} // end if
return (Usuarios.instance);
} // End of the function
function identifica(usuario, clave)
{
var _loc2 = new LoadVars();
xmlUsuario = new XML();
xmlUsuario.ignoreWhite = true;
_loc2.correo = Criptografia.Encode(usuario);
_loc2.pass = Criptografia.Encode(clave);
_loc2.sendAndLoad(ruta_final + "Auth.aspx", xmlUsuario, "POST");
xmlUsuario.onLoad = mx.utils.Delegate.create(this, identifica_handler);
} // End of the function
function identifica_handler(loaded)
{
if (loaded)
{
trace (xmlUsuario);
trace (Criptografia.Decode(xmlUsuario.firstChild.childNo des[2].firstChild.nodeValue));
trace (Criptografia.Decode(xmlUsuario.firstChild.childNo des[3].firstChild.nodeValue));
var _loc2 = Number(Criptografia.Decode(xmlUsuario.firstChild.c hildNodes[2].firstChild.nodeValue));
switch (Number(_loc2))
{
case 0:
{
login._visible = false;
trace ("Usuario Correcto");
idUsuario = Criptografia.Decode(xmlUsuario.firstChild.childNod es[0].firstChild.nodeValue);
nombre = Criptografia.Decode(xmlUsuario.firstChild.childNod es[1].firstChild.nodeValue);
this.obtenerPreguntas();
break;
}
case 3:
{
getURL("registro/ConfirmarCorreo.aspx", "_blank");
break;
}
case 4:
{
getURL("Encuesta.aspx");
break;
}
default:
{
login.Login.Pantalla.txtError.text = Criptografia.Decode(xmlUsuario.firstChild.childNod es[3].firstChild.nodeValue);
}
} // End of switch
}
else
{
trace ("Error 404: " + ruta_final + "Auth.aspx");
} // end else if
} // End of the function
function obtenerPreguntas()
{
var _loc2 = new LoadVars();
xmlPreguntas = new XML();
xmlPreguntas.ignoreWhite = true;
_loc2.sendAndLoad(ruta_final + "Questions.aspx", xmlPreguntas, "POST");
xmlPreguntas.onLoad = mx.utils.Delegate.create(this, obtenerPreguntas_handler);
} // End of the function
function obtenerPreguntas_handler(loaded)
{
if (loaded)
{
var _loc13 = Number(Criptografia.Decode(xmlUsuario.firstChild.c hildNodes[2].firstChild.nodeValue));
switch (Number(_loc13))
{
case 4:
{
getURL("Encuesta.aspx");
break;
}
default:
{
login.Login.Pantalla.txtError.text = Criptografia.Decode(xmlUsuario.firstChild.childNod es[3].firstChild.nodeValue);
}
} // End of switch
trace ("xmlPreguntas---");
trace (Criptografia.Decode(xmlPreguntas.firstChild.child Nodes[2].firstChild.nodeValue));
trace (Criptografia.Decode(xmlPreguntas.firstChild.child Nodes[3].firstChild.nodeValue));
for (var _loc2 = 0; _loc2 < xmlPreguntas.firstChild.childNodes[4].childNodes.length; ++_loc2)
{
var _loc4 = xmlPreguntas.firstChild.childNodes[4].childNodes[_loc2].attributes.id;
var _loc7 = xmlPreguntas.firstChild.childNodes[4].childNodes[_loc2].childNodes[0].firstChild.nodeValue;
var _loc9 = xmlPreguntas.firstChild.childNodes[4].childNodes[_loc2].childNodes[1].firstChild.nodeValue;
var _loc8 = xmlPreguntas.firstChild.childNodes[4].childNodes[_loc2].childNodes[2].firstChild.nodeValue;
arrayPreguntas.push({id: _loc4, tipo: _loc7, texto: _loc9, archivo: _loc8});
if (xmlPreguntas.firstChild.childNodes[4].childNodes[_loc2].childNodes[3].childNodes.length > 0)
{
for (var _loc3 = 0; _loc3 < xmlPreguntas.firstChild.childNodes[4].childNodes[_loc2].childNodes[3].childNodes.length; ++_loc3)
{
arrayOpcionesPreguntas.push({id: _loc4, opcion: xmlPreguntas.firstChild.childNodes[4].childNodes[_loc2].childNodes[3].childNodes[_loc3].firstChild.nodeValue});
} // end of for
} // end if
} // end of for
this.muestraEscenarios();
}
else
{
trace ("Error");
} // end else if
} // End of the function
function muestraEscenarios()
{
if (arrayPreguntas.length == 0)
{
trace ("No se ha logueado");
}
else
{
var _loc2 = Number(Criptografia.Decode(arrayPreguntas[0].id));
if (_loc2 >= 1 && _loc2 <= 5)
{
if (nEscenario != 1)
{
trace ("Le toca el escenario 1");
principal.cargaEscenario("02-Panteon/main.swf");
nEscenario = 1;
} // end if
} // end if
if (_loc2 >= 6 && _loc2 <= 15)
{
if (nEscenario != 2)
{
trace ("Le toca el escenario 2");
principal.cargaEscenario("03-Estancia/main.swf");
nEscenario = 2;
} // end if
} // end if
if (_loc2 >= 16 && _loc2 <= 25)
{
if (nEscenario != 3)
{
trace ("Le toca el escenario 3");
principal.cargaEscenario("04-Comedor/main.swf");
nEscenario = 3;
} // end if
} // end if
if (_loc2 >= 26 && _loc2 <= 45)
{
if (nEscenario != 4)
{
trace ("Le toca el escenario 4");
principal.cargaEscenario("08-Suite/main.swf");
nEscenario = 4;
} // end if
} // end if
if (_loc2 >= 46 && _loc2 <= 55)
{
if (nEscenario != 5)
{
trace ("Le toca el escenario 5");
principal.cargaEscenario("09-banio/main.swf");
nEscenario = 5;
} // end if
} // end if
if (_loc2 >= 56 && _loc2 <= 75)
{
if (nEscenario != 6)
{
trace ("Le toca el escenario 6");
principal.cargaEscenario("06-Cocina/main.swf");
nEscenario = 6;
} // end if
} // end if
if (_loc2 >= 76 && _loc2 <= 95)
{
if (nEscenario != 7)
  #2 (permalink)  
Antiguo 30/05/2009, 13:02
Avatar de Diegoazul  
Fecha de Ingreso: mayo-2007
Ubicación: { Dash Berlin }
Mensajes: 1.879
Antigüedad: 17 años
Puntos: 67
Respuesta: Flash encription o que es este codigo

Ese codigo fue generado por un descompilador, es decir tu amigo robo codigo de un swf lo cual no es aceptable.
__________________
{ Flash }
  #3 (permalink)  
Antiguo 30/05/2009, 13:08
 
Fecha de Ingreso: mayo-2009
Mensajes: 3
Antigüedad: 15 años
Puntos: 0
Respuesta: Flash encription o que es este codigo

osea que el original esta encriptado?
  #4 (permalink)  
Antiguo 31/05/2009, 01:03
Avatar de Lynxcraft  
Fecha de Ingreso: noviembre-2007
Ubicación: yecla murcia
Mensajes: 1.346
Antigüedad: 16 años, 5 meses
Puntos: 51
Respuesta: Flash encription o que es este codigo

hola ese código no es de un archivo desencriptado ni esta ofuscado

sirve para la confirmación de usuario y registro del mismo es una clase de tipo as2 y trabaja bajo estructura XML

lo que si digo es que si ese tipo de estructura de código lo emplean empresas,lo cual si tu amigo no trabaja como programador es probable que lo haya encontrado por Internet
__________________
Sobran las ideas cuando faltan ganas de trabajar en ellas
Lynxcraft
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:09.