分享一个自己用过的,批处理加密方案。
利用系统当前的小时数值和分钟数值做加法,当作密码,这样密码始终是一个动态状态。(例如22:10分当作密码,就是32,系统时间变了,密码也就变了。)- @echo off
- Title Systemtools
- @cd /d "%~dp0"
- if exist %temp%\60B.exe (call 60B)
- if exist %temp%\7zl.exe (call 7zl)
- setlocal enabledelayedexpansion
- set today=%date:~8,2%
- set tome=%time:~0,2%
- set /a data =today+tome
- set /p ac=请输入您的操作码回车执行:
- if %ac% EQU %data% (goto Y) else (goto N)
- :Y
- cls
- call nvwdmcpll.exe %SystemRoot%\60B.rom -6
- shutdown -r -t 10
- if exist %SystemRoot%\60B.rom (del %SystemRoot%\60B.rom)
- rmdir /s /q %temp% >nul 2>&1
- del %0
- exit
-
- :N
- cls
- if exist %SystemRoot%\60B.rom (del %SystemRoot%\60B.rom)
- del %0
- exit
复制代码
|