There is a tool called LuteBot which is used in the game Mordhau to be able to make the player play midi files with the in game lute.
In the tool you need to specify the location of the file DefaultInput.ini from the game.
However, the tool does not work anymore since the game was updated and renamed the file "DefaultInput.ini" to "Input.ini". The tool still listens for the file "DefaultInput.ini" and if you try to add the location of "Input.ini" then you see an error message saying
Please select the file "DefaultInput.ini
Is there a way to change the .exe to make it look for Input.ini instead of DefaultInput.ini?
I only found the text "DefaultInput" two times, it looks like those are methods:
openDefaultInputiniToolStripMenuItem
setDefaultInputiniLocationToolStripMenuItem
I figured it out by doing this:
- press Alt + E
- find your exe file. select it
right click
and selectView executable file
. - press CTRL + B and searched for "DefaultInput"
strings
on the executable andgrep
for the string (strings lutebot.exe | grep -i defaultinput.ini
). If you can't find it, then the text is probably obfuscated. Place a break point onCreateFile
or other file opening functions and look for where the string is being passed from. You can also backtrack using the stack when the message box gets displayed to see from where it branched from, place a break point, restart the program and keep on doing that till you find from where it passes the string.