-
Notifications
You must be signed in to change notification settings - Fork 1
/
Daemon_x86.exe
71 lines (61 loc) · 3.07 KB
/
Daemon_x86.exe
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
69
70
71
#define _CRT_SECURE_NO_WARNINGS
#include <conio.h>
#include <iostream>
#include <fstream>
#include <ctime>
#include <cstdlib>
#include <Windows.h>
#include <io.h>
#include <fcntl.h>
#include <string>
using namespace std;
int main() {
string file;
_setmode(_fileno(stdout), _O_U16TEXT);
wcout << L" " << endl;
wcout << L" ▓█████▄ ▄▄▄ ▓█████ ███▄ ▄███▓ ▒█████ ███▄ █ " << endl;
wcout << L" ▒██▀ ██▌▒████▄ ▓█ ▀ ▓██▒▀█▀ ██▒▒██▒ ██▒ ██ ▀█ █ " << endl;
wcout << L" ░██ █▌▒██ ▀█▄ ▒███ ▓██ ▓██░▒██░ ██▒▓██ ▀█ ██▒" << endl;
wcout << L" ░▓█▄ ▌░██▄▄▄▄██ ▒▓█ ▄ ▒██ ▒██ ▒██ ██░▓██▒ ▐▌██▒" << endl;
wcout << L" ░▒████▓ ▓█ ▓██▒░▒████▒▒██▒ ░██▒░ ████▓▒░▒██░ ▓██░" << endl;
wcout << L" ▒▒▓ ▒ ▒▒ ▓▒█░░░ ▒░ ░░ ▒░ ░ ░░ ▒░▒░▒░ ░ ▒░ ▒ ▒ " << endl;
wcout << L" ░ ▒ ▒ ▒ ▒▒ ░ ░ ░ ░░ ░ ░ ░ ▒ ▒░ ░ ░░ ░ ▒░" << endl;
wcout << L" ░ ░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░ " << endl;
wcout << L" ░ ░ ░ ░ ░ ░ ░ ░ ░ " << endl;
wcout << L" ░ " << endl;
wcout << L" ░ Calculating 666 " << endl;
wcout << L" " << endl;
wcout << L" (Esc to quit)" << endl;
wcout << endl;
char Wait = _getch();
if (Wait == 27) return 0;
wcout << L"(Leave blank for none)"<<endl;
wcout << L"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) {
Sleep(0);
Daemon = (rand() % 666) + 1;
if (Daemon == 666) {
if(count == 666) count = 0;
count++;
time_t curr_time;
time(&curr_time);
if(count < 10) wcout << " 00"<< count << " ::: " << Daemon << " ::: " << asctime(localtime(&curr_time)) << endl;
else if(count < 100) wcout << " 0"<< count << " ::: " << Daemon << " ::: " << asctime(localtime(&curr_time)) << endl;
else wcout << " "<< 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.
else system("pause"); // Any other key pauses.
}
}
}
TheBeast.close();
return 0;
}