i am making a boot sector anti virus in c language.
i have almost made it . i just want you to go through the algorithm and tell me if there is any error or weakness in my algorithm.
here is the algorithm.
1. got the boot sector by absread() in an array.
2. searched for IO.SYS and MSDOS.SYS in that array .
3. if files found then the boot sector is ok.
4. else looked for the non system disk message in that array .
5. if erroe message found then the disk is non system disk .
6. else the disk is infected with the virus.
i welcome any suggestion .