Created
December 7, 2016 18:15
-
-
Save pethaniakshay/1e5ab81e1d11671b7c8b56f04bfdcdc4 to your computer and use it in GitHub Desktop.
Batch file to remove shortcut virus from removable disks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
color 02 | |
echo. | |
echo ========================== | |
echo Folder Shortcut Healer | |
echo ========================== | |
echo. | |
echo. | |
echo CREATED BY AKSHAY PETHANI | |
echo. | |
echo. | |
echo. | |
echo Press any key to continue | |
pause > nul | |
:start | |
echo. | |
echo. | |
echo Enter the infected drive letter (eg. G) | |
echo. | |
set /p drive_letter=Drive letter: | |
IF EXIST %drive_letter%: GOTO process | |
echo. | |
echo. | |
echo Drive '%drive_letter%:\' does not exist! (1: Try again, 0: exit) | |
set /p input=Input: | |
IF %input% == 1 GOTO start | |
IF %input% == 0 exit | |
:process | |
echo. | |
echo !! IGNORE ANY MESSAGE AFTERWARDS !! | |
echo. | |
echo Processing... | |
attrib -h -r -s /s /d %drive_letter%:\*.* | |
del "%drive_letter%:\*.lnk" | |
del /p "%drive_letter%:\*.vbs" | |
del /p "%drive_letter%:\photo\photo.exe" | |
del /p "%drive_letter%:\svchost.exe" | |
echo. | |
echo. | |
echo Healer Job Completed! | |
echo. | |
echo Press any key to exit | |
pause > nul |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment