Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How do some viruses run their threads without appareaning in the task manager?

How do some viruses run their threads without appareaning in the task manager?

Scheduled Pinned Locked Moved C / C++ / MFC
performancequestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Joseph Marzbani
    wrote on last edited by
    #1

    I've newly noticed that there's an unwanted activity among processes running on my computer that creates an "autorun.inf" and an exe named "khg.exe" in every removable memory attached to the computer. When I monitored the running processes, I found they're created by "Windows Explorer" !!! Ofcourse I can't accuse Microsoft :laugh: , but I can't understand, how it's possible to run a thread through another processes? :wtf: I know the other processes, they are safe and sound :)

    Thank you masters!

    A 1 Reply Last reply
    0
    • J Joseph Marzbani

      I've newly noticed that there's an unwanted activity among processes running on my computer that creates an "autorun.inf" and an exe named "khg.exe" in every removable memory attached to the computer. When I monitored the running processes, I found they're created by "Windows Explorer" !!! Ofcourse I can't accuse Microsoft :laugh: , but I can't understand, how it's possible to run a thread through another processes? :wtf: I know the other processes, they are safe and sound :)

      Thank you masters!

      A Offline
      A Offline
      Adam Roderick J
      wrote on last edited by
      #2

      Actually it is possible to run a our thread in a another process using CreateRemoteThread, that is something which is related to code injection. And if we consider about processes run without shown in the Task Manger is actually done with the help of a technique called API Hooking(API Hooking (LoadLibrary)[^]). In task Manager every process is updated shown using PSAPI, if we hook those API, it will possible to change the behaviour of task manager, even you can do that using API hooking technique.

      Величие не Бога может быть недооценена.

      modified on Thursday, August 27, 2009 3:10 AM

      J 1 Reply Last reply
      0
      • A Adam Roderick J

        Actually it is possible to run a our thread in a another process using CreateRemoteThread, that is something which is related to code injection. And if we consider about processes run without shown in the Task Manger is actually done with the help of a technique called API Hooking(API Hooking (LoadLibrary)[^]). In task Manager every process is updated shown using PSAPI, if we hook those API, it will possible to change the behaviour of task manager, even you can do that using API hooking technique.

        Величие не Бога может быть недооценена.

        modified on Thursday, August 27, 2009 3:10 AM

        J Offline
        J Offline
        Joseph Marzbani
        wrote on last edited by
        #3

        I really thank you for your answer; you're probably a good virus writer ;) But I actually meant to know if there's anyway to write a DLL or something and force windows explorer to load and run it when OS starts. I guess it should be involved with registry some how.

        A D 2 Replies Last reply
        0
        • J Joseph Marzbani

          I really thank you for your answer; you're probably a good virus writer ;) But I actually meant to know if there's anyway to write a DLL or something and force windows explorer to load and run it when OS starts. I guess it should be involved with registry some how.

          A Offline
          A Offline
          Adam Roderick J
          wrote on last edited by
          #4

          I hardly wrote any virus program :), but yes wrote few antivirus patches. :) Just add your program path to the below key. Which enable your program to start at StartUp of Windows login. HKLM\Software\Microsoft\Windows\CurrentVersion\Run.

          Величие не Бога может быть недооценена.

          1 Reply Last reply
          0
          • J Joseph Marzbani

            I really thank you for your answer; you're probably a good virus writer ;) But I actually meant to know if there's anyway to write a DLL or something and force windows explorer to load and run it when OS starts. I guess it should be involved with registry some how.

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            Jusef Marzbany wrote:

            But I actually meant to know if there's anyway to write a DLL or something and force windows explorer to load and run it when OS starts.

            With a DLL, not directly. You'd need to use Rundll32.exe to get it going. If you already had an EXE, then yes. In either case, the registry would be involved.

            "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups