Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

software security bug...C++

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
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 << &quot;Command was &quot; << command << &quot; at time &quot; << 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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top