hi, so i want to make a "virus" prank on my friends(no other use, i promise), so i was thinking about making a direct download link and make them download a program that says,"n**** was here! be carefull of viruses bro", i got the program to work, nice, now heres my problem, how can i make my program to open itself automatically once its downloaded, or once a specific app has been launced?
any info would be appreciated!!
-navilgameboy
Nothing will automatically open once downloaded. A program that's not already running can't check to see if the computer has finished downloading itself, right? To make the program open the way you envision, you'll need ANOTHER program that will open it.
My recommendation (Hopefully I'm not fueling a troll), make a program that opens that program with a specific condition (so that it can open as often as you want). Place this second program in the startup folder. On the next restart, it'll open and can open the first program as needed.
You have lots of options of how to do this, the problem is that you'll have to get him to first either, open the executable (which then it can do anything you programmed it to, including what I mentioned before), or install the file (which you could make an installation to put one program in the startup folder and the actual virus where ever you want). Then the installer could restart the computer.
@zapshe
but how do i make the other program open itself so it can open the main program? what do you mean by "place the program in the startup folder" if i do it, itl only work in my pc (so it opens it on startup in my pc) not on others, or???
I know of a few simple ways.
you can drop the file into an automatic start place. This is probably heavily monitored by the virus protection software.
you can rename it as .scr instead of exe and make it the current screen saver. This is actually a useful hack, eg your 'screen saver' can grant access to the machine's disks even if the machine is logged out; you can use this to give extra limited access to something on a demo machine as well.
you can put a registry entry in to make it run
but getting it on their machine, without using 'black arts' ?? That is tricky these days. About all I can think of is a trojan. You could write some 'cool little program' for them... something like this:
pseudo code
if argv[0] == name1
do cool demo program for buddy();
system(copy name1 c:\...\startup\name2.exe
else
prankcode();
so when it starts in startup, with its new name, it triggers the prank code.