Jump to content

Pc killer program


Addictgamer
 Share

Recommended Posts

DO NOT RUN THIS UNLESS YOU WANT TO KILL YOUR PC.

How it works? overruns an array.

Many noobs make this type of mistake.

#include <iostream>

#include <string>

#include <sstream>

using namespace std;


int a[2];

int temp = 1;

int *temp2;

string buff;

string itos(int i);


int main()

{

	cout << "Killing your pc!\n";


	while (temp == 1)

	{

		for(int i = 1; i > 0; i++)

		{

			a[i] = i;

			temp2 = &a[i];

			buff = itos(*temp2);

			cout << "Killing address: " << buff << endl;

		}

	}


	return 0;

}


string itos(int i) { // convert int to string

 stringstream s;

 s << i;

 return s.str();

}

Link to comment
Share on other sites

I ran it on windows, and dep stopped it before killing windows

I ran it on Linux and it killed my Linux

HAH MOUSE :P

It doesn't kill it, just requires reboot.

Link to comment
Share on other sites

It just fills up your ram with an overrun array, and overwrites existing memory addresses.

Windows stops it with dep, but my linux installation doesn't.

Mouse's does though.

It is the most epic programming fail a noob can do.

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.