shell bypass 403

UnknownSec Shell


name : echo.js
var Echo=function(){"use strict";function e(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function n(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}function i(){return i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},i.apply(this,arguments)}function s(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&o(e,n)}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(e,n){return o=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},o(e,n)}function u(e,n){return!n||"object"!=typeof n&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function c(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,i=r(e);if(n){var s=r(this).constructor;t=Reflect.construct(i,arguments,s)}else t=i.apply(this,arguments);return u(this,t)}}var a=function(){function n(t){e(this,n),this._defaultOptions={auth:{headers:{}},authEndpoint:"/broadcasting/auth",broadcaster:"pusher",csrfToken:null,host:null,key:null,namespace:"App.Events"},this.setOptions(t),this.connect()}return t(n,[{key:"setOptions",value:function(e){return this.options=i(this._defaultOptions,e),this.csrfToken()&&(this.options.auth.headers["X-CSRF-TOKEN"]=this.csrfToken()),e}},{key:"csrfToken",value:function(){var e;return"undefined"!=typeof window&&window.Laravel&&window.Laravel.csrfToken?window.Laravel.csrfToken:this.options.csrfToken?this.options.csrfToken:"undefined"!=typeof document&&"function"==typeof document.querySelector&&(e=document.querySelector('meta[name="csrf-token"]'))?e.getAttribute("content"):null}}]),n}(),h=function(){function n(){e(this,n)}return t(n,[{key:"listenForWhisper",value:function(e,n){return this.listen(".client-"+e,n)}},{key:"notification",value:function(e){return this.listen(".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated",e)}},{key:"stopListeningForWhisper",value:function(e,n){return this.stopListening(".client-"+e,n)}}]),n}(),l=function(){function n(t){e(this,n),this.setNamespace(t)}return t(n,[{key:"format",value:function(e){return"."===e.charAt(0)||"\\"===e.charAt(0)?e.substr(1):(this.namespace&&(e=this.namespace+"."+e),e.replace(/\./g,"\\"))}},{key:"setNamespace",value:function(e){this.namespace=e}}]),n}(),f=function(n){s(r,n);var i=c(r);function r(n,t,s){var o;return e(this,r),(o=i.call(this)).name=t,o.pusher=n,o.options=s,o.eventFormatter=new l(o.options.namespace),o.subscribe(),o}return t(r,[{key:"subscribe",value:function(){this.subscription=this.pusher.subscribe(this.name)}},{key:"unsubscribe",value:function(){this.pusher.unsubscribe(this.name)}},{key:"listen",value:function(e,n){return this.on(this.eventFormatter.format(e),n),this}},{key:"listenToAll",value:function(e){var n=this;return this.subscription.bind_global((function(t,i){if(!t.startsWith("pusher:")){var s=n.options.namespace.replace(/\./g,"\\"),r=t.startsWith(s)?t.substring(s.length+1):"."+t;e(r,i)}})),this}},{key:"stopListening",value:function(e,n){return n?this.subscription.unbind(this.eventFormatter.format(e),n):this.subscription.unbind(this.eventFormatter.format(e)),this}},{key:"stopListeningToAll",value:function(e){return e?this.subscription.unbind_global(e):this.subscription.unbind_global(),this}},{key:"subscribed",value:function(e){return this.on("pusher:subscription_succeeded",(function(){e()})),this}},{key:"error",value:function(e){return this.on("pusher:subscription_error",(function(n){e(n)})),this}},{key:"on",value:function(e,n){return this.subscription.bind(e,n),this}}]),r}(h),p=function(n){s(r,n);var i=c(r);function r(){return e(this,r),i.apply(this,arguments)}return t(r,[{key:"whisper",value:function(e,n){return this.pusher.channels.channels[this.name].trigger("client-".concat(e),n),this}}]),r}(f),v=function(n){s(r,n);var i=c(r);function r(){return e(this,r),i.apply(this,arguments)}return t(r,[{key:"whisper",value:function(e,n){return this.pusher.channels.channels[this.name].trigger("client-".concat(e),n),this}}]),r}(f),y=function(n){s(r,n);var i=c(r);function r(){return e(this,r),i.apply(this,arguments)}return t(r,[{key:"here",value:function(e){return this.on("pusher:subscription_succeeded",(function(n){e(Object.keys(n.members).map((function(e){return n.members[e]})))})),this}},{key:"joining",value:function(e){return this.on("pusher:member_added",(function(n){e(n.info)})),this}},{key:"leaving",value:function(e){return this.on("pusher:member_removed",(function(n){e(n.info)})),this}},{key:"whisper",value:function(e,n){return this.pusher.channels.channels[this.name].trigger("client-".concat(e),n),this}}]),r}(f),k=function(n){s(r,n);var i=c(r);function r(n,t,s){var o;return e(this,r),(o=i.call(this)).events={},o.listeners={},o.name=t,o.socket=n,o.options=s,o.eventFormatter=new l(o.options.namespace),o.subscribe(),o}return t(r,[{key:"subscribe",value:function(){this.socket.emit("subscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"unsubscribe",value:function(){this.unbind(),this.socket.emit("unsubscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"listen",value:function(e,n){return this.on(this.eventFormatter.format(e),n),this}},{key:"stopListening",value:function(e,n){return this.unbindEvent(this.eventFormatter.format(e),n),this}},{key:"subscribed",value:function(e){return this.on("connect",(function(n){e(n)})),this}},{key:"error",value:function(e){return this}},{key:"on",value:function(e,n){var t=this;return this.listeners[e]=this.listeners[e]||[],this.events[e]||(this.events[e]=function(n,i){t.name===n&&t.listeners[e]&&t.listeners[e].forEach((function(e){return e(i)}))},this.socket.on(e,this.events[e])),this.listeners[e].push(n),this}},{key:"unbind",value:function(){var e=this;Object.keys(this.events).forEach((function(n){e.unbindEvent(n)}))}},{key:"unbindEvent",value:function(e,n){this.listeners[e]=this.listeners[e]||[],n&&(this.listeners[e]=this.listeners[e].filter((function(e){return e!==n}))),n&&0!==this.listeners[e].length||(this.events[e]&&(this.socket.removeListener(e,this.events[e]),delete this.events[e]),delete this.listeners[e])}}]),r}(h),b=function(n){s(r,n);var i=c(r);function r(){return e(this,r),i.apply(this,arguments)}return t(r,[{key:"whisper",value:function(e,n){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(e),data:n}),this}}]),r}(k),d=function(n){s(r,n);var i=c(r);function r(){return e(this,r),i.apply(this,arguments)}return t(r,[{key:"here",value:function(e){return this.on("presence:subscribed",(function(n){e(n.map((function(e){return e.user_info})))})),this}},{key:"joining",value:function(e){return this.on("presence:joining",(function(n){return e(n.user_info)})),this}},{key:"leaving",value:function(e){return this.on("presence:leaving",(function(n){return e(n.user_info)})),this}}]),r}(b),m=function(n){s(r,n);var i=c(r);function r(){return e(this,r),i.apply(this,arguments)}return t(r,[{key:"subscribe",value:function(){}},{key:"unsubscribe",value:function(){}},{key:"listen",value:function(e,n){return this}},{key:"stopListening",value:function(e,n){return this}},{key:"subscribed",value:function(e){return this}},{key:"error",value:function(e){return this}},{key:"on",value:function(e,n){return this}}]),r}(h),g=function(n){s(r,n);var i=c(r);function r(){return e(this,r),i.apply(this,arguments)}return t(r,[{key:"whisper",value:function(e,n){return this}}]),r}(m),w=function(n){s(r,n);var i=c(r);function r(){return e(this,r),i.apply(this,arguments)}return t(r,[{key:"here",value:function(e){return this}},{key:"joining",value:function(e){return this}},{key:"leaving",value:function(e){return this}},{key:"whisper",value:function(e,n){return this}}]),r}(m),j=function(n){s(r,n);var i=c(r);function r(){var n;return e(this,r),(n=i.apply(this,arguments)).channels={},n}return t(r,[{key:"connect",value:function(){void 0!==this.options.client?this.pusher=this.options.client:this.pusher=new Pusher(this.options.key,this.options)}},{key:"listen",value:function(e,n,t){return this.channel(e).listen(n,t)}},{key:"channel",value:function(e){return this.channels[e]||(this.channels[e]=new f(this.pusher,e,this.options)),this.channels[e]}},{key:"privateChannel",value:function(e){return this.channels["private-"+e]||(this.channels["private-"+e]=new p(this.pusher,"private-"+e,this.options)),this.channels["private-"+e]}},{key:"encryptedPrivateChannel",value:function(e){return this.channels["private-encrypted-"+e]||(this.channels["private-encrypted-"+e]=new v(this.pusher,"private-encrypted-"+e,this.options)),this.channels["private-encrypted-"+e]}},{key:"presenceChannel",value:function(e){return this.channels["presence-"+e]||(this.channels["presence-"+e]=new y(this.pusher,"presence-"+e,this.options)),this.channels["presence-"+e]}},{key:"leave",value:function(e){var n=this;[e,"private-"+e,"presence-"+e].forEach((function(e,t){n.leaveChannel(e)}))}},{key:"leaveChannel",value:function(e){this.channels[e]&&(this.channels[e].unsubscribe(),delete this.channels[e])}},{key:"socketId",value:function(){return this.pusher.connection.socket_id}},{key:"disconnect",value:function(){this.pusher.disconnect()}}]),r}(a),I=function(n){s(r,n);var i=c(r);function r(){var n;return e(this,r),(n=i.apply(this,arguments)).channels={},n}return t(r,[{key:"connect",value:function(){var e=this,n=this.getSocketIO();return this.socket=n(this.options.host,this.options),this.socket.on("reconnect",(function(){Object.values(e.channels).forEach((function(e){e.subscribe()}))})),this.socket}},{key:"getSocketIO",value:function(){if(void 0!==this.options.client)return this.options.client;if("undefined"!=typeof io)return io;throw new Error("Socket.io client not found. Should be globally available or passed via options.client")}},{key:"listen",value:function(e,n,t){return this.channel(e).listen(n,t)}},{key:"channel",value:function(e){return this.channels[e]||(this.channels[e]=new k(this.socket,e,this.options)),this.channels[e]}},{key:"privateChannel",value:function(e){return this.channels["private-"+e]||(this.channels["private-"+e]=new b(this.socket,"private-"+e,this.options)),this.channels["private-"+e]}},{key:"presenceChannel",value:function(e){return this.channels["presence-"+e]||(this.channels["presence-"+e]=new d(this.socket,"presence-"+e,this.options)),this.channels["presence-"+e]}},{key:"leave",value:function(e){var n=this;[e,"private-"+e,"presence-"+e].forEach((function(e){n.leaveChannel(e)}))}},{key:"leaveChannel",value:function(e){this.channels[e]&&(this.channels[e].unsubscribe(),delete this.channels[e])}},{key:"socketId",value:function(){return this.socket.id}},{key:"disconnect",value:function(){this.socket.disconnect()}}]),r}(a),O=function(n){s(r,n);var i=c(r);function r(){var n;return e(this,r),(n=i.apply(this,arguments)).channels={},n}return t(r,[{key:"connect",value:function(){}},{key:"listen",value:function(e,n,t){return new m}},{key:"channel",value:function(e){return new m}},{key:"privateChannel",value:function(e){return new g}},{key:"presenceChannel",value:function(e){return new w}},{key:"leave",value:function(e){}},{key:"leaveChannel",value:function(e){}},{key:"socketId",value:function(){return"fake-socket-id"}},{key:"disconnect",value:function(){}}]),r}(a);return function(){function n(t){e(this,n),this.options=t,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}return t(n,[{key:"channel",value:function(e){return this.connector.channel(e)}},{key:"connect",value:function(){"pusher"==this.options.broadcaster?this.connector=new j(this.options):"socket.io"==this.options.broadcaster?this.connector=new I(this.options):"null"==this.options.broadcaster?this.connector=new O(this.options):"function"==typeof this.options.broadcaster&&(this.connector=new this.options.broadcaster(this.options))}},{key:"disconnect",value:function(){this.connector.disconnect()}},{key:"join",value:function(e){return this.connector.presenceChannel(e)}},{key:"leave",value:function(e){this.connector.leave(e)}},{key:"leaveChannel",value:function(e){this.connector.leaveChannel(e)}},{key:"listen",value:function(e,n,t){return this.connector.listen(e,n,t)}},{key:"private",value:function(e){return this.connector.privateChannel(e)}},{key:"encryptedPrivate",value:function(e){return this.connector.encryptedPrivateChannel(e)}},{key:"socketId",value:function(){return this.connector.socketId()}},{key:"registerInterceptors",value:function(){"function"==typeof Vue&&Vue.http&&this.registerVueRequestInterceptor(),"function"==typeof axios&&this.registerAxiosRequestInterceptor(),"function"==typeof jQuery&&this.registerjQueryAjaxSetup()}},{key:"registerVueRequestInterceptor",value:function(){var e=this;Vue.http.interceptors.push((function(n,t){e.socketId()&&n.headers.set("X-Socket-ID",e.socketId()),t()}))}},{key:"registerAxiosRequestInterceptor",value:function(){var e=this;axios.interceptors.request.use((function(n){return e.socketId()&&(n.headers["X-Socket-Id"]=e.socketId()),n}))}},{key:"registerjQueryAjaxSetup",value:function(){var e=this;void 0!==jQuery.ajax&&jQuery.ajaxPrefilter((function(n,t,i){e.socketId()&&i.setRequestHeader("X-Socket-Id",e.socketId())}))}}]),n}()}();

© 2025 UnknownSec
afwwrfwafr45458465
Password