Jump to content

Encriptação Chaves De Cliente


tierrilopes
 Share

Recommended Posts

Adicionar o ficheiro tmt.h dentro da vossa pasta Extern/include (em anexo)

Abrir o ficheiro EterPack/EterPack.cpp

Adicionar o seguinte após todos os outros includes:

#include "tmt.h"

Verificar se no ficheiro StdAfx.h do projecto EterPack existe o seguinte:

#include <tchar.h>
#include <iterator>
#include <sstream>

Caso não exista, adicionar. (print em baixo para exemplo)

 

Clipboardimage2016-05-08181117.png

Novamente no ficheiro EterPack/EterPack.cpp, procurar por:

static DWORD s_adwEterPackKey[] ={
45129401,
92367215,
681285731,
1710201,};
static DWORD s_adwEterPackSecurityKey[] ={
78952482,
527348324,
632942,
486274726,}
 

E substituir por:

//EterPackKey
int x1 = atoi(std::string(TMTDecrypt("7c667c796f7c637c")).c_str());
int x2 = atoi(std::string(TMTDecrypt("71617e7d617a6278")).c_str());
int x3 = atoi(std::string(TMTDecrypt("7e6b7c796e7d647e7a")).c_str());
int x4 = atoi(std::string(TMTDecrypt("79647c7b647862")).c_str());
//EterPackSecurityKey
int l1 = atoi(std::string(TMTDecrypt("7f6b747e647c6b7f")).c_str());
int l2 = atoi(std::string(TMTDecrypt("7d617a786270607f78")).c_str());
int l3 = atoi(std::string(TMTDecrypt("79657e796f7c61")).c_str());
int l4 = atoi(std::string(TMTDecrypt("7c6b7b79617c647f7d")).c_str());
static DWORD s_adwEterPackKey[] ={    x1, x2, x3, x4};
static DWORD s_adwEterPackSecurityKey[] ={    l1, l2, l3, l4};
 

Compilar o cliente.Para modificar as chaves, ver os tutoriais já presentes no fórum.Para servir de exemplo, os números, primeira linha do EterPackSecurity:

45129401
 

Correspondem à variável x1, que por sua vez corresponde a:

atoi(std::string(TMTDecrypt("7c667c796f7c637c")).c_str());
 

Sendo que o número encriptado corresponde a:

7c667c796f7c637c
 

Link da ferramenta: TMT Encryptor

tmt.h

  • Like 3
Link to comment
Share on other sites

  • 10 months later...
  • 2 years later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...