Jump to content
Sign in to follow this  
Battery

DLL and EXE communation

Recommended Posts

WinClose(), ProcessClose(), ControlSend("WinTitle", "", "!{F4}"), _IEAttach() followed by _IEQuit(), etc.

There are many ordinary ways to close IE that don't involve this suspicious garbage.

:mellow:

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

But it's not malicious! Why can't you believe me? I don't care if it's sounds like it, but it's really not malicious!

Can you help me please?

Forcing IE to close is one thing, causing it to crash is something totally different. The word crash was a direct quote from you.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

I meant quit/exit, I don't know what's the difference.

Anyways, my brother gave me this misson, I have to do this with DLL, I managed to do it, but if I want to tell the DLL to do it from the exe, can I do it?

Share this post


Link to post
Share on other sites

YOU coded this DLL, on a "mission" from your brother, then YOU successfully injected it, yet now you don't know how to make a call to it?

The bovine scat flag is waving furiously...

:mellow:


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

I meant quit/exit, I don't know what's the difference.

Anyways, my brother gave me this misson, I have to do this with DLL, I managed to do it, but if I want to tell the DLL to do it from the exe, can I do it?

If you try just to close a window using a dll, use DestroyWindow() from user32.dll

DllCall("user32.dll","int","DestroyWindow","hwnd",$hWnd)

PS: $hWnd is the window handle


When the words fail... music speaks

Share this post


Link to post
Share on other sites

Come on, I did manage to inject it, but just explain me how to use DllCall on it please?

Can you do it on a inejcted dll?

Share this post


Link to post
Share on other sites

You've already been given an example of how to make a DLL call. Now you come to the next problem None of us have the dll of which you speak, that dll will have certain calls and we don't know what those will be, so I'll go out on a limb here and say that the following probably won't do it

DllCall("MyDLL.dll", int, "CorrectCall")


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

But can you use DllCall on a running dll? (Not like in the same folder of the script or something, it's running)

Share this post


Link to post
Share on other sites

I don't know how you managed to inject that DLL when you are obviously in way over your head.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

I'm using a simple dll injector, can you now help me please?

I hope I'm not annoying you with this stuff, and I know you think it's malicious, but it's not!

Can you please tell me if I can use DllCall on a (running/injected) dll and how?

Thank you guys, I really appreciate it, and sorry for my bad english.

Share this post


Link to post
Share on other sites

Yeah I saw this one already, I searched all the forums for a solution.

The new question is: Can you please tell me if I can use DllCall on a (running/injected) dll and how?

Share this post


Link to post
Share on other sites

But I didn't inject it with autoit!

And I don't know how to call the dll function which is already inside the process!

Share this post


Link to post
Share on other sites

I don't remember if I actually said this or not but unless you know exactly how the function was injected, there's no way you can know how to call it.

There are way too many ways and guessing will not work.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...