Thread: making a stealthy win32 console application?

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    25

    making a stealthy win32 console application?

    is there a way to make a win32 console application (the one with the dos wondow) run "silently", so you cant tell that it is running? or do i have to use a win32 application or something else?
    anyhelp is very appreciated

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    I dont see how you can make a console app run "silently" since a console app requires a console.

    If you want to write a simple app that cant be seen, just use the WinMain() entry point instead of main().

  3. #3
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    An example:

    Code:
    #include <windows.h>
    
    int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, 
        LPSTR lpCmdLine, int nCmdShow)
    {
        // No console shown
        return 0;
    }

  4. #4
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    Also note that you can still tell this type of app is running, because it shows up in the task manager. If you want the app to run in a way where you cant tell it's running at all (not even in task manager) then that is quite a bit harder to do. I also hesitate on showing people how to do this, because there aren't that many legitamate reason for writing this type of application (mostly just viruses/trojans).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Adding a console window to a Win32 app
    By VirtualAce in forum Game Programming
    Replies: 7
    Last Post: 02-01-2009, 01:09 PM
  2. Subject:How to create a C# console application?
    By Adock in forum C# Programming
    Replies: 5
    Last Post: 09-03-2008, 05:58 PM
  3. Using System.ServiceProcess in console application
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 06-18-2008, 11:36 PM
  4. Win32 console, xp,nt,2000 only?
    By Ash1981 in forum C Programming
    Replies: 8
    Last Post: 01-01-2006, 03:09 AM
  5. Running a console application
    By maxorator in forum C++ Programming
    Replies: 4
    Last Post: 10-03-2005, 04:23 AM