A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

Feels so good to get back into C++

1.1k views · started by 323 ·
#1
Feels so good to get back into C++
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:

#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;
}
[/1024]


swaggity swag viruses here we come
#2
wow that's pretty douch-y. you're so cool because you can cause people misery
#3
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:

#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;
}
[/1024]


swaggity swag viruses here we come


Yeah I don't mess with viruses they can get you in more trouble then their worth
#4
nice job EDITING YOUR POST!
#5
Use wrote:
nice job EDITING YOUR POST!


use
#6
It used to say something like "swaggity swag kill a fag"
or something lol
#7
I thought we had a programming forum.

Oh wait.
#8
Swaggity swag look at this cool new source

#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.";
}
}


Anyway, can't post any source after this, sorry guys :C
#9
Moving this because c0ffin can't do his job. :P
#10
Sorry. I've been really busy lately and I get on and look for major things and then get off and either sleep or go to the studio.
#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.
#12
Although this should go without saying, this is by no means a virus/malware.
#13
Although this should go without saying, this is by no means a virus/malware.


import socket
print(socket.gethostname())
#14
Zachafer wrote:
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.


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.

Although this should go without saying, this is by no means a virus/malware.


Yeah, obviously it isn't yet lol
#15
Lol exactly, it's not a virus yet. It's the beginnings of a virus.


Nah.
#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.
#17
Enjoi wrote:
I feel it's best not to discuss the creation of a virus period, if you're trying to avoid jail, which you are.


Nah.
#18
Nah.


k
#19
Enjoi wrote:
k


Nah