Postado Junho 21, 2020 5 anos Administrador Criei esse code aqui mas até agora não consegui fazer retornar corretamente.... a ideia seria retornar no OUTPUFILE as conexões com RSA errada e Correta. Feito em JS // import dependencies var fs = require('fs-sync'); var binstring = require('binstring'); // define all options here var options = { // where to save RSA key outputFile: 'RSA.txt', // where is your Tibia client inputFile: 'C:/Program Files (x86)/Tibia/Tibia.exe', // convert binary file to human readable utf8 format conversionOptions: { in: 'bin', out:'utf8' }, // this is most important, it assumes that RSA key is string of 245 digits long or longer and no other string is so long like this one, // if there will be more matches like this we have a problem RSApattern: /\d{245,}/g }; // humanize var humanData = binstring(fs.read(options.inputFile), options.conversionOptions); // extract RSA with RegEXP var RSA = humanData.match(options.RSApattern); // assume only 1 match found try { RSA[0] ? RSA = RSA[0] : null; } catch (e) { console.log('no match'); } // save it to output file fs.write(options.outputFile, RSA); // confirm by outputing result to console console.log(RSA); TibiaKing Team- KingTópicos www.tibiaking.com
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.