Return To Message Board
Author Topic:   Cant get md5 to work
hruts posted 10/7/02 8:11 PM    
I cant get md5sum to work with fcheck on win2000. Very frustrating. Does anyone know a solution to this problem? I keep on getting the same errors that look like this:C:\fcheck>fcheck.pl -acs'-' is not recognized as an internal or external command,operable program or batch file.C:\fcheck\fcheck.pl: c:/fcheck/md5sum.exe was unable to readC:/fcheck/testing/diff.exe, or was unable to executeterminating...Thanx in advance
Fabio Lecca posted 1/8/04 4:58 PM     Click here to send email to Fabio Lecca  
hi,i modified the code and it works on windows, hope it helps:sub ExecHash{local($HASHFunc, $filename) = @_;local $filesig; unless ( defined $HASHFunc ) { &Error("invalid command $HASHFunc given"); } if (open (HASHIN, "$HASHFunc \"$filename\"|") ) { $filesig = <HASHIN>; close HASHIN; } unless ( $filesig ) { #&Error("$HASHFunc was unable to read $filename, or was unable to execute\n"); printf("$HASHFunc was unable to read $filename, or was unable to execute\n"); $filesig = "NOCRC"; } # Chop the <CR> off the end, do I trust the chpo function? # depends on the OS... $filesig =~ s/\n$//; return $filesig}byeFabio
Return To Message Board

Back To Intrusion Detection Home Page  | Post New Topic