Sign in to follow this  
Followers 0
the_OG

Editing DLL's using AutoIt

4 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by FreeFry

Share this post


Link to post
Share on other sites

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! :">

Share this post


Link to post
Share on other sites

Hihi :whistle:

Always glad to be of help, hope it works out for you :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0