API-hooking question [SOLVED!] :)
Posted: Sun Sep 06, 2020 2:51 pm
Hi, comrades.
Can anyone help me? My question is not for hack/crack or steal. I have a bit experience and therefore I created new theme here (in fact the profile topic already exists).
The problem is as follows:
I have third-party app, which requires that TZI = utc. But at the same time, other applications are running on the computer (requires that TZI is setted as local). And yes, local <> utc. Otherwise I didn't ask the question here.
Correction/clarification: the TZI setting is not so much important as the time value. The problem is that this one application is reading the time every second. Therefore, here you cannot do this without an API-function hook. I looked at the import table and saw GetLocalTime there (from kernel32.dll). This is what I need. I would be very grateful if someone shows an example of a dynamic library with GetLocalTime function hooking based on the Hook Engine Module API (by Peyman). The point is to respond to the application on every request with time value chosen by user. As if the OS did it. If the time can be changed dynamically (send parameter from the injector part), then it will be super.
Sorry, but my attempts were unsuccessful (not a working solution). For this reason, I don't publish it here.
If someone has the time and desire to help me with this, then I will be very happy. If not, thanks anyway for your attention.
Can anyone help me? My question is not for hack/crack or steal. I have a bit experience and therefore I created new theme here (in fact the profile topic already exists).
The problem is as follows:
I have third-party app, which requires that TZI = utc. But at the same time, other applications are running on the computer (requires that TZI is setted as local). And yes, local <> utc. Otherwise I didn't ask the question here.
Correction/clarification: the TZI setting is not so much important as the time value. The problem is that this one application is reading the time every second. Therefore, here you cannot do this without an API-function hook. I looked at the import table and saw GetLocalTime there (from kernel32.dll). This is what I need. I would be very grateful if someone shows an example of a dynamic library with GetLocalTime function hooking based on the Hook Engine Module API (by Peyman). The point is to respond to the application on every request with time value chosen by user. As if the OS did it. If the time can be changed dynamically (send parameter from the injector part), then it will be super.
Sorry, but my attempts were unsuccessful (not a working solution). For this reason, I don't publish it here.
If someone has the time and desire to help me with this, then I will be very happy. If not, thanks anyway for your attention.