开发者

change label text from a VB6 binary (not source code)

开发者 https://www.devze.com 2022-12-24 02:54 出处:网络
开发者_JS百科we have a VB6 binary executable that comes with no source code. And we need to change the label text for that VB6 application from \"AAA\" to \"BBB\". Is there any way or tools that can d
开发者_JS百科

we have a VB6 binary executable that comes with no source code. And we need to change the label text for that VB6 application from "AAA" to "BBB". Is there any way or tools that can do that?

The closest tool I can find right now is microsoft UISpy, it can read all the other elements but not the label.

I hope there is a tool that can change the resource in the .exe so that the label "AAA" will read "BBB". Or is it possible to write a wrapper application, it will launch the .exe, examine the application screen for "AAA" and change that to "BBB"?

Thank you for your help!


Instead of tampering with the EXE, it might be worth your while to simply write a simple wrapper that will run silently, obtaining the window handle after enumerating the VB6's parent window and directly modify it at run-time by hooking into VB6's window procedure looking for the handle of the label...

You could end up mistakenly rip out AAA which could be a binary for something else (by coincidence) and thereby breaking the application!...

Have a look here for a similar question in which the SO was trying to modify an AOL window...and here's the direct download for this demo application to obtain the text from an AOL window...this should give you a clue in the direction on how to find the window and enumerate it looking for label that has "AAA"


What about hex-dumping it and searching for all instances of AAA? Try replacing each one in succession with BBB and see if you win.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号