Jump to content

Accessing an external processes Main Thread....?


Recommended Posts

Hey guys,

Im working on Au3 Injection/Execution of ASM.. So far ive done it perfectly with my own thread, Ya alot think its not possible to inject with Autoit like its done in C# well they thought wrong, all the functions are mostly DLL calls or _WinAPI.

Anyway, the problem I have is I cannot call some functions with my injected code since its not being executed in the external processes main thread... So I need to...

#1. Be able to find the processes main thread.

#2. Open it will access rights.

#3.Suspend/Inject.Execute/ResumeThread.

Injection of assembly code is great for debugging my other apps, adding functionality to others etc.

But mostly this project is for learning purposes, AND to prove to the Au3 Haters that you can Inject and Execute your own code in an external process with Autoit and clean up the mess just as good as you can in C#.

yes yes, I know Autoit isnt the best thing to be scripting this sort of project in, But I love the functionality of autoit and the ability to overcome challenges like this that are deemed 'not possible'. :)

Other developers that are code monkeys, etc know what I mean and Im sure they all have a nice Au3 Injection UDF, in the dark depths of their hard drive somewhere xD

If youvr done something like this before please post your sample code if possible, or just direct me to the functions needed to do the steps above to Get the Main thread handle/Open/access it/Injec.Execute my code etc.

Thanks alot guys.

-Respect

*Credits to monoceres for inspiring this project :)

Edited by StrategicX

*WoW Dev Projects: AFK Tele Bot development journalSimple Player Pointer Scanner + Z-Teleport*My Projects: coming soon.Check out my WoW Dev wiki for patch 3.0.9!http://www.wowdev.wikidot.com

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