Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Echo Off&Title S.M.A.R.T
- :: S.M.A.R.T - Simplified Malware Analisis and Removal Tool
- :: This Script Removes FakeUSB Malware
- :: TR/Crypt.Xpack.5314 - Worm.Gamarue.B - W32/Wauchos.LB!tr - Backdoor.Win32.Androm
- :: https://www.virustotal.com/es/file/b832b82aa3656c9e2b62d693d9ee7c8b64bd1bd058b50506194eb9fa8ee9182a/analysis/1376005565/
- :: Version: 1.0 (08-08-2013) Coded by SmartGenius
- :Vars
- Set "RunKey=HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run"
- Set "Process=wupdmgr.exe"
- :Main
- Cls&Echo.
- Echo. This Script Removes FakeUSB Malware - Coded by SmartGenius
- Echo. Please Wait...
- For %%A in (Kill, CleanTemp, RegKey, Removable) do (Call :%%A)
- Echo.
- Echo. Job Finished
- Start "" Explorer
- Echo.&Pause&Exit
- :Kill
- Echo. Checking if process is currently running...
- Tasklist|find "%Process%" >nul 2>&1
- If %Errorlevel% EQU 0 (
- Echo. Process "%Process%" ... is Running^!
- Taskkill /F /Im %Process% >nul 2>&1
- Echo. Process "%Process%" ... Terminated^!
- ) else (Echo. Echo. Process:%Process% ... is not Running.)
- Taskkill /F /Im explorer.exe >nul 2>&1
- Goto :Eof
- :Regkey
- Echo. Analyzing Run Registry keys
- For /f "tokens=1,2,3" %%F in ('REG QUERY %RunKey%^|find ".com"') do (
- Echo.&Echo. Entry: %%F&Echo. File : %%H
- Set "VFile=%%H"
- Set "RKey=%%F"
- )
- Echo. Deleting Key : "%RKey%"
- REG DELETE %Runkey% /v %RKey% /f >nul 2>&1
- Echo. Deleting File: "%VFile%"
- Del /F /Q "%VFile%" >nul 2>&1
- Goto :Eof
- :CleanTemp
- Echo. Deleting Temporaly Files and Folders
- Pushd %temp%
- For /f "tokens=1" %%D in ('DIR /B /A:D') do (RD /S /Q %%D >nul 2>&1)
- Del /f /q *.* 2>nul
- Popd
- Goto :Eof
- :Removable
- Echo. Analyzing removable drives
- For %%U in (E,F,G,H,I,J,K,L,M,N,O) do (
- If Exist "%%U:\Thumbs.db" (
- Echo. Deleting malware from %%U:
- Ping -n 1 127.0.0.1 >nul
- Pushd %%U:
- Attrib -r -s -h -a *.* >nul
- For %%X in (lnk, xxc, ini, inf, db) do (Del /f /q *.%%X >nul 2>&1)
- Pause
- Echo. Restoring Files...
- Cd "ÿ"
- Move /Y * %%U:\ >nul
- For /f "tokens=*" %%D in ('dir /b /a:d') do (Move /Y "%%D" %%U:\)
- Cd\&Rd "ÿ" /S /Q >nul 2>&1
- Popd
- ))
- Goto :Eof
Advertisement
Add Comment
Please, Sign In to add comment