Make virus hidden folders visible

This was an old problem back to 2006-2007 when the famous Trojan:WinNT/Sality was rocking the Windows machines by making “Newfolder.exe” and hiding folders. That time I wrote this script to un-hide those folders.

These days many people are asking me for the same file. so I am sharing that

Just copy paste the code below to a notepad file, save it as “showfile.bat”, copy the file to the virus affected directory and open it. This bat file will ask for pressing enter 2 times and after that u can rescue your folders

echo  OFF
color 97
cls 
echo "--------------------------------------------------------------------------
echo "    ---       ---   ---            ---       ---  ---          ---  ---
echo "   |    |    |   | |     |   |    |    |    |    |   | |   | |    |   |
echo "   |___ |    |___|  ---  |___|    |    |    |--- |___| |   | |--- |--- 
echo "   |    |    |   |     | |   |    |    |    |    |   | |   | |    |  
echo "   |     --- |   |  ---  |   |     ---  ---  --- |   | |   |  --- |   
echo "--------------------------------------------------------------------------                                                        
echo     @ This program will recover back lost folders on your pen-drive.

echo 	@ Deletes virus files that infect your pen-drive.                                                                                     


echo "--------------------------------------------------------------------------
echo		"MI.Isham Mohamed 2007-2013"
echo "--------------------------------------------------------------------------
PAUSE

cls 
echo "--------------------------------------------------------------------------
echo "    ---       ---   ---            ---       ---  ---          ---  ---
echo "   |    |    |   | |     |   |    |    |    |    |   | |   | |    |   |
echo "   |___ |    |___|  ---  |___|    |    |    |--- |___| |   | |--- |--- 
echo "   |    |    |   |     | |   |    |    |    |    |   | |   | |    |  
echo "   |     --- |   |  ---  |   |     ---  ---  --- |   | |   |  --- |   
echo "--------------------------------------------------------------------------

echo "	 Wait while cleaning up your pen-drive.....`

echo "--------------------------------------------------------------------------

dir /b/ad >log.txt 
for /F "delims=,  " %%f in (log.txt) do attrib -r -s -h "%%f"
for /F "delims=,  " %%f in (log.txt) do del /p /f "%%f.exe" 
del log.txt

echo "--------------------------------------------------------------------------

echo "--------------------------------------------------------------------------
PAUSE


cls
echo "--------------------------------------------------------------------------
echo "    ---       ---   ---            ---       ---  ---          ---  ---
echo "   |    |    |   | |     |   |    |    |    |    |   | |   | |    |   |
echo "   |___ |    |___|  ---  |___|    |    |    |--- |___| |   | |--- |--- 
echo "   |    |    |   |     | |   |    |    |    |    |   | |   | |    |  
echo "   |     --- |   |  ---  |   |     ---  ---  --- |   | |   |  --- |   

echo "--------------------------------------------------------------------------                                                                                      


echo "--------------------------------------------------------------------------

PAUSE
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s