Postado Outubro 18, 2019 5 anos Administrador Guys estou fazendo isso aqui para verificar rsa e retornar o valor em lua, alguem com uma dica ai? DLL CLIENT bool isValidRSAPublicKeyOnly(RSA *rsa) { //from rsa_ameth.c do_rsa_print : has a private key //from rsa_chk.c RSA_check_key : doesn't have n (modulus) and e (public exponent) if (!rsa || rsa->d || !rsa->n || !rsa->e) { return false; } //from http://rt.openssl.org/Ticket/Display.html?user=guest&pass=guest&id=1454 //doesnt have a valid public exponent return BN_is_odd(rsa->e) && !BN_is_one(rsa->e); } Talvez se eu fizer um pointer no client via dll e checar em lua esse valor eu consiga retornar para o server? hello help Editado Outubro 18, 2019 5 anos por Erimyth (veja o histórico de edições)
Postado Outubro 18, 2019 5 anos ao consegui verificar guys por java script via web retornando no console e agora? dhasIDASIUHDAUSI // 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); Usei essas libs fs-sync binstring
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.