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 6
  • Thanks 10
  • Haha 1
  • Confused 1
  • Upvote 2

Share this post


Link to post
Share on other sites

Muito bom isso serve para quando adicionamos o ip banido no srvidor  mesmo que o jogador tente entrar o cliente vai receber automaticamente ordem de não abrir ?

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

Eu fiz tudo que me diz ai, quando eu logo grava o ip da placa mãe e coloco no hwid_ban e mesmo assim consigo logar.

Share this post


Link to post
Share on other sites

fez algo mal, a minha está assim

Please login or register to see this attachment.

Edited by wery

Share this post


Link to post
Share on other sites

Fiz tudo e quando loga , sobe esse mac.. 

Please login or register to see this attachment.

Share this post


Link to post
Share on other sites

para quem tem o problema de registrar mac, usem este arquivo, creio que resolva qualquer problema de registrar mac

Please login or register to see this attachment.

Share this post


Link to post
Share on other sites

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

×

Important Information

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

Our website is made possible by displaying online advertisements to our visitors.
Please consider supporting us by disabling your ad blocker.
You will be able to see content when you disable your adblocker and enable javascript.