Jump to content
  • 0

How To Get Hwid With Packets?


Question

Posted (edited)

Hello,

In what method i can capture Hardware id from client in server side? Maybe can someone give me more informations for it? Thanks :)

Edited by wongerlt

15 answers to this question

Recommended Posts

  • 0
Posted

Hello,

In what method i can capture Hardware id from client in server side? Maybe can someone give me more informations for it? Thanks :)

package Guard.hwidmanager;

import Guard.ConfigProtection;
import net.sf.l2j.gameserver.handler.IAdminCommandHandler;
import net.sf.l2j.gameserver.model.L2Object;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;

public class HWIDAdminBan implements IAdminCommandHandler
{

	private static final String[] ADMIN_COMMANDS =
	{
		"admin_hwid_ban"
	};

	@Override
	public boolean useAdminCommand(String fullString, L2PcInstance player)
	{

		if (!ConfigProtection.ALLOW_GUARD_SYSTEM)
		{
			return false;
		}
		if (player == null)
		{
			return false;
		}
		if (!fullString.startsWith("admin_hwid"))
		{
			return false;
		}
		if (fullString.startsWith("admin_hwid_ban"))
		{
			L2Object playerTarger = player.getTarget();
			if (playerTarger == null && !(playerTarger instanceof L2PcInstance))
			{
				player.sendMessage("Target is empty.");
				return false;
			}
			L2PcInstance target = (L2PcInstance) playerTarger;
			if (target != null)
			{
				HWIDBan.addHWIDBan(target.getNetConnection());
				player.sendMessage(target.getName() + " banned in HWID.");
			}
		}
		return true;
	}

	@Override
	public String[] getAdminCommandList()
	{
		return ADMIN_COMMANDS;
	}
}

and l2gameclient.java

	public void checkHwid(String allowedHwid)
	{
		if (!allowedHwid.equalsIgnoreCase("") && !getHWID().equalsIgnoreCase(allowedHwid))
			closeNow();
	}
	
	private String _hwid;
	private boolean _isProtected;
	
	public String getHWID()
	{
		return _hwid;
	}
	
	public boolean isProtected()
	{
		return _isProtected;
	}
	
	public void setHWID(String hwid)
	{
		_hwid = hwid;
	}
	

and l2 pcinstance

	public String getHWID()
	{
		return _connection.getHWID();
	}

  • 0
Posted

Which will not work unless if you client supports this and you also have the rest server side support.

  • 0
Posted

Which will not work unless if you client supports this and you also have the rest server side support.

i can't  show full code. you know,what i mean, but code working perfect,tested on my server

  • 0
Posted

i can't  show full code. you know,what i mean, but code working perfect,tested on my server

So what point wirite one part of code here? If you dont give functions code and it cant work without it? :D

  • 0
Posted

So what point wirite one part of code here? If you dont give functions code and it cant work without it? :D

 

the retard just gave accessors and mutators, that have the appropiate name. 

Wannabe developer or wannabe funny? 

  • 0
Posted

Find function responsible for sending data, find function which sends AuthLogin and simply send data after its executed :)

Or hire someone to do it for you xD

  • 0
Posted

There is no HWID support in interlude client native, which means in order to get access to that you need some external support in most cases thats some anti-cheat like lameguard in the past, now there emerged some new SmartGuard and some others.

 

Non of them are free of course, so you gotta pay to get that.

  • 0
Posted (edited)

There is no HWID support in interlude client native, which means in order to get access to that you need some external support in most cases thats some anti-cheat like lameguard in the past, now there emerged some new SmartGuard and some others.

 

Non of them are free of course, so you gotta pay to get that.

while we are on topic, RequestHardWareInfo is sent to server on login attempt or on request?

Edited by AlmostGood
  • 0
Posted

while we are on topic, RequestHardWareInfo is sent to server on login attempt or on request?

RequestHardWareInfo  is Goddess of Destruction packet not to mention that is disabled, and it contains mostly bulshit, like drivers and their versions

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


  • Posts

    • Vesper Noble heavy set (RAR) 1800 att - 150e Eternal Core Dualsword +6 300 att 130e Ring of Baium 130e AQ ring 100e Antharas Earring 200e   Paypal payments only DM in discord narttu123
    • L2REBORN x10 - 1gb - 4.2$ l2reborn x1 ( signature ) - 1kk - 1.3$ LU4 - 1kk - 2.3$ MASTERWORRK - 1kk - 3.8kk  discord - adver745645
    • Hello, Skill Activation: The activation options from the Alt+K window work perfectly. However, when activating them from the skill bar, there is still a delay of approximately 1 second. I need to remove that delay
    • --- Interlude Faction/GvE PvP grand opening 2025-11-15 19:00 GMT+2 ---   Gameplay: Chronicle: Interlude Type: Faction/GvE (Angels vs Nature vs Demons) GM Shop: B-S grade Buff slots: 20+4 Starting level: 74 + rebirth system   New Features: Client: Modern interface based on Essence Balance: New class skills for better balance Achievement Rewards: Daily, Weekly, One-time TOP rankings: PvP, Event PvP, Map PvP, Clan PvP, Event MvP, Map MvP Zones: 70 different PvP zones,  18 different events (8 map events | 10 main events) 12 Grand/raid bosses. Castle siege Olympiad Clan Hall challenge Custom Enchant System: Dynamic success chance (greater enchant level or item grade less enchanting success chance) Enchant rate: Blessed scrolls dynamic from 100% to 25%. Crystal Scrolls: 100%; Max enchant weapon +12 Max enchant armor +8 Safe point enchant system Extra Features: PvP items with level upgrade Weapon/Armor upgrade (from B grade to S) system Attributes system   Website: https://l2cygnus.com Community: Discord Facebook: https://www.facebook.com/l2cygnus Youtube:   
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock