Sign in to follow this  
Followers 0
stuff

"unhex" 1mb txts

6 posts in this topic

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 :)

Share this post


Link to post
Share on other sites



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 :)

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 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

Share this post


Link to post
Share on other sites

hi

there is no error or something... -> for autoit its not to big... but its to slow to convert...

grez

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