├── Deobfuscation.cmd ├── README.md └── obfuscator.cmd /Deobfuscation.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | if "%~1"=="" exit /b 3 | if /i "%~x1" neq ".bat" if /i "%~x1" neq ".cmd" exit /b 4 | if exist "%~n1___%~x1" del "%~n1___%~x1" 5 | for /f "skip=1 delims=" %%L in ('CMD /U /C Type "%~1"') do ( 6 | echo %%L 7 | echo %%L >>"%~n1___%~x1" 8 | ) 9 | pause>nul -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # BatchObfuscator 2 | Obfuscate your batch files to prevent people from stealing code! 3 | To use simply drag and drop on to the desired action. 4 | This tool basically confuses your text editor into think something else! 5 | -------------------------------------------------------------------------------- /obfuscator.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | if "%~1"=="" exit /b 3 | if /i "%~x1" neq ".bat" if /i "%~x1" neq ".cmd" exit /b 4 | for /f %%i in ("certutil.exe") do if not exist "%%~$path:i" ( 5 | echo CertUtil.exe not found. 6 | pause 7 | exit /b 8 | ) 9 | >"temp.~b64" echo(//4mY2xzDQo= 10 | certutil.exe -f -decode "temp.~b64" "%~n1o%~x1" 11 | del "temp.~b64" 12 | copy "%~n1o%~x1" /b + "%~1" /b 13 | --------------------------------------------------------------------------------