Samx Here
n1udSecurity


Server : Apache
System : Linux ks5.tuic.fr 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64
User : pragmatice ( 1003)
PHP Version : 8.2.24
Disable Function : NONE
Directory :  /tmp/tsx-1023/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //tmp/tsx-1023/17180-5d12bb382155442454df631cad1e82ec10ee60d8
{"code":"(()=>{\n\"use strict\";const log4js=require(\"log4js\");const settings=require(\"../utils/Settings\");const stats=require(\"../../node/stats\");const logger=log4js.getLogger(\"socket.io\");const components={};let io;exports.addComponent=(moduleName,module2)=>{if(module2==null)return exports.deleteComponent(moduleName);components[moduleName]=module2;module2.setSocketIO(io)};exports.deleteComponent=moduleName=>{delete components[moduleName]};exports.setSocketIO=_io=>{io=_io;io.sockets.on(\"connection\",socket=>{const ip=settings.disableIPlogging?\"ANONYMOUS\":socket.request.ip;logger.debug(`${socket.id} connected from IP ${ip}`);socket._send=socket.send;socket.send=message=>{logger.debug(`to ${socket.id}: ${JSON.stringify(message)}`);socket._send(message)};for(const i of Object.keys(components)){components[i].handleConnect(socket)}socket.on(\"message\",(message,ack=()=>{})=>(async()=>{if(!message.component||!components[message.component]){throw new Error(`unknown message component: ${message.component}`)}logger.debug(`from ${socket.id}:`,message);return await components[message.component].handleMessage(socket,message)})().then(val=>ack(null,val),err=>{logger.error(`Error handling ${message.component} message from ${socket.id}: ${err.stack||err}`);ack({name:err.name,message:err.message})}));socket.on(\"disconnect\",reason=>{logger.debug(`${socket.id} disconnected: ${reason}`);stats.gauge(\"lastDisconnect\",()=>Date.now());for(const i of Object.keys(components)){components[i].handleDisconnect(socket)}})})};\n})()\n","warnings":[],"map":{"version":3,"mappings":";aAwBA,MAAM,OAAS,QAAQ,QAAQ,EAC/B,MAAM,SAAW,QAAQ,mBAAmB,EAC5C,MAAM,MAAQ,QAAQ,kBAAkB,EAExC,MAAM,OAAS,OAAO,UAAU,WAAW,EA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