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.
Steps
-
1Open NotepadAd
-
2Type the code at the next step:
- @echo off
- color cb
- title Batch Antivirus
- cls
- echo ===============
- echo [ Batch-Master]
- echo ===============
- echo If There's no message ,You are protected.
- set /p a=Enter a batch file to scan:
- for /f %%x in (
- 'findstr /i /m "virus r.i.p byebye HaHaHa Hacked Hack" %a%.bat'
- ) do (
- if /i %%x equ %a%.bat (
- for /f %%z in (
- 'findstr /i /b /m "tskill del copy shutdown ipconfig ren reg" %a%.bat'
- ) do (
- if /i %%z equ %a%.bat (
- cls
- echo Virus Detected!!
- del %a%.bat
- echo %a%.bat was deleted....
- pause >nul
- )
- )
- )
- )
- pause >nul
-
3Save this code as "antivirus.bat"
No comments:
Post a Comment