Anti Malware

I have made an Anti Malware bluff. It doesn't do anything, but I bet I could fool my friends into thinking it works. For some reason it skips to the end of the program where the termination countdown is. I don't know why. Here is my code and thanks for any help:


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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
#include <iostream>
using namespace std;
#include <chrono>      //makes sleep command possible
#include <thread>      //makes sleep command possible


int a = 8;
int b = 3;
int c = 5;
int d = 0;
int e = 6;
int f = 5;

int happy = 1;
int sad = 10000;
int derp;

int main()
{
	goto YAY;
	system ("color 2");
	cout << "This is a program I made that goes through your computer and will find any malware software or tracking cookies"<<endl;
	cout << "and will tell you the file name of the walware. This program does not perform any action on your computer. Hit enter to begin."<<endl;
	cin.get();
	system("CLS");
	  
	  
	  PointA:
	   cout << rand() % 10;
	     happy = happy + 1;

		 while (happy < sad)
		 {  goto PointA; }
	
		 system("CLS");
		 cout << a;
	  std::this_thread::sleep_for(std::chrono::milliseconds(1000)) ;
	  system("CLS");

	  happy = 1;
	 
      PointB:
	    cout << rand() % 10;
	      happy = happy + 1;


	  if (happy < sad)
	  { goto PointB; }

	  system("CLS");
	  cout << a;
	  cout << b;
	  std::this_thread::sleep_for(std::chrono::milliseconds(1000)) ;
	  system("CLS");


	  happy = 1;
	 
      PointC:
	    cout << rand() % 10;
	      happy = happy + 1;


	  if (happy < sad)
	  { goto PointC; }

	  system("CLS");
	  cout << a;
	  cout << b;
	  cout << c;
	  std::this_thread::sleep_for(std::chrono::milliseconds(1000)) ;
	  system("CLS");


	  happy = 1;
	 
      PointD:
	    cout << rand() % 10;
	      happy = happy + 1;


	  if (happy < sad)
	  { goto PointD; }

	  system("CLS");
	  cout << a;
	  cout << b;
	  cout << c;
	  cout << d;
	  std::this_thread::sleep_for(std::chrono::milliseconds(1000)) ;
	  system("CLS");



	  happy = 1;
	 
      PointE:
	    cout << rand() % 10;
	      happy = happy + 1;


	  if (happy < sad)
	  { goto PointE; }

	  system("CLS");
	  cout << a;
	  cout << b;
	  cout << c;
	  cout << d;
	  cout << e;
	  std::this_thread::sleep_for(std::chrono::milliseconds(1000)) ;
	  system("CLS");



	  happy = 1;
	 
      PointF:
	    cout << rand() % 10;
	      happy = happy + 1;


	  if (happy < sad)
	  { goto PointF; }

	  system("CLS");
	  cout << a;
	  cout << b;
	  cout << c;
	  cout << d;
	  cout << e;
	  cout << f;
	  std::this_thread::sleep_for(std::chrono::milliseconds(3000)) ;

	  system("CLS");
	  system("color 0");

	  YAY:
	  derp == rand() % 10;
	  if ((derp == 1) || (derp == 2))
	  {  cout << "Over 100,000 files searched. No malware detected. 2 tracking cookies found and removed: Low danger. You are welcome!"<<endl;  
	  cin.get();  }

	  if ((derp == 3) || (derp == 4))
	  { cout << "Over 105,000 files searched. One trojan detected! Removing..."<<endl;  
	  std::this_thread::sleep_for(std::chrono::milliseconds(3000)) ;
	  system("CLS");
	  cout << "Trojan removed! In the future be more careful when visiting odd web sites or clicking on ads. All threats have been removed. Have a good day!"<<endl; 
	  cin.get(); }

	  if ((derp == 5) || (derp == 6))
	  { cout << "Over 110,000 files searched. No malware detected. 1 tracking cookies found and removed: Low Danger. You are welcome!"<<endl;  
	  cin.get();
	  system("CLS"); }

	  if ((derp == 7) || (derp == 8))
	  { cout << "Over 110,00 files searched. 17 tracking cookies found and removed: Threats are removed. You are welcome!"<<endl;
	  cin.get();
	  system("CLS"); }

	  //this is the end of the program and it terminates with a timer


	  cout << "The program will now terminate in..."<<endl;
	  std::this_thread::sleep_for(std::chrono::milliseconds(2000)) ;


	  cout << "5"<<endl;
	  std::this_thread::sleep_for(std::chrono::milliseconds(1000)) ;
	  cout << "4"<<endl;
	  std::this_thread::sleep_for(std::chrono::milliseconds(1000)) ;
	  cout << "3"<<endl;
	  std::this_thread::sleep_for(std::chrono::milliseconds(1000)) ;
	  cout << "2"<<endl;
	  std::this_thread::sleep_for(std::chrono::milliseconds(1000)) ;
	  cout << "1"<<endl;
	  std::this_thread::sleep_for(std::chrono::milliseconds(1000)) ;
	  cout << "0"<<endl;



	return 0;

}
Last edited on
Topic archived. No new replies allowed.