![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
05-24-12, 04:41 PM
|
#1 | |
|
Sonar Guy
![]() Join Date: Sep 2010
Location: Switzerland
Posts: 384
Downloads: 86
Uploads: 0
|
Quote:
__________________
Von den 40'000 deutschen U-Boot-Männern des Zweiten Weltkrieges kehrten 30'000 nicht zurück... 40’000 German sailors served on U-boats during World War II – 30’000 never returned home... |
|
|
|
05-25-12, 10:00 AM
|
#2 |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
|
|
|
05-25-12, 02:39 PM
|
#3 |
|
Sonar Guy
![]() Join Date: Sep 2010
Location: Switzerland
Posts: 384
Downloads: 86
Uploads: 0
|
When using TDW's Generic Patcher remember his note at the bottom of post #1 :
NOTE: DISABLE ALL PATCHES WITH OLD PATCHER BEFORE APPLYING NEW PATCHES WITH NEW PATCHER! THIS APPLIES ONLY TO PATCHES RELATED TO SHSIM.ACT AND SHCOLLISIONS.ACT I read it and forgot about it......and it took me quite a while to get everything fixed again.....
__________________
Von den 40'000 deutschen U-Boot-Männern des Zweiten Weltkrieges kehrten 30'000 nicht zurück... 40’000 German sailors served on U-boats during World War II – 30’000 never returned home... |
|
|
05-25-12, 09:11 PM
|
#4 |
|
Nub
![]() Join Date: Mar 2010
Posts: 2
Downloads: 13
Uploads: 0
|
I have a steam version of the game. I'm sad the current patch will not work with my version, but it sounds like applying the fix at runtime would solve this issue as well.
|
|
|
05-26-12, 12:05 AM
|
#5 |
|
Black Magic
![]() |
v1.0.31.0 released. See post #1
This version adds the ability to attach to a process and inject/remove DLLs. To attach to a process selected File-->Attach. To detach from the process select File-->Detach. To inject a DLL/ACT file click Inject button. To remove a DLL/ACT file from the process select the file you want to remove from the Loaded modules listview. Then click Remove. Everything else should be pretty self-explanatory. If it's unable to inject/remove it's probably because you have older version of kernel32.dll on your computer. Currently I have the offsets for LoadLibraryA and FreeLibrary hard-coded. I have to add code that will read the IAT to get it's address yet. This can be run on 32bit or 64bit OSs. I have it coded to select the appropriate function calls based on whether your OS is 32 bit or 64 bit. Working on the ability to inject/remove files that are nothing but hex code. Since I can't call LoadLibraryA and FreeLibrary on them (they're not DLLs) I have to code in something to allocate process memory and then dump the contents of those files into the new process memory.
|
|
|
05-26-12, 01:05 PM
|
#6 |
|
Black Magic
![]() |
v1.0.33.0 released. See post #1
This version allows you to inject a file (ANY type of file) into a process. You also have the option of executing the file you loaded You can inject ANY file into a process (bmp, hex, txt, etc, dll, exe).If you elect to execute the file you injected, the last command HAS to be a RETN statement (or a RETN x if you need to pop temp variables off the stack). If you forget this the process WILL CRASH! You don't have to add the RETN statement if you are going to branch to somewhere else in the process but in doing so don't forget to pop the return value pushed onto the stack by the stub! The execution will begin at the first byte found in the file. I'll add a way for you to specify beginning execution point in next version. I've included a little file (TestFile(retn).hex) that you can inject into the SH5 process. When it asks if you want to execute it say yes. SH5 will never know anything every happened! The file is just one command, RETN, which means return to caller. Here's how the inject file works: - the app allocates memory in the process in a multiple of pagesize to fit the file being injected - the file contents are copied into this memory - if the user selected execute then: - a stub is made that will branch execution to the injected file. The first thing the stub does is push the EIP to the stack. This way when the injected code issues a RETN statement execution goes back to it's original place ![]() There are two new buttons - Inject file and Remove file. They do just as they sound. To remove a file select the file from the Injections listview and then press Remove file. Working on dumping process memory and reloading it now so user can modify it. Also adding a way to set watches on memory and letting you define the update time interval on them The LoadLibraryA and FreeLibray offsets are still hardcoded for kernel32.dll. If you get failed to inject or failed to remove it's probably because you have older version of kernel32.dll installed on your computer. I should have these hard codes removed in next version.
|
|
|
05-26-12, 01:42 PM
|
#7 | |
|
中国水兵
![]() Join Date: Jul 2011
Posts: 278
Downloads: 941
Uploads: 0
|
Quote:
Thanks |
|
|
|
05-26-12, 01:48 PM
|
#8 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
![]() To see this is great , but it is beyond my knowledge What this mean in concrete ![]() The possibility of adding what ? - Contollers for. SIM? (Dials, lights ....) - Otherwise to open other programes eg: Enigma, sextant ... - .....
__________________
~~~~BigReg~BigRegOne~~~~ ![]() "Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water." Proverbe Shadok Last edited by BIGREG; 05-26-12 at 02:38 PM. |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
