the_OG Posted February 17, 2007 Posted February 17, 2007 Hello again, I am here to ask if it is possible to edit a DLL through AutoIt the way you can through a Hex Editor. Reason for my asking, is I am in need of a tool that will rewrite certain strings inside of a DLL to what the user defines. Any insight on this would be greatly appreciated! ~the_og
FreeFry Posted February 17, 2007 Posted February 17, 2007 (edited) FileRead() the dll file, and use StringInStr, or StringReplace() to find the bytes you want to edit... Attached is an example of how I did it when I made a patch for msn messenger.. Edit: Also, autoit is very much able to handle data much as hex editors do(hex editors show the data in hex), and autoit can convert data into hex with _StringToHex() Example: #include <String.au3> $String = Chr(5) & "my binary string" & Chr(5) $StringInHex = _StringToHex($String) MsgBox(0, _HexToString($StringInHex), $StringInHex) Edit: Changed StringSplit() to StringReplace() - duh... Edit2: For anyone else reading this, note this: The example I posted is very old lol, and might(is) not be a very good, or "clean" code:P Edited February 28, 2007 by FreeFry
the_OG Posted February 17, 2007 Author Posted February 17, 2007 FileRead() the dll file, and use StringInStr, or StringSplit to find the bytes you want to edit...Here's on example of how i did a patch for msn messenger:Wow, thank you for the quick response. This is very helpful to me and thank you for the example, even more than I could have expected! :">
FreeFry Posted February 17, 2007 Posted February 17, 2007 Hihi Always glad to be of help, hope it works out for you
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now