Hide Programs (processes) in Windows NT taskmanager)

Source: Internet
Author: User

From: http://w-shadow.com/blog/2006/09/21/hiding-from-nt-taskmanager/

 

Here and there, people keep asking-"How do I hide my process in Windows NT/2000/XP ?". Nearly everyone knows how to do that on Windows 95/98, but there is no definite answer for NT-based systems. so today I'll give you a short summary of four methods that can be used to hide your process on NT...

Warning: this information is intended for educational purposes only!

DLL Injection
The simplest ways to hide a process is to have no process basically what you need to do is place your meaningful code in a DLL, inject that DLL in an inconspicuous process (like assumer.exe) and run your code. this can be fairly easily achieved by createremotethread () API function. I have created a sample application & DLL that demonstrate this approach.
Download wshidedll.zip (10 KB, Delphi)

Good: Simplicity, doesn' t affect system stability very much.
Bad: WorksOnlyOn NT.

API hooking
On NT systems process list is often obtained by calling ntquerysysteminformation () API function. if you hook this function, you can make you process invisible to other processes. you can similarly hook process32next and other functions on other Windows versions to achieve the same result. the problem usually is that API hooking is a non-trivial task, so most likely you'll end up looking for premade Libraries... Which are damn expensive.

Good: Depends on hooking method/library. No special considerations for your application (unlike when writing and injecting a DLL ).
Bad: Depends on hooking method/library.
Links:
Description of Some APIs you cocould hook
Hooking winnt/2 k/XP API
Madcodehook Library
Hook-API SDK

Writing a driver
Drivers can do anything, so there surely is a way create a custom driver that will hide your process. there is an example of a driver like that and a program using it here (C and Visual Basic ). apparently there is an internal process list in Windows OS that can be modified by this driver. good luck trying to understand this code

Good: Extremely valid tive.
Bad: Hard to port, messing with OS internals can cause it to crash. Writing a driver is a complex task.

Hacking taskmanager itself
An ingenious way to solve the problem of hiding your process is to delete it from the "processes" tab in Task Manager, literally. the list is a syslistview32 control and you can use sendmessage () to tell it to delete specific items. read the article here: hack Windows Task Manager.

Good: Clever. I didn't realize it cocould be done like that.
Bad: Works only on task manager.

I hope this article was useful to you

Related posts:

  • Writing drivers in Delphi
  • Process memory usage
  • Gtrends for the lazy
  • Two interesting ideas
  • Wskillhung Application
  • How to get the CPU usage of a process
  • Obscure createremotethread Problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.