Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

a7h3iz7

Trojan Horse

This topic is 5876 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have these two programming question about Trojan Horse. 1) Some trojan can read every key pressed by a user. The trojan program can read keypressed even though it is running in the background. How can I do this? 2) Some trojan can output random character. For example when you are typing in notepad, suddenly the trojan output random characters that you have not type. How can I do this? For (1), I have no idea, but for (2), I guess that the trojan use some function like notepad_handle=GetGlobalWindow(xxx) to get the notepad handle and then SetWindowText(notepad_handle,random_str). I'm programming in Visual C++ so please send Visual C++ code sample if you want to help. I'll appreciate any help. [edited by - a7h3iz7 on August 17, 2002 2:06:00 PM]

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
What are you trying to do? a virus or something? In any case, I bet anyone wants to help you with it (in gamedev.net)

Share this post


Link to post
Share on other sites
For just getting key presses, a simple GetAsyncKeyState() will work if the application is in the background.

For sending text to a window, you have the right idea. Once you find the right window (using any of the multitude of finding window commands, eg GetForegroundWindow, FindWindow, etc.) You can start sending messages to it using Post/SendMessage at your own will. So WM_SETTEXT would work, WM_KEYDOWN, etc.

Freeware development:
http://www.ruinedsoft.com/

Share this post


Link to post
Share on other sites
Is it just me, or is there clearly malicious, not-game development going on here?

Idea for a new forum:

Sociopath: everything you ever wanted to know about being a 1337 unproductive cyber troll

Share this post


Link to post
Share on other sites
I suppose that you''re right but it seems to me that if he had a legitimate purpose he would have asked the question in a way that better suites that purpose and not basicaly "How does a trojan work?"

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You''re a moron. No offense.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!