Thema: Delphi file scanner

Einzelnen Beitrag anzeigen

randy_dom

Registriert seit: 28. Apr 2008
17 Beiträge
 
#1

file scanner

  Alt 28. Apr 2008, 22:37
hi fellows .

I am developing an Anti-Virus software . and i want to have your suggestion and alternative .

so i want you to help ( or give me an alternative ) to how to search an Hex Value in a File .

i can do that in 2 ways :

1- Dump the File and save the results into a text file in a Temp directory , then use the simple Pos function to search for the Hex Value into this text file as some AV softwares do .

2- Open the File with TMemoryStream , then use a function to convert the Hex Value into the String representation then use the Function Pos to search for the converted String Value .

but what i want is your alternatives , please is there any other suggestions to search for the Hex Value directly into the File without conversion or dumping .


waiting for all your reply .

regards Randy .
  Mit Zitat antworten Zitat