Run binary

182 posts in this topic




Posted (edited)

Really interesting post trancexx!

But beeing able to reach ring 0, by manipulating context structure, sounds too fantastic... Isn't such things protected, atleast on w2k and up?

Thanks for making the CONTEXT struct available on autoit, It makes me remember my days playing around with "debugging" AsProtect...

Thanks also for making this interesting method available!

BUT, I was wondering... This scheme doesn't work if the app we want to run, statically uses other dlls than the dummy of our choice.. right?

We would have to load those dlls and manually fill in IAT...? Would that be enough? Also if dlls conflict they would be rebased...

Maybe we would have to do all IAT for safetys sake...

Realized it is paused before loader does all dll loading mapping for us. >_<

I'm glad I'm on vacation, otherwise I might dive headfirst into this... :(

PS. Speaking of vacation... I was in split last summer. Some hot week! 36-40 degrees in the shade, almost all the time. Also, the nights were wonderful! DS.

/Manko [EDIT: Just to mention, Ive been to split... And I was too hasty about problems with scheme...]

Edited by Manko

Share this post


Link to post
Share on other sites

Posted

I'm glad I'm on vacation, otherwise I might dive headfirst into this... :(

PS. Speaking of vacation... I was in split last summer. Some hot week! 36-40 degrees in the shade, almost all the time. Also, the nights were wonderful! DS.

Yeah, it's pretty much the same now. My advice is to find some nice beach, get undressed an enjoy.

Nights are made for sin >_< - don't you wonderful to me now :(

Share this post


Link to post
Share on other sites

Posted

Wow, great work trancexx! Where there's a will there's a way >_

Share this post


Link to post
Share on other sites

Posted

I will show the ultimate (Vista working) solution if you help me take this topic to page 2 >_<

Why then and not now?

This method gives the whole new possibilities to jerks that do malware ( :( ). But fortunately some 1337 haxor is usually just a kid. And kids are known for their impatience. That said I'm expecting that mentioned haxor is not going to read page 2 of this topic because by reading post 1 and scrolling page up and down few times he/she will likely be off of this due to the accumulated boredness.

Anyway, I left more than one clue already on how to do it, so if you figured out wait for page 2 to see if we are on the same wave length.

Share this post


Link to post
Share on other sites

Posted

Anyway, I left more than one clue already on how to do it, so if you figured out wait for page 2 to see if we are on the same wave length.

lol, I don't think you and I ever will be on the same wave length. But as for the 'impatient hax0r' haha, you don't think they'd perhaps see the mention of a 2nd page? (hmm... guess there's the option to edit posts..).

Share this post


Link to post
Share on other sites

Posted

That's the plan (blueprint, design, device, draft, drawing, idea, intent, layout, map, plot, program, projection, road map, scheme... >_< )

Share this post


Link to post
Share on other sites

Posted

someone's been using a thesaurus..

Share this post


Link to post
Share on other sites

Posted (edited)

someone's been using a thesaurus..

Are you saying that I'm smoking pot (marijuana, grass, weed)?!?

...see how I used etymology to conclude that >_<

Anyways, enough small talk, it's not productive.

edit: missing word :(

Edited by trancexx

Share this post


Link to post
Share on other sites

Posted

Educational, brilliant and absolutely fantastic as usual trancexx.

What happens when the exe that is being run from memory has completely different dependency and stuff? Say for example that the exe has some function from lets say advapi32 in it's IAT and the startup exe doesn't, wouldn't that screw up execution? What about resources.

Oh and btw which forum setting are you using, hopefully you are using the standard setting so we don't have to wait too long for the complete solution >_<

Share this post


Link to post
Share on other sites

Posted

Educational, brilliant and absolutely fantastic as usual trancexx.

What happens when the exe that is being run from memory has completely different dependency and stuff? Say for example that the exe has some function from lets say advapi32 in it's IAT and the startup exe doesn't, wouldn't that screw up execution? What about resources.

Oh and btw which forum setting are you using, hopefully you are using the standard setting so we don't have to wait too long for the complete solution >_<

Hey, nice to see you. Hope your batteries are charged.

I see you are on Vista. There is no problem about running anything. All should work. Except, of course, if some particular OS is targeted when compiling (function not existing before maybe) and run on system without that function. But that's more general problem.

All sections are written - the clone is made. That includes resources section as well.

That also means that even compressed modules (any method or tool) plays.

20 posts per page, that's my setting lol

Share this post


Link to post
Share on other sites

Posted

im just trying to enhance the post count by one, just to see what is on page "10" >_

Share this post


Link to post
Share on other sites

Posted

rofl. This is all very ridiculous. And what is everyone gonna replace their comments with when it finally does 'rolllover' to the 2nd page? Perhaps we can discuss the state of the economy.

Share this post


Link to post
Share on other sites

Posted (edited)

Hey, nice to see you. Hope your batteries are charged.

Heh, you noticed :( And yes, ready to do wonders and such!

20 posts per page, that's my setting lol

Puh. I have it on 40.

Anyways, solving it for Vista is simple. So for anyone very curious read this and remember that address randomization is a link-time option (Hope this won't violate your "loosing kiddies idea" >_< )

Edit: Fixed terminology

Edited by monoceres

Share this post


Link to post
Share on other sites

Posted

Anyways, solving it for Vista is simple. So for anyone very curious read this and remember that address randomization is a link-time option (Hope this won't violate your "loosing kiddies idea" >_< )

Edit: Fixed terminology

Must-read for everyone.

Share this post


Link to post
Share on other sites

Posted

I replace the path with @SystemDir & "\calc.exe" and then to run from memory and I get error number 3.

Global $sModule = "E:\Program files\GUIDGen\GUIDGEN.EXE" 

Share this post


Link to post
Share on other sites

Posted

I replace the path with @SystemDir & "\calc.exe" and then to run from memory and I get error number 3.

Global $sModule = "E:\Program files\GUIDGen\GUIDGEN.EXE" 

Unfortunately many windows apps run at base 0x10000000 instead of 0x40000000. In this case, therefore, there is an obvious incompatibility. It can be worked around, I'm sure, but I'm too lazy... Vacation and all...

/Manko

Share this post


Link to post
Share on other sites

Posted

Error 3 is pre-execution error. It's indicating that MS-DOS header is missing or is messed up.

@Andreik, deal with it. It's a banal thing.

Share this post


Link to post
Share on other sites

Posted

General failure will be if the size of the new exe is bigger than AutoIt's size. That would require allocating more memory to work (I'm not doing that

That being the size of the executable that is running the other? In that case, wouldn't be easy to just add an Install() of a few sizable files to eliminate the problem?

Share this post


Link to post
Share on other sites

Posted

Error 3 is pre-execution error. It's indicating that MS-DOS header is missing or is messed up.

@Andreik, deal with it. It's a banal thing.

I don't understand yet all things from your UDF. From all the executables that I tried to run from memory just one of them was succesfully, for others I got errors like 3,6,7.

Anyway I like your UDF and examples, all work fine. >_<

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