Register for your free account! | Forgot your password?

You last visited: Today at 03:26

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Hack Fixes(Including Dupe Hack)

Discussion on Hack Fixes(Including Dupe Hack) within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
xMootie's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 208
Received Thanks: 486
Hack Fixes(Including Dupe Hack)

Some guy from AscensionFlyff thought he would go around trying to start server wars or something. Used a dupe exploit in the Flyff source(wasn't too hard to find). Here's the fix for it since he lied to me about the exploit being in my code.

Dupe Fix:
Quote:
Both of these fixes are in world server.

File: DPSrvr.cpp, Function - CDPSrvr::OnPutItemGuildBank:
Change
Code:
DWORD nItemNum;
to
Code:
int nItemNum;

File: DPSrvr.cpp, Function - CDPSrvr::OnGetItemGuildBank:
Change
Code:
DWORD dwItemNum;
to
Code:
int dwItemNum;
Dupe fixed.
I'll update this if he uses any more exploits on my server.

Update - Dupe explanation I posted on another forum:
Quote:
Ok... I thought this was pretty obvious but let me try to explain.

signed int32 max(int) = -2147483647 to 2147483647
unsigned int32 max(DWORD) = 0 to 4294967295

When you cast an unsigned integer to a signed integer and it exceeds the maximum range, you get an integer overflow. The value then goes negative. So, let's try the following code.

Code:
DWORD dwItemNum = 2147483648;
int nItemNum = (int)dwItemNum;
nItemNum would now be -2147483549(since it exceeded the limit).

So lets take a look at this range check in the DPSrvr.cpp file.

Code:
if( (int)( dwItemNum ) > pItemElem->m_nItemNum )
	dwItemNum = pItemElem->m_nItemNum;
if( dwItemNum < 1 )
	dwItemNum	= 1;
Guess what this translates to if I send a packet with a value of 2147483747(100 more than the signed int32 max)?

Code:
if( -2147483549 > pItemElem->m_nItemNum )
	dwItemNum = pItemElem->m_nItemNum;
if( 2147483747 < 1 )
	dwItemNum	= 1;
It passes both checks, then we later see...

Code:
CItemElem itemElem;
itemElem	= *pItemElem;
itemElem.m_nItemNum		= (short)( dwItemNum );
itemElem.m_dwObjId		= pItemElem->m_dwObjId;
->

Code:
CItemElem itemElem;
itemElem	= *pItemElem;
itemElem.m_nItemNum		= (short)( -2147483549 ); // 99
itemElem.m_dwObjId		= pItemElem->m_dwObjId;
Say we had a twinklestone(1x) in the guild bank and we sent a packet with the item number set to 2147483747? We now have 99 twinklestones in our inventory.
xMootie is offline  
Thanks
69 Users
Reply


Similar Threads Similar Threads
B> PlayRF[offical] servers dupe hack,dmg(atk speed) hack and fly hack.
01/18/2012 - RFO Hacks, Bots, Cheats, Exploits & Guides - 0 Replies
As the title already said(B> PlayRF servers dupe hack(rollback),dmg(atk speed) hack and fly hack.), I would like to buy those hacks to PlayRF server (official server). Also the stuff should include bypassing the FireGuard(HackShield). Also by buying I mean someone to teach me to use them myself with CE, Hex Editor or w/e is needed etc. PM or write in this theme or whatever. Thanks,
Enchant / Fixes hack?
08/09/2011 - Ace Online / AirRivals - 3 Replies
If any1 got a hack to find the fix i want on my weapons or enchant %% i would pay u 3$ or something like that >.< Post link pl0x
Heavens Gate Full Hack !!! Including GM hack!!!
12/29/2009 - Dekaron Private Server - 33 Replies
Hi there! Since i got banned now 2 times, i decided to release my hacks i got so far... Here the adress of this server: Heavens Gate Dekaron Just put the share folder in your /data folder & let all files being replaced For GM Teleport & GM Ghostmode: -Download cheatengine -Open the GhostmodeCT



All times are GMT +1. The time now is 03:26.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.