stuff Posted December 6, 2007 Posted December 6, 2007 hi Ive some exe-files i opened binary and converted them in hex... that took 2 or 3 seconds... now i want to reconvert them to binary again... but _hextostring is to slow... i know its possible because i had got such a script. if someone got an alternative to convert exes ore images to plain text without signs can't be displayed by html please post
Moderators SmOke_N Posted December 6, 2007 Moderators Posted December 6, 2007 hiIve some exe-files i opened binary and converted them in hex... that took 2 or 3 seconds...now i want to reconvert them to binary again... but _hextostring is to slow...i know its possible because i had got such a script.if someone got an alternative to convert exes ore images to plain text without signs can't be displayed by html please post Look at BinaryToString and StringToBinary Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
PsaltyDS Posted December 6, 2007 Posted December 6, 2007 Look at BinaryToString and StringToBinary I think once you have it in string formatted hex, it's just Binary(). $sHex = "FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210" $hFile = FileOpen("C:\Temp\Test.bin", 2 + 16) ; Open for binary write FileWrite($hFile, Binary("0x" & $sHex)) FileClose($hFile) Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
stuff Posted December 7, 2007 Author Posted December 7, 2007 hi the thing is... the hex is to big.... $file = FileOpen("beep.exe",16) FileWrite("test1.txt",Hex(FileRead($file))) i want to read out test1.txt and convert it into a exe again...
PsaltyDS Posted December 7, 2007 Posted December 7, 2007 (edited) hi the thing is... the hex is to big.... $file = FileOpen("beep.exe",16) FileWrite("test1.txt",Hex(FileRead($file))) i want to read out test1.txt and convert it into a exe again... ...and just how big is "too big"? AutoIt does strings up to 2GB, I believe. P.S. SQLite.dll.au3 is a 710KB string representation of a binary file. What are YOU converting? Edited December 7, 2007 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
stuff Posted December 7, 2007 Author Posted December 7, 2007 hi there is no error or something... -> for autoit its not to big... but its to slow to convert... grez
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