@echo off
title Exploit file cleanup - MFSiNC

if exist "hl2.exe" (
	cd "garrysmod"
)

if not exist steam.inf (
	echo.
	echo You're running this from the wrong place!
	echo.
	echo Put this file in your garrysmod folder, either server or client, and re-run it.
	echo.
	echo.
	pause
	exit
)

echo.
echo This will remove the files used in the exploit/virus.
echo.
echo To see exactly what will be removed, open this batch file with Notepad.
echo.
pause

echo Cleaning..

taskkill /F /IM hl2.exe > nul
taskkill /F /IM srcds.exe > nul



::Files, clientside
if exist "engine_win32.dll" (
	attrib -h "engine_win32.dll"
	del /F /Q "engine_win32.dll"	
)

if exist "materials\cooltexture.vtf" (
	del /F /Q "materials\cooltexture.vtf"
)

if exist "bin\game_shader_generic_engine.dll" (
	attrib -h "bin\game_shader_generic_engine.dll"
	del /F /Q "bin\game_shader_generic_engine.dll"
)

if exist "download\engine_win32.dll" (
	attrib -h "download\engine_win32.dll"
	del /F /Q "download\engine_win32.dll"
)

::Dir
if exist "download\cfg" (
	RD /S /Q "download\cfg"
)



::Files, serverside
if exist "lua\autorun\server\default.lua" (
	attrib -h "lua\autorun\server\default.lua"
	del /F /Q "lua\autorun\server\default.lua"
)



echo.
echo Done.
echo.
pause