Guest_imported
New member
- Jan 1, 1970
- 0
I just started to read about software security and got this exercise which i haven't been able to solve yet...can someone help:-( I am not a programmer yet...
******************************************************
#include <iostream>
main()
{
char command[40];
int time_of_day;
const bool ever = 1;
for ( ;ever; )
{
cin >> time_of_day >> command;
cout << "Command was " << command << " at time " << time_of_day << endl;
}
}
If I try the following input
13 report
13 shoot-to-kill
15 shoot only if they shoot first
12:00 fire
How can we perform a denial of service attack on this server? This same error was present in NT4, prior to service pack 2.
******************************************************
#include <iostream>
main()
{
char command[40];
int time_of_day;
const bool ever = 1;
for ( ;ever; )
{
cin >> time_of_day >> command;
cout << "Command was " << command << " at time " << time_of_day << endl;
}
}
If I try the following input
13 report
13 shoot-to-kill
15 shoot only if they shoot first
12:00 fire
How can we perform a denial of service attack on this server? This same error was present in NT4, prior to service pack 2.