Jump to content

64 or 32 ?


Recommended Posts

Check this post where KaFu uses GetBinaryType

Link to comment
Share on other sites

Of course.

Keyword is IMAGE_OPTIONAL_HEADER structure. Yo can do it manually or thru ImageNtHeader function (in that case IMAGE_NT_HEADERS structure plays, but that's just three different structures joined together IMAGE_NT_SIGNATURE+IMAGE_FILE_HEADER+IMAGE_OPTIONAL_HEADER).

edit:

But making it simple as the above post kills all the fun.

Edited by trancexx

♡♡♡

.

eMyvnE

Link to comment
Share on other sites

Ok i looked both at your links and search advices and found

Based on my level of autoit (programing) knowledge i could not put any of those two together.

1 of found examples involved executing an executable=BAD IDEA

Anoter example provided function involving DLL (i learned DLL files return different values in different OS 32 and 64 bit so this is no use too)

As for keyword "IMAGE_OPTIONAL_HEADER" ?

Well i git lost even more now :mellow:

Maybe there is a simpler way to lets say:

Hex Read the file and finding traces of 64bit code ?

Then if that matches then $Var = "X64" ?

I dont know guys this seems way to complicated for me at this point.

Previously i would just rely on:

$var = '32'

If fileexist ('filename64.exe') = 1 Then assign ('var','64')

but this is to eazy and that file is not 100% guarantied to be there.

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