Experienced Elementalist
- Joined
- Sep 4, 2009
- Messages
- 248
- Reaction score
- 69
I started to look into the MZFile::Open function, and decided to look into what Linear88 & Guy said on the Innovation thread.
Looking for commands in OllyDbg that calls MZFile::Open, I found CheckFileList and thought of an idea.
CheckFileList
When this function starts, and it does catch a file with a mis-matched crc, have it set a "tick" in like an array or w/e. After the user logs in, have it store their username, and execute a .php script that will ban the user or w/e. (The tick is used to remember there was a mis-matched crc.) Though, you would have to make it not close GunZ or have any other adnormal effects.
This can help prevent users from editing "system.mrs", and have them banned also.
Discuss.
Also, for Gunz's loading time before the Login screen, it reads system.mrs many times. It increases loading time greatly. The fix would be creating your own file system.
Or just caching it....................
Unless you meant "filesystem" - in which case, a whole new FS isn't necessary.
Looking for commands in OllyDbg that calls MZFile::Open, I found CheckFileList and thought of an idea.
CheckFileList
Code:
000002c6, bool __cdecl CheckFileList(void)
FuncDebugStart : static, [0x00087359][0x0001:0x00086359]
FuncDebugEnd : static, [0x000875d5][0x0001:0x000865d5]
Data : ebp Relative, [0xfffffaa4], Local, Type: class MXmlDocument, aXml
Data : ebp Relative, [0xfffffab0], Local, Type: class MZFileSystem *, pfs
Data : ebp Relative, [0xfffffee8], Local, Type: char[0x100], szTagName
Data : ebp Relative, [0xfffffa98], Local, Type: class MXmlElement, aParent
Data : ebp Relative, [0xfffffa90], Local, Type: class MXmlElement, aChild
Data : ebp Relative, [0xfffffab8], Local, Type: class MZFile, mzf
Data : ebp Relative, [0xfffffde8], Local, Type: char[0x100], szCrc32
Data : ebp Relative, [0xfffffce8], Local, Type: char[0x100], szContents
Data : ebp Relative, [0xfffffaa0], Local, Type: unsigned int, crc32_current
When this function starts, and it does catch a file with a mis-matched crc, have it set a "tick" in like an array or w/e. After the user logs in, have it store their username, and execute a .php script that will ban the user or w/e. (The tick is used to remember there was a mis-matched crc.) Though, you would have to make it not close GunZ or have any other adnormal effects.
This can help prevent users from editing "system.mrs", and have them banned also.
Discuss.