LVAC Posted October 24, 2009 Share Posted October 24, 2009 (edited) This is my small Anti-Virus software, coded for fun Edited October 24, 2009 by Jos link removed Link to comment Share on other sites More sharing options...
Developers Jos Posted October 24, 2009 Developers Share Posted October 24, 2009 Couple of questions: - Why do you include DLL's that also come with the OS like kernel.dll? - Why do you delete each file in the Loop after writing to the LOG file? expandcollapse popupWhile 1 $m = GUIGetMsg() If $m = $GUI_EVENT_CLOSE Then Exit EndIf $filename = FileFindNextFile($start) If @error Then ExitLoop EndIf $count += 1 GUICtrlSetData($prog, $count / $total * 100) GUICtrlSetData($sta, $pth & $filename) If Not StringInStr(FileGetAttrib($pth & $filename), 'D') Then $md5 = HashMD5($pth & $filename) EndIf If StringInStr($db, $md5) Then For $i = 1 To $part[0] If $part[$i] = $md5 Then $vname = $part[$i - 1] EndIf Next GUICtrlSetData($virus, "Threat found!") GUICtrlCreateListViewItem($vname & "|" & $pth & $filename, $list) EndIf FileWriteLine("scan.log", $pth & $filename) $del = FileDelete($pth & $filename) If $del = 0 Then $alrt = MsgBox(4 + 262144 + 16, "Virus Found!", "Location : " & $pth & $filename & @CRLF & @CRLF & "Virus name: " & $vname, "", $gui) If $alrt = 6 Then _RunDOS('DEL ' & '"' & $pth & $filename & '" /F /Q') EndIf EndIf If StringInStr(FileGetAttrib($pth & $filename), "D") Then Scan($pth & $filename) EndIf WEnd EndFunc ;==>Scan Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
JScript Posted October 24, 2009 Share Posted October 24, 2009 (edited) This is my small Anti-Virus software, coded for fun And about: MDF.DLL ?!?!? Searching in google, I found: This MDF.DLL Malware Research Report contains MDF.DLL findings. MDF.DLL Malware details! Got Spyware? Remove it here and download free tools to protect your online Privacy. www.spywaredata.com/spyware/malware/mdf.dll.php Edited October 24, 2009 by Jos link removed http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
LVAC Posted October 25, 2009 Author Share Posted October 25, 2009 (edited) no no! MDF.dll is advapi.dll (a window API dll), I renamed it for fun. I didn't know that it is a malware's dll. Please restore my link! Edited October 25, 2009 by LVAC Link to comment Share on other sites More sharing options...
JScript Posted October 25, 2009 Share Posted October 25, 2009 (edited) no no! MDF.dll is advapi.dll (a window API dll), I renamed it for fun.I didn't know that it is a malware's dll.Please restore my link!You didn't answer the questions of the jos:- Why do you include DLL's that also come with the OS like kernel.dll?- Why do you delete each file in the Loop after writing to the LOG file?All installation of the Microsoft Windows includes those two DLLs!!!Why we have to use the DLLs did you post?This topic should be closed, I already saw several that for little thing were closed... Edited October 25, 2009 by jscript http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
Developers Jos Posted October 25, 2009 Developers Share Posted October 25, 2009 (edited) As I mentioned in the PM: This is not a project that should be shared here for the simple reason you are distributing system DLL's with your script which will cause problems on different OSes and future patches. *click* Edited October 25, 2009 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts