Register for your free account! | Forgot your password?

You last visited: Today at 17:39

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

Advertisement



PRoblem with ps_login hook

Discussion on PRoblem with ps_login hook within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1

 
elite*gold: 150
Join Date: Apr 2007
Posts: 2,372
Received Thanks: 6,628
PRoblem with ps_login hook

Hello guys, i currently ran into a problem while
hooking the Function at 0x406A30 in ps_login.exe.

While the hook works totally fine when my function is
empty ->

Code:
int __fastcall TryLogin( DWORD ecx, DWORD edx, char* username,char* password, int unkw, int unkw2, char* ip )
{
	return oLogin( ecx, edx, username, password, unkw, unkw2, ip );
}
as soon as i add code to it, ps_login will crash. While it doesnt
crash inside the hooked function or after returning, it crashes
somewhat later when it wants to return to the code
that calls the function at 406A30. The Reason is it returns
to the wrong address. So if someone could help with this one
it would be awesome =)

ps:
The original Function is also called with the right arguments etc :3

edit:
posted in the wrong section but already reported that

e:
The cause is obviously a stack problem and i could probly fix
that by manipulating the add esp before returning but
as far as i know that normally shouldnt be a problem when the hook
is fine :d
wurstbrot123 is offline  
Old 05/31/2017, 21:46   #2
 
elite*gold: 0
Join Date: Feb 2017
Posts: 19
Received Thanks: 4
If I correctly translated and understood what you are talking about when you call the function 0x00406A30 then the calling function should restore the stack, this is seen in the screenshot.
You need to execute "add esp, 14" or change the function call 0x00406A30
Vaka Vaka is offline  
Old 06/02/2017, 22:32   #3

 
elite*gold: 150
Join Date: Apr 2007
Posts: 2,372
Received Thanks: 6,628
the add esp,14 will be executed just normally so that isnt the problem.
However ill debug and get the value i need :P ^^
wurstbrot123 is offline  
Reply


Similar Threads Similar Threads
[Release]Fixed ps_login
12/16/2018 - Shaiya PServer Guides & Releases - 9 Replies
Hello everyone, As most of you might have remarked, I have not been active for a little over a month, being too busy with other things. I apologize to those I have ignored, I just needed some peace, and I still do, so please don't bother contacting me with any request for your server. Recently, it was brought to my attention that I was doing some sort of SQL injection attacks on certain servers. I have to admit I had no idea that I did such things, it must have happened while I was...
Problem with PS_DBAGENT PS_LOGIN and PS_GAME services/problema con servicios PS_DBAGE
04/22/2017 - Shaiya Private Server - 0 Replies
Good afternoon community sorry for the inconvenience again but now I have an error I get to turn on services with the psm server but only two do not light Game and DBAgent I leave an attached image as they are the services and the log generated many thanks http://s2.subirimagenes.com/fotos/previo/thump_97 27014server.jpg PS_LOGIN PS_GAME
[RELEASE] ps_login anti-injection
04/27/2015 - Shaiya PServer Guides & Releases - 28 Replies
There you go, it won't accepte this injections from those bad people.. Yes, I payd for get it, I release it for free because Im a man who will never sell any files. Virus Total Scan
Help me shaiya ps_login.exe attack!!!
12/13/2014 - Shaiya PServer Development - 3 Replies
Help to fix a bug with ps-login.exe / Please everyone who can help write in skype:dolc.diables
HxD Code For Intering Ps_login database
06/23/2013 - Shaiya Hacks, Bots, Cheats & Exploits - 7 Replies
Put this on Injection Coder To dirct in login database this is for all version shaiya code.. Ps_Login Database code 53 68 61 69 79 61 20 4C 6F 67 69 6E 20 53 65 72 76 65 72 Soon We will Release the Svnico Coder for all Pserver event shaiya korean will be affected of this Coder



All times are GMT +2. The time now is 17:39.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.