How to Make a Batch Antivirus

Hey guys I gave you a temporary virus code now here's one for a batch antivirus which detects batch viruses and scans batch files

STEP #1:-OPEN NOTEPAD

STEP #2:-TYPE IN EITHER OF THESE TWO CODES(I'VE TRIED BOTH)


  • CODE 1
@echo off
title Antivirus
echo Antivirus
echo created by your name
:start
if exist virus.bat goto infected
if not exist virus.bat goto clean
cd C:\Windows\system32
:infected
echo warning virus detected
del virus.bat
pause
goto start
:clean
echo System secure!
pause
exit 


  • CODE 2[If the code does not run, try replacing {} braces by these parantheses ()]
@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

now save this file by any name with the extension .bat
and now Run it in cmd

Comments

Popular posts from this blog

The Windows 10 Fall Creator's Update: What's new?

Are you safe from Meltdown and Spectre?

Hackintosh- installation