Jump to content

[Exploit + fix]Lets hack: Anti-Target (Unsanitized input exploit ).


Recommended Posts

Posted

So there was that issue going around, and apparently anti-target was and is the hot topic around. I talked with some "server admins" most of them had the exploit, could use it, couldnt not fix it ( shouldnt wonder why not ... ) but they didnt reply back cause they didnt probably believe that i can fix it or find it. Some others, which i thank, contacted me in msn ( about 8 guys in total ) , sent me the phx script ( which was so messy coded, whos the noob that created  it ? ). Anyway one thing i didnt like about the contacts was that they didnt prepare the ground for me to fix it, so i had to try the exploit myself, get phx, get interlude , etc. At least flash got most of the parts ready, so after a good 3 hours of testing we managed to get it working. For that mysticism and the behaviour of most admins i wont release a patch that fixes it, i will just share the "idea" and the "solution" behind it so as only good packs get it fixed ( aCis etc ) and the garbages ( l2jfrozen/brazil/teon and so on have it running and rot to the hack-hell they deserve to).

 

 

So the famous anti-target exploit.

 

Where does it work ?

 

Every server that supports freight system atm.

Versions: L2J/L2Jfree's and their forks.

 

How does it work ?

 

The idea behind the exploit, is that with a certain packet crafting, you can force the server to create a new L2PcInstance of you while you are already ingame. There is a section in the code where that can happen. In the same section of the code, few lines lower, the game calls .deleteMe() on that object. The object gets removed, but due to same id with your , the real l2pcinstance that is attacked to the client , it removes you from the L2World since L2World maps the objects based on the id. That makes the player appear missing from L2World as a result, no kicks no targets etc. ( Parodically it gets removed from knownlists too till they get updated ). For more spoiling : RequestPackageSend.java :)

 

How to fix it ?

 

Do not allow L2PcInstance creation if for the requested id, another character exists in the game ( check l2world for it ).

 

Tested on:

 

aCis pack latest revision.

 

Verdict:

I hope that way only the good cheaters will get to do the exploit  ( i did it without the script that goes around so if you cant do it, you are probably a noobish script-kiddo) and only the professional and serious developers making packs will have it fixed in their packs. I may release a patch in the future, but not right now, since both communities ( cheaters and admin-wannabes ) are way too immature to even cooperate with me for their own good. I dive in the mud for 1 week to get the exploit and for another 3 hours to make it working and fix it.

 

Cya :)

 

EDIT: Since im a good guy, here's the fix:

### Eclipse Workspace Patch 1.0
#P gameserver
Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestPackageSend.java
===================================================================
--- java/net/sf/l2j/gameserver/network/clientpackets/RequestPackageSend.java	(revision 70)
+++ java/net/sf/l2j/gameserver/network/clientpackets/RequestPackageSend.java	(working copy)
@@ -24,6 +24,7 @@
import net.sf.l2j.Config;
import net.sf.l2j.gameserver.model.ItemContainer;
import net.sf.l2j.gameserver.model.L2ItemInstance;
+import net.sf.l2j.gameserver.model.L2World;
import net.sf.l2j.gameserver.model.PcFreight;
import net.sf.l2j.gameserver.model.actor.L2Npc;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
@@ -78,6 +79,9 @@
        if (player == null)
        	return;
        
+        if(L2World.getInstance().getPlayer(_objectID) != null)
+        	return;
+        
		L2PcInstance target = L2PcInstance.load(_objectID);
		PcFreight freight = target.getFreight();
		getClient().getActiveChar().setActiveWarehouse(freight);

 

And here is the exploit:

 

9F + yourCharId+ somerandomitems = RequestPackageSend = Send a freight to yourself, not the other chars ;)

 

yourCharId , get it with phx its a 4 byte number like 4D AA 00 12. So the packet will look like this :

 

9F 4D AA 00 12 01 00 00 00 5D 14 08 32 02 00 00 00

 

