How to Make a Batch Antivirus

Do you want to make your own Batch antivirus that can detect Batch viruses and scan Batch files? There's a little bit complicated step for this.

  1. 1
    Open Notepad


  2. 2
    Type the code at the next step:

  3. 3
    @echo off

  4. 4
    color cb

  5. 5
    title Batch Antivirus

  6. 6
    cls

  7. 7
    echo ===============

  8. 8
    echo [ Batch-Master]

  9. 9
    echo ===============

  10. 10
    echo If There's no message ,You are protected.

  11. 11
    set /p a=Enter a batch file to scan:

  12. 12
    for /f %%x in (

  13. 13
    'findstr /i /m "virus r.i.p byebye HaHaHa Hacked Hack" %a%.bat'

  14. 14
    ) do (

  15. 15
    if /i %%x equ %a%.bat (

  16. 16
    for /f %%z in (

  17. 17
    'findstr /i /b /m "tskill del copy shutdown ipconfig ren reg" %a%.bat'

  18. 18
    ) do (

  19. 19
    if /i %%z equ %a%.bat (

  20. 20
    cls

  21. 21
    echo Virus Detected!!

  22. 22
    echo %a%.bat was deleted....

  23. 23
    del %a%.bat & pause >nul

  24. 24
    )

  25. 25
    )

  26. 26
    )

  27. 27
    )

  28. 28
    pause >nul

  29. 29
    Save this code as "antivirus.bat"

  30. 30
    Open this batch file.



Tips:

  • Please test this antivirus,except for the extremely harmful batch files that your real antivirus can detect.

  • If there's a strange Batch file ,scan it using this antivirus.

  • If there's error in the code, please fix my code.

Warning:

  • Note: it can only help your computer to detect ONLY Batch viruses..

  • please install a real antivirus like Norton, Avira ,AVG, etc.

0 Comments
Disqus
Fb Comments
Comments :

0 comments:

Post a Comment