Jump to content

loading a big file ~40mb from chr to hex ? read plz


Recommended Posts

I have to read code from a .exe that is not visable to you.

This code is trying to be read by autoit.

Autoit only knows to show 0-9.

The code i need runs from 0-9 and a-f.

I am going to have to write the code all out myself.

But it will be usfull to lots.

The program im making is really cool and will open a dore in autoit. :D

Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone()
Link to comment
Share on other sites

$file=FileOpenDialog("Pick",@ScriptDir,"all (*.*)")
$files = FileOpen($file,4)
$read=StringReplace(String(FileRead($files,FileGetSize($file))),"0x","")
dim $out
For $i=1 to StringLen($read) step 2
    $out&=Dec(StringMid($read,$i,2))
Next
MsgBox(0,0,$out)
FileClose($files)

Maybe this? I think thats the same as what you orginonally posted...

Link to comment
Share on other sites

I am just curious as to what was wrong with Manadar's solution?

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Link to comment
Share on other sites

; String -> Hex
$hex = "0x" & Hex(BinaryString(FileRead($file)))
; Hex -> String
$unhex = BinaryString($hex)

It should only take around a minute. Just make sure you have that "0x" in front before unhexing it. :D

Edited by erifash
Link to comment
Share on other sites

its all a mix up see his post in the scritps and scraps section

I tried using an "autoit" tag but it messed up. Luckily I hit back then copied it. Now it's fixed.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...