![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Feb 2005
Posts: 37
Rep Power: 0
![]() |
need serious help
hey guys, how do i make a program to run like a process in the system everytime the computer starts? And is it possible to make the program invisible?
|
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,223
Rep Power: 5
![]() |
The techniques depend on operating system.
If you're developing for windows NT/2000/XP, partial answers follow. You need to develop a windows service (a particular type of program, using specific programming methods so it behaves correctly). Once you've developed such an application, it is necessary to install it so it starts during system startup (and that requires administrator privileges on the target machine). There are several techniques to make a program "invisible", depending on what you mean by "invisible". If your meaning is that it has windows but none are visible, then the technique is easy: one attribute of windows is whether it is visible or not. If your meaning is not appearing on the task bar, or not appearing in the process list (eg through Task Manager) the techniques are a little more difficult. |
|
|
|
|
|
#3 |
|
Programming Guru
![]() |
It looks like he might want to develop some kind of malware.
__________________
|
|
|
|
|
|
#4 |
|
Programmer
Join Date: May 2006
Location: Bathroom
Posts: 43
Rep Power: 0
![]() |
yep that is what he wnats, create a malware
|
|
|
|
|
|
#5 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
You don't know that. While these tactics are routinely employed by malware authors, they also have legitimate uses - otherwise there wouldn't be any way to do them.
|
|
|
|
|
|
#6 |
|
Programmer
Join Date: Feb 2005
Posts: 37
Rep Power: 0
![]() |
well no im not writing malware. Ive just always wondered how to do that
|
|
|
|
|
|
#7 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,223
Rep Power: 5
![]() |
Hope so, ProjectX. I would personally describe malware authors as scum of the earth, except that scum has some redeeming characteristics.
|
|
|
|
|
|
#8 |
|
Professional Programmer
![]() Join Date: Sep 2005
Posts: 419
Rep Power: 4
![]() |
>I would personally describe malware authors as scum of the earth
Scum is actually considered a delicacy in some countries. Maybe we should send malware authors on a one way trip to one of them. ![]() ... But don't start that policy until I perform a permanent delete on all of my virus code trees. :p >Ive just always wondered how to do that Well, let's assume the two most common systems. In a POSIX environment you would implement a daemon by forking a new process and killing the parent. This is assuming a legitimate daemon because it's still user visible and killable. To make a daemon completely invisible is much harder, especially if you want to hide it from a superuser. Since that's crossing the boundaries of malware, I'll refrain from explaining the process. The meat of a basic daemon would be something like this:if ( fork() == 0 ) {
fclose ( stdin );
fclose ( stdout );
for ( ; ; ) {
/* Perform payload after a certain interval forever */
payload ();
sleep ( interval );
}
}
else {
/* Kill parent process */
exit ( 0 );
}![]()
__________________
Even if the voices aren't real, they have some pretty good ideas. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Good game programming books? Serious question | gardon | C++ | 9 | Mar 2nd, 2005 9:49 PM |