Jump to content

Devjunk

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Devjunk

  1. Hi, http://php.net/manual/en/function.pack.php Is there a similair function in AutoIt? I'm trying to create an OSCAR UDF for AutoIt but i can't find a nice way to create binary strings as easy as php does. Thanks in advance for answering
  2. Hi i like that UDFs, really handy. But it's lacking of an function similiar to ConsoleWinInput() where the user can type in a password and it'll show *asteriks* or whatever. Greetings
  3. Okay, i'll try to explain it a bit more detailed I've got this Exe-File, let's call it myexe.exe I need to edit this file like in a hex-editor. In Example, i know the file contains the hex-string "376869746530322E626E70" and now i want to replace this string with another hex-string which is "0000000000000000000000". Finally i want to save the edited file where the mentioned strings were replaced as myexe_new.exe. I don't want to automate the application, i want to edit the file with autoit commands. My english is not the best i guess.. I hope i could at least explain it well. (the editor used on the pics is called xvi32)
  4. Hi AutoIt-Community, i found this nifty little scripting language some days ago and i love it Anyway i've got a little problem while trying to get my script working. I'm trying to read hexed data from an non-autoit .exe-File and replace this hex data with something else what is also in hex. ;So my first idea was reading the whole file.. $ahandle = FileOpen("C:\myexe.exe", 0) $hex = Hex(BinaryString(FileRead($handle))) FileClose($handle) ;... then using StringReplace to replace the hex searching for with another hexvalue ... StringReplace($hex, "376869746530322E626E70", "0000000000000000000000") ; .. and then writing the new hex into a file called myexe_new.exe $bhandle = FileOpen("C:\myexe_new.exe", 2) FileWrite($bhandle, BinaryString($hex)) FileClose($bhandle) Ok, this doesn't works as it was supposed to. So, my question now is: is there some other - maybe better or at least working - way to do this or otherwise is there a way to fix my script? What did I wrong? Or is there even an existing script in these forums for this which i havn't found? Thank you for reading and helping!
×
×
  • Create New...