well i have completed my C language course
now want to write a very very simple anti virus code
what should be my approach?
thanks in advance
anti virus
Started by golden eye, Jan 25 2009 11:57 AM
8 replies to this topic
#1
Posted 25 January 2009 - 11:57 AM
|
|
|
#2
Posted 25 January 2009 - 12:14 PM
Is it really possible to do a "simple" anti-virus code, I suppose you'd need a big list of viruses, where they install too, what their file name is, then read from this list, scan directory if it exists, delete.... doesn't sound so simple really..
#3
Posted 25 January 2009 - 05:05 PM
Do you know how to monitor processes and file access yet? If not, you will have a hard time doing anything real time. In that case, you are limited to scanning files for database matches.
#4
Posted 25 January 2009 - 06:58 PM
thanks to all
i think scannig a directory is best suited for me:sad:
but in that case please let me know how to do that using C?
thanks in advance
i think scannig a directory is best suited for me:sad:
but in that case please let me know how to do that using C?
thanks in advance
#5
Posted 25 January 2009 - 07:18 PM
It will depend somewhat on the operating system you are using, as well as the libraries you have available. You need to get a list of all the files in a folder, and then open them and read their contents, checking for certain strings of characters. Are you familiar with file access in C?
#6
Posted 26 January 2009 - 11:21 AM
yup.. me familiar with file access in C
"You need to get a list of all the files in a folder, and then open them and read their contents, checking for certain strings of characters." how!i m distressed:crying:
"You need to get a list of all the files in a folder, and then open them and read their contents, checking for certain strings of characters." how!i m distressed:crying:
#7
Posted 26 January 2009 - 11:30 AM
C does not have the concept of a folder. You will need to learn the Windows API to get the list of files in a given folder.
Once you have a list of files, you can open each one. You will have to use string manipulation routines to (attempt to) locate virus substrings within the string.
Once you have a list of files, you can open each one. You will have to use string manipulation routines to (attempt to) locate virus substrings within the string.
#8
Posted 27 January 2009 - 07:25 AM
thanks for your advice
i need some more suggestions about Windows API :o
i need some more suggestions about Windows API :o
#9
Posted 27 January 2009 - 09:16 AM


Sign In
Create Account

Back to top