Posted

A "tough badass, pantpooping noob-cheaters asswooper", smartass. :) You want exploits, you gonna work for them. Same goes for pack owners for fixes. ;) This is the only way of improvement. You learn when someone gives you the cheating theory and you do the practice. If you get the exploit served in a golden plate you will never learn. And the same goes for those that call themselves l2j interlude developers. You learn by knowing the theory and doing the practice, not by blindly adding a patch in your code.

Posted

A "tough badass, pantpooping noob-cheaters asswooper", smartass. :) You want exploits, you gonna work for them. Same goes for pack owners for fixes. ;) This is the only way of improvement. You learn when someone gives you the cheating theory and you do the practice. If you get the exploit served in a golden plate you will never learn. And the same goes for those that call themselves l2j interlude developers. You learn by knowing the theory and doing the practice, not by blindly adding a patch in your code.

good answer Leluche anyway good job mate keep working ;)
Posted

Speaking of l2inc, l2inc is not unhackable as you may think. I mean, sure they are the most experienced team around atm, but they are humans. There is no possibility they have eliminated every unsanitized input, every single race condition every bla bla.

 

For the records, ill tell you two stories that happened between me, my clan  and l2inc that will backup some things i said previously ( i hope ).

 

Story one : How back2business ruled l2inc.

 

Six months before i open l2relapse, we were playing in l2inc. We kinda ruled the server. Aden , full wins in pvp in a server which was peaking back then at around 4k people. Pretty tough isnt it ? Well how did we do it ? Sure we were great pvpers, but there were many other great clans too. Short answer. We cheated. A lot.  One of the gang members, found accidentaly, an enchant exploit. It was a race condition as far as i remember ( i had no idea what a race condition was back then ) , all i know is that he gave me the exploit, and i coded "The factory of fantasy isle ( or Issle :P)". Basically we produced full +30 items for the whole clan day after day having a script "interacting" with clan members and enchanting their gear. And that kept going for about a month. If im correct nBd attempted to fix it once before he succeeded ( unconfirmed ).  The verdict : Even the most developed and advanced servers will have exploits. Few, rare, but occasionally there may be exploits coming up to surface.

 

Story two: How a noob couldnt fix an underflow for 3 hours.

 

That noob was me, posing as a server admin, with 800 players online. Sure i coded some cool things, but i pointed fingers ( as someone said :) ) a lot. So apparently i took some players from servers i shouldnt and some people got pissed :) And then something cool happened that made me start thinking. Someone hacked us :) He knows, i dont hold any grudge on him anymore :) He may still. There was an unckecked buffer reading in the GamePacketHandler ( cant remeber the packet ) , that was causing an underflow exception. I had no idea about underflows or overflows back then. So i turned to BigBoss. Apparently he didnt either, back then :) So bigboss talked to nBd of l2inc, and i went to his chatroom to contact me. And i still remember what nBd said, "You know i will help you, but i shouldnt, after all that shit you have talked about my server in public." And here is the critical point, where someone becomes a beggar or a lion. I didnt accept the help. Nor did i got ask help from l2jserver.com I said : "Doesnt matter if it takes me 5 mins with you , or 5 hours myself, ill go read the theory and fix it myself buddy." Which i did some hours later that midday.

 

Verdict of those two stories: If you want to evolve, you should get your hands dirty and never rely on others to fix things of you. And only by doing things by yourself and getting only "pushed" by others you will evolve to the next stage.

 

"So if you cant make exploits out of vulnerabilities, do not cheat. If you cant fix known vulnerabilities, dont make a server." - Issle :)

 

Posted

I love your answers xD

but still i need a hax for inc xD

 

 

BTW nBd is a great dev but he got no imagination as I can see from the gameplay, so what's the point of having a "robot" server? :)

 

 

 

(PS. I remember your clan)

Posted

I love your answers xD

but still i need a hax for inc xD

 

 

