Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [[-]] Batch Obfuscator Code [[-]]
- Batch Obfuscator/Deobfuscator:
- Just drag the batch script you want to obfuscate to the obfuscate.bat
- To deobfuscate the file, drag the obfuscated batch script to it.
- [[-]] Code [[-]]
- Obfuscate:
- @echo off
- REM Code to obfuscate the file
- if "%~1"=="" exit /b
- if /i "%~x1" neq ".bat" if /i "%~x1" neq ".cmd" exit /b
- for /f %%i in ("certutil.exe") do if not exist "%%~$path:i" (
- echo CertUtil.exe not found.
- pause
- exit /b
- )
- >"temp.~b64" echo(//4mY2xzDQo=
- certutil.exe -f -decode "temp.~b64" "%~n1___%~x1"
- del "temp.~b64"
- copy "%~n1___%~x1" /b + "%~1" /b
- Deobfuscator:
- @echo off
- REM Deobfuscates the file that is obfuscated.
- setlocal
- if "%~1"=="" exit /b
- if /i "%~x1" neq ".bat" if /i "%~x1" neq ".cmd" exit /b
- <"%~1" ((for /l %%N in (1 1 8) do pause)>nul&findstr "^">"%~n1__%~x1")
- Enjoy.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement