Jump to content
  • Announcements

    • Tierri Lopes

      Introduce yourself   12/20/2017

      Introduce yourself here:  https://tlthings.net/board/index.php?/forum/6-apresentações/  
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.

 

  • Thanks 4
  • 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

Please login or register to see this image. /applications/core/interface/imageproxy/imageproxy.php?img=https://i.imgur.com/s2jBqzR.png&key=cc02a1f43cb9af2c6fb9d95173baa3726da71de871d3a5c77dd3fbb789f7981e" width="78">

 

ZfX28Q9.png

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

×

Important Information

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