BTW nBd is a great dev but he got no imagination as I can see from the gameplay, so what's the point of having a "robot" server? :)

 

 

 

(PS. I remember your clan)

 

You know, the reason we opened relapse was just that. nBd was great admin/dev, but when it came to gameplay, boy did he sux :) So, one day after an aden siege someone said in clan chat : "Hey lets open a server ! We go find some pro admin developer and tell him to make us a server." Well, they did never find an experienced admin to do that at the end. They found a player ... :)

 

So anyway since the asshole-self got expired, i go make a patch and release ;)

Posted

can you explain better how to use the anti-target ? so how I get the char ID more precise and what other things I need ?

Posted

Wow just tried it out and works like a charm. Thank you for sharing it

+1 Karma. You rly deserved it!

 

Edit: You should hide your exploits here for a good amount and post the fix in the l2j section.

Posted

Wow just tried it out and works like a charm. Thank you for sharing it

+1 Karma. You rly deserved it!

 

doh, can you tell me how you use the exploit ? cheers :)

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

    • Quick head's up if anyone needs sniffer we have it and the price is reasonable. any server is doable.
    • so u need to create them and then use the icon name in the prefered ones
    • ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━      ⚔️  A NEW ERA OF LINEAGE 2 PVP  ⚔️         High Five | 2026 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ We are building something that has never existed before. Not another copy. Not another "x2000 PvP server with TvT." This is a complete PvP ecosystem — where every kill matters,every rivalry has a face, and your legacy is worn on your character. We are sharing this here first, before anything is announced publicly. We want feedback. We want the right people. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📌  CORE SERVER FEATURES ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🔹 Chronicle .............. High Five 🔹 Rates .................. x2000 🔹 Safe Enchant ........... +3 🔹 Max Enchant ............ +10 🔹 Enchant Rate ........... 33% 🔹 Buff Slots ............. 24 + 4 🔹 Song & Dance Slots ..... 12 🔹 Buff Duration .......... 4 hours 🔹 TvT .................... Every Hour  (Karma + PvP points) 🔹 Hero ................... Every Week 🔹 Olympiad ............... 3 Hours Daily 🔹 Castle Sieges .......... Weekly 🔹 Territory Wars ......... Weekly 🔹 Grand Bosses ........... 1 week respawn 🔹 Costume Farm Area ...... Custom mobs & zones 🔹 NPC Buffers + GM Shops 🔹 Custom Economy 🔹 Custom Playground 🔹 Custom Events 🔹 Anti-Bot | Anti-DDoS | Highly Secured 🔹 Stable | No Lag | No sudden wipes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🚀  5 FEATURES THAT HAVE NEVER EXISTED      ON ANY LINEAGE 2 SERVER ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ─────────────────────────────────────── 💰  1. BOUNTY HUNTER SYSTEM ─────────────────────────────────────── Every player with high PvP points becomes a target. Anyone can place real in-game adena / currency / gear as a bounty on any specific player they want dead. Kill the target → collect the bounty. → Top 10 Active Bounties visible LIVE on website + in-game board → Updated in real time — anyone can see who has a price on their head → Clans place bounties on enemy leaders before sieges → Creates real economic stakes behind every single kill → 100% organic drama — no admin needed to create conflict ─────────────────────────────────────── 🏆  2. SEASON RANKED LADDER + REAL PRIZE POOL ─────────────────────────────────────── Every 45 days a Season ends. PvP Score resets. Gear stays. Glory is earned. → Top 3 players receive a REAL money prize pool at season end → Top clan earns a unique exclusive in-game title displayed for the entire next season → Permanent Hall of Fame on website — name, class, kills, and season — forever → Season end = fresh ranking start for everyone New players have a real shot. Veterans must defend. → This single feature will make clans actively recruit  and communities form around the server organically ─────────────────────────────────────── 📱  3. LIVE SERVER DASHBOARD ─────────────────────────────────────── A fully live website — accessible from any phone or browser: → Real-time Kill Feed — who killed who, where, when → Live PvP Leaderboard — updated every minute → Live Bounty Board — active bounties and claimed kills → Grand Boss timers — next Baium, Antharas, Valakas spawn → Siege countdown with registered clans visible → Server population — online now, today's peak, all-time peak Why this matters: Players check their phone at work and see their clan is losing the siege. They log in. They recruit a friend. That friend stays. Friends who have never played see the stats and ask what server it is. This is automatic word-of-mouth that no advertisement can buy. ─────────────────────────────────────── ⚔️  4. NEMESIS SYSTEM ─────────────────────────────────────── The system tracks who kills you most. If the same player kills you 5 times in a row — he becomes your official NEMESIS. → A red skull icon appears above his head — visible only to you → Kill your Nemesis → DOUBLE PvP points    + server-wide announcement: "[PlayerX] has avenged his honor against [PlayerY]!" → If he kills you 10 times consecutively → you receive the title [Hunted] — visible to the entire server    Public humiliation. Maximum motivation. → Eliminate your Nemesis → your title is removed    He receives [Defeated] for 1 hour This transforms anonymous PvP into personal rivalries. Players will bring friends just to help eliminate their Nemesis. These stories are what people talk about for years. ─────────────────────────────────────── 👑  5. CLAN SIEGE CROWN — WEARABLE LEGACY TROPHY  ─────────────────────────────────────── This feature does not exist on any L2 server in the world. Every clan that wins a Castle Siege receives 10 custom hat/accessory items — physically wearable in-game. Each Crown is: → UNIQUE per castle — Aden Crown has a different visual from Giran Crown, Rune Crown, Goddard Crown, etc. → PERSONALIZED — the clan name AND clan crest are embedded visually on the hat itself, like a clan cloak but on your head    Every player who sees you knows exactly who you are and what castle your clan owns → NUMBERED — tooltip reads:    "Crown of Aden #4/10 — Season 2"    A collectible. A proof. A statement. → PERMANENT — you lose the castle at next siege, you keep the Crown → LEGACY — at season end it becomes a permanent trophy:    "Crown of Aden — Season 2  |  [YourClanName]"    Stored in your inventory as living history When a player wearing this Crown walks through Giran, everyone sees the clan crest displayed on the accessory. No leaderboard needed. Status is worn on your character.   -------------------------------------------------------------------------------------------------------------------------------------------------------------------- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🛠️  WHO WE ARE LOOKING FOR ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ We are building the right team first. No launch date until everything is right. ✅ H5 Developer — L2J or L2OFF    Must have experience with high-rate PvP servers    Bonus: experience with custom feature development ✅ Web Developer — for the Live Dashboard + account panel    Must be comfortable with real-time data display    (websockets, live feeds, mobile-friendly) ✅ Designer / 3D Artist — for custom Crown visuals per castle    If you have L2 texture/model experience, we want to talk ✅ GMs / Community Managers    Active, fair, experienced, trusted by the community ✅ Beta Testers    Players who know H5 PvP inside out    Willing to stress-test and break things on purpose ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 💬  WE WANT YOUR HONEST FEEDBACK ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ We are building this WITH the community. Every reply here shapes the final product. → Which of these 5 features excites you most? → What do you think will NOT work and why? → What is missing that would make you stay for months? → Would you play this if it opened tomorrow? We are not looking for hype. We are looking for honest opinions from people who have seen servers rise and fall. Tell us what we are getting wrong. Reply below or send a PM directly. Serious people only. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ P.S. — The inspiration for this project came from a server many of us played years ago called L2Gang. That nostalgia is what started this conversation. What we are building is something entirely new. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    • Please is anyone who can share the compiled version of the l2editor source for interlude? Because i run the !GenerateLibs.bat with the corrected code by CriticalError and then i try to build with the vs 2013 but i get errors again and again and when i try anyway to open or create something with the UnrealEd.exe then it closes automatically.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..