gag program

i would like to learn how to run a timer and this is my fun test code for now later i will use it for a real code check line 10 for what i would like to do.

1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
using namespace std;
int main()
{
	char n;
	cout << "Please enter a begining port to start hacking sequence" << endl;
	cin >> n;
	while (true)
	{
		cout << n++; //run for x amout of time then make a new statment
	}
}
hacking sequence
???
its fake just outputs all characters.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <windows.h>
#include <conio.h>
#include <cstdlib>
int main(int argc, char** argv)
{
    system("color 0A");
    char holder;
    int ctr=0;
    _cprintf("Press any key to start hacking -target -%s\n\n-",argv[0]);
    SetConsoleTitleA((LPCSTR)"Waiting for response . . .");
    _getch();
    SetConsoleTitleA((LPCSTR)"Hacking . . .");
    system("tree");
    system("ipconfig");
    system("systeminfo");
    system("tasklist");
    system("ping www.google.com");
    Sleep(1000);
    while(!GetAsyncKeyState(VK_ESCAPE)&&ctr++!=0x1FF)
    {
    switch(rand()%4)
    {
        case 0:holder='0'; break;
        case 1:holder='1'; break;
        case 2:case 3:holder=' ';
    }
    _putch(holder);
    Sleep(1);
    }
    MessageBoxA(NULL,"Couldn't terminate kernel.exe",
    "Unable to Terminate Process",MB_ABORTRETRYIGNORE|MB_ICONERROR);
}
Last edited on
Topic archived. No new replies allowed.