Jump to content
Tierri Lopes

[C++] Hardware ban (mac address)

Recommended Posts

Go to file root/intrologin.py

Look for:

Please login or register to see this code.

Add this bellow:

Please login or register to see this code.

 

Client source

Go to UserInterface/AccountConnector.cpp

Look for:

Please login or register to see this code.

Add this bellow:

Please login or register to see this code.

Inside:

Please login or register to see this code.

Look for:

Please login or register to see this code.

Add this bellow:

Please login or register to see this code.

 

Look for:

Please login or register to see this code.

Add this bellow:

Please login or register to see this code.

 

Go to file UserInterface/Packet.h

Look for:

Please login or register to see this code.

Replace with:

Please login or register to see this code.

 

Game source

Go to file game/Packet.h

Look for:

Please login or register to see this code.

Replace with:

Please login or register to see this code.

 

Go to file game/input_auth.cpp

Look for:

Please login or register to see this code.

Add this bellow:

Please login or register to see this code.

 

Go to file game/db.cpp

Look for:

Please login or register to see this code.

Add this bellow:

Please login or register to see this code.

 

Run this queries inside account database:

Please login or register to see this code. Please login or register to see this code.

 

  • Like 3
  • Thanks 7
  • Confused 1
  • Upvote 2

Share this post


Link to post
Share on other sites

Jogador ao fazer login, irá aparecer na sua conta (account.account), na tabela hwid o endereço mac da placa de rede com que entrou.

Ao adicionar esse valor à lista em account.hwid_ban, o jogador não conseguirá fazer login

 

@Darkness ban permanece mesmo aquando de mudança de ip, no entanto sim, é possível modificar endereço mac sem muita dificuldade

 

O que aconselho é utilizar como base para criarem o vosso próprio método de identificar o computador. Para tal basta criarem uma função nova e substituir onde está a ser chamada a GetMacAddress() pela vossa

  • Upvote 2

Share this post


Link to post
Share on other sites

×

Important Information

By using this site, you agree to our Terms of Use.