Ok, I'm going to say flat out right now, I need help writing a small malicious program, lol.. I'm not going to beat around the bush or lie.. that's what I'm doing. Not a major one... the idea of what it does is very simple.. I just dont know how to do it exactly...
If I am not allowed to do this on the forum, I didn't know, please delete this thread and my account and I will be on my way
What I want the program to do:
1) put itself in the registry to run on start up
2) make copies of itself with random file names (so it can copy itself indefinately)
3) run itself over and over (I know how to do this part)
..so.. basically a brazillion, small sized, .exe files get copied all over your hard drive... and at the same time, the program runs it self over and over.. thus, freezing the computer ... when you restart... its stilll there..
It wouldn't be too hard to get rid of, but I um.. lets just say there's a certain person.. that I would like to cause a bit of stress... It's a revenge thing..
Anywho.. this is what I have so far.. the copying code will probably be changed, and the last part to add it to the registry was taken from another site.. dunno how it works at all!
Code:
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <cstdlib>
using namespace std;
int main()
{
cout << "ERROR" << endl;
system("copy test3.exe test3copy.exe");
return 0;
}
/*
//follow is suppose to add the program to the registry
LONG lnRes = RegOpenKeyEx(
HKEY_LOCAL_MACHINE,
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",
0L,KEY_WRITE,
&hKey
);
lstrcpy( (char *) szFilePath , LPCTSTR(m_strFileName) );
GetDlgItemText( IDC_KEYNAME, sKeyName );
if( ERROR_SUCCESS == lnRes )
{
lnRes = RegSetValueEx(hKey,
LPCTSTR( sKeyName ),
0,
REG_SZ,
szFilePath,
REG_SZ );
}
*/
Have a great day