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

    • does anyone has the tools in the third link ?
    • ⚡ Weekend special! Upgrade your personal Google account with 5TB storage and Gemini Pro in under 60 seconds.
    • Chronicle: Chronicle 1 - Harbingers Of War General Information: EXP/SP: x1 Adena: x1 Drop chance: x1 Spoil chance: x1 Raid drop chance: x1 Quest adena: x1 Quest EXP/SP: x1 Quest drop chance: x1 Box limit: 1+1    Buff time: 40min normal buffs. 5min song/dance. Sub Acumulative 1+1 You can create a "sub" starting at level 20.   With a simple quest. Level 40 need a simple quest. You can crea a sub with your same race (simple quest) or other race (more hard quest). You need learn all your class and sub skills. You can start with the "Master of Talents" NPC, located in every city next to the Grand Master.    The Client: We use the official original Chronica 1 game client, but we have made some modifications we deemed necessary for a better gameplay experience.   1. In-game buff duration timer. 2. ALT+M or M (with enter-chat) show map without needing to buy it 3. AutoSoulshot—but use it wisely. Soulshots aren't cheap! 4. Private Workshop (craft) 5. Game window in windowed mode, allowing it to be moved freely around Windows. 6. Combat Log. DISCORD: https://discord.gg/uzWj8M4gcm SITE: https://l2giran.com/
    • ⚔️ DRAGON-NETWORK LEGACY x15 ⚔️ INTERLUDE+ • SUBSTACK • STAGE PROGRESSION 🔥 GRAND OPENING: OCTOBER 2, 2026 🕖 19:00 UTC+2 🌐 https://dragon-network.eu ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ THE LEGACY RETURNS. YOUR STORY BEGINS. The battlefield is calling once again! Dragon-Network returns with LEGACY x15, delivering a unique Interlude+ Substack experience featuring competitive PvP, expanded content, and progressive gameplay. Forge your build. Gather your clan. Conquer your enemies. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ⚙️ SERVER INFORMATION • Chronicle: Interlude+ • Gameplay: Substack • EXP / SP: x15 • Adena: x10 • Drop / Spoil: x10 • Seal Stones: x10 • Raid Boss Drops: x5 • Epic Drops: x1 • Maximum Level: 85 • Box Limit: 1 Main + 2 Boxes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ⚔️ SUBSTACK SYSTEM Create your own playstyle and explore unique class combinations. ✓ Free starting Golkonda Horn ✓ First Stack Sub from level 40 ✓ Additional horns obtainable through gameplay ✓ Custom class and skill adjustments Your build. Your strategy. Your legacy. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🌍 INTERLUDE+ CONTENT Experience the classic world of Lineage II with additional content and expanded progression. ✓ Kamaloka & Labyrinth ✓ Pailaka Quests ✓ Hellbound Island ✓ Isle of Prayer ✓ Improved Pets ✓ S80 Equipment ✓ Attribute System ✓ Siegeable Fortresses Content is introduced progressively through server stages. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🏆 PVP & EVENTS Prepare for competitive battles and valuable rewards! ✓ Daily Team vs Team events ✓ Event Coins and exclusive rewards ✓ Epic jewelry reward opportunities ✓ Weekly Olympiad cycles ✓ Castle Sieges ✓ Clan competition Fight for glory. Earn your rewards. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🛡️ FAIR PLAY & QUALITY OF LIFE ✓ DragonGuard Anti-Cheat ✓ Custom Anti-Bot CAPTCHA ✓ No Pay-to-Win philosophy ✓ Improved class balance ✓ Progressive NPC Buffer ✓ 1-hour buffs ✓ Offline Shops ✓ Community Board skill learning ✓ Shift+Click monster drop information ✓ Combo Songs & Dances ✓ Tattoo System ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📅 SERVER ROADMAP OCT 02 — GRAND OPENING OCT 05 — Seven Signs Quest Period OCT 07 — Team vs Team Begins OCT 12 — Olympiad & Seal Validation OCT 17–18 — First Castle Sieges OCT 19 — First Heroes OCT 28 — Stage 2: Dynasty & Attribute Stones ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🔥 THE COUNTDOWN HAS BEGUN! Old rivalries will return. New alliances will rise. Legends will be written. Will you be part of the next chapter? ⚔️ DRAGON-NETWORK LEGACY x15 📅 OCTOBER 2, 2026 — 19:00 UTC+2 🌐 OFFICIAL WEBSITE https://dragon-network.eu 📜 SERVER FEATURES https://dragon-network.eu/features 🔧 SEASON IMPROVEMENTS https://dragon-network.eu/whats-new DRAGON-NETWORK — FORGE YOUR LEGACY.
    • Clan: BeMyFrag (BMF) Clan Leader: AresQQ (Ares / PapaSmurf) Type: EU PvP clan, English-speaking (Polish and other EU languages inside) Recruiting: YES — open until launch, target 80–120 active players Where are we playing now? Eigis Odyssey Season 3 — opens 9 October 2026, 8:00 PM. Full server briefing: https://bemyfrag.com/eigis/ How many members? target 80–120 at launch. Which servers have we played? Playing together for over a decade. Last season: The Cult  What we offer: Organised mass PvP and castle sieges every Sunday (Aden/Goddard alternating) TeamSpeak 3 (bmf.ts3.so) + in-client voice for parties DKP ranking with reward codes for active players Fair loot rules and disputes — no drama Maintained server FAQ, so you don’t figure out Eigis alone Multigaming Discord community beyond L2 Clan rules: Be on TeamSpeak for mass PvP and sieges Party up before launch — no solo drifting competitive and casual both welcome Join: https://discord.gg/2UweQ3RYTZ → channel #l2eigis-apply → ask for rights.
  • 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..