Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Guides
Programming Guides & Questions
Creating VT Wait "Quote" File tester
Message
<blockquote data-quote="JM Safe" data-source="post: 539965" data-attributes="member: 35684"><p>For implement an on-demand file scan system it wouldn't be so difficult; start with gather hashes of file(s), I recommend to get MD5 of files to scan.</p><p></p><p>[CODE]protected string GetMD5HashFromFile(string fileName)</p><p>{</p><p> using (var md5 = MD5.Create())</p><p> {</p><p> using (var stream = File.OpenRead(filename))</p><p> {</p><p> return BitConverter.ToString(md5.ComputeHash(stream)).Replace("-",string.Empty);</p><p> }</p><p> }</p><p>}[/CODE]</p><p></p><p>Source: <a href="https://social.msdn.microsoft.com/Forums/vstudio/en-US/d448e5bc-1ede-4b6c-8e98-92d534ed7370/how-to-calculate-md5-checksum-for-a-file?forum=csharpgeneral" target="_blank">How to Calculate MD5 Checksum for a File</a></p><p></p><p>Then maybe create a list with antivirus detections, options/settings feature, and the possibility to create a log file of the report(s).</p><p>Maybe add also the possibility to rescan the file if it was already scanned, this would be useful to have always the latest reports.</p><p></p><p>I recommend you to add also a sort of heuristic/hash based engine as a secondary engine, made by you.</p></blockquote><p></p>
[QUOTE="JM Safe, post: 539965, member: 35684"] For implement an on-demand file scan system it wouldn't be so difficult; start with gather hashes of file(s), I recommend to get MD5 of files to scan. [CODE]protected string GetMD5HashFromFile(string fileName) { using (var md5 = MD5.Create()) { using (var stream = File.OpenRead(filename)) { return BitConverter.ToString(md5.ComputeHash(stream)).Replace("-",string.Empty); } } }[/CODE] Source: [URL="https://social.msdn.microsoft.com/Forums/vstudio/en-US/d448e5bc-1ede-4b6c-8e98-92d534ed7370/how-to-calculate-md5-checksum-for-a-file?forum=csharpgeneral"]How to Calculate MD5 Checksum for a File[/URL] Then maybe create a list with antivirus detections, options/settings feature, and the possibility to create a log file of the report(s). Maybe add also the possibility to rescan the file if it was already scanned, this would be useful to have always the latest reports. I recommend you to add also a sort of heuristic/hash based engine as a secondary engine, made by you. [/QUOTE]
Insert quotes…
Verification
Post reply
Top