-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlinux.cpp
68 lines (60 loc) · 3.02 KB
/
linux.cpp
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <fstream>
#include <ctime>
#include <cstdlib>
#include <fcntl.h>
#include <string>
#include "kbhit.h"
#include "getch.h"
using namespace std;
int main() {
string file;
cout << " " << endl;
cout << " ▓█████▄ ▄▄▄ ▓█████ ███▄ ▄███▓ ▒█████ ███▄ █ " << endl;
cout << " ▒██▀ ██▌▒████▄ ▓█ ▀ ▓██▒▀█▀ ██▒▒██▒ ██▒ ██ ▀█ █ " << endl;
cout << " ░██ █▌▒██ ▀█▄ ▒███ ▓██ ▓██░▒██░ ██▒▓██ ▀█ ██▒" << endl;
cout << " ░▓█▄ ▌░██▄▄▄▄██ ▒▓█ ▄ ▒██ ▒██ ▒██ ██░▓██▒ ▐▌██▒" << endl;
cout << " ░▒████▓ ▓█ ▓██▒░▒████▒▒██▒ ░██▒░ ████▓▒░▒██░ ▓██░" << endl;
cout << " ▒▒▓ ▒ ▒▒ ▓▒█░░░ ▒░ ░░ ▒░ ░ ░░ ▒░▒░▒░ ░ ▒░ ▒ ▒ " << endl;
cout << " ░ ▒ ▒ ▒ ▒▒ ░ ░ ░ ░░ ░ ░ ░ ▒ ▒░ ░ ░░ ░ ▒░" << endl;
cout << " ░ ░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░ " << endl;
cout << " ░ ░ ░ ░ ░ ░ ░ ░ ░ " << endl;
cout << " ░ " << endl;
cout << " ░ Calculating 666 " << endl;
cout << " " << endl;
cout << " (Esc to quit)" << endl;
cout << endl;
char Wait = getch();
if (Wait == 27) return 0;
cout << "(Leave blank for none)"<<endl;
cout << "Enter file to write to: ";
getline(cin, file);
fflush(stdin);
srand((unsigned)time(0));
ofstream TheBeast(file);
int Daemon = 666;
int count = 0;
while (666) {
Daemon = (rand() % 666) + 1;
if (Daemon == 666) {
if(count == 666) count = 0;
count++;
time_t curr_time;
time(&curr_time);
if(count < 10) cout << " 00"<< count << " ::: " << Daemon << " ::: " << asctime(localtime(&curr_time)) << endl;
else if(count < 100) cout << " 0"<< count << " ::: " << Daemon << " ::: " << asctime(localtime(&curr_time)) << endl;
else cout << " "<< count << " ::: " << Daemon << " ::: " << asctime(localtime(&curr_time)) << endl;
if (TheBeast) TheBeast << Daemon << " ::: " << asctime(localtime(&curr_time)) << endl;
if (kbhit()) {
Wait = getch();
if (Wait == 27) return 0; // Escape key exits.
cout << " Continue... (Esc to quit.)" << endl;
Wait = getch();
if (Wait == 27) return 0;
}
}
}
TheBeast.close();
return 0;
}