Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Note: Do not use the code with malicious intent. This post IS for EDUCATIONAL PURPOSES ONLY.
- (I mean if you run a batch file or anything of any sorts with an obfuscated code, ur js dumb asf)
- Obfuscate Code:
- @echo off
- REM Obfuscates the code when the file is dragged to the script
- 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
- Deobfuscate Code:
- @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")
- ©️ 1997 WhoAsked, Inc. All rights reserved.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement