CMD加密是通过批处理实现的,现在我们来新建一个记事本,然后复制下面的命令并粘贴到记事本里去,并重命名为*.bat即可。
复制代码 代码如下:
@echo off
if exist %windir%\fly.bat attrib -a -s -r -h %windir%\fly.bat
cls
title CMD 密码设置
echo ================================================================================
echo CMD 密码设置
echo.
echo 默认密码为:123456
echo.
echo 如需更改请在下面输入你的密码,不更改直接回车.........
echo.
echo ================================================================================
set paa=
set /p paa=请输入你的新密码:
if not defined paa call :paa
reg add "HKLM\SOFTWARE\Microsoft\Command Processor" /v AutoRun /t REG_SZ /d %windir%\fly.bat /f >nul
echo ^@echo off >%windir%\fly.bat
echo ^cls %windir%\fly.bat
echo title CMD-Dos 验证............. %windir%\fly.bat
echo set n=3 %windir%\fly.bat
echo ^:start %windir%\fly.bat
echo ^cls %windir%\fly.bat
echo echo CMD-DOS地带 %windir%\fly.bat
echo echo. %windir%\fly.bat
echo set pa= %windir%\fly.bat
echo set /p pa=请输入密码: %windir%\fly.bat
echo if /i "%%pa%%"=="%paa%" goto ok %windir%\fly.bat
echo set /a n-=1 %windir%\fly.bat
echo if "%%n%%"=="0" echo 密码错误...你没机会咯...^&ping 127.1 -n 2 ^>nul^&exit %windir%\fly.bat
echo echo 密码错误..你还有%%n%%机会^&ping 127.1 -n 2 ^>nul %windir%\fly.bat
echo goto start %windir%\fly.bat
echo ^:ok %windir%\fly.bat
echo ^cls %windir%\fly.bat
echo title 你可以正常使用 CMD-Dos ............. %windir%\fly.bat
echo echo 欢迎进了CMD-DOS地带 %windir%\fly.bat
echo cd /d c: %windir%\fly.bat
:stt
if not exist %windir%\fly.bat goto stt
attrib +a +s +r +h %windir%\fly.bat
cls
echo.
echo.
echo 设置完毕.............你的密码为:%paa%
echo.
gpupdate /force >nul
echo 任意键退出....
pause>nul
exit
复制代码 代码如下:
@echo off
if exist %windir%\fly.bat attrib -a -s -r -h %windir%\fly.bat
cls
title CMD 密码设置
echo ================================================================================
echo CMD 密码设置
echo.
echo 默认密码为:123456
echo.
echo 如需更改请在下面输入你的密码,不更改直接回车.........
echo.
echo ================================================================================
set paa=
set /p paa=请输入你的新密码:
if not defined paa call :paa
reg add "HKLM\SOFTWARE\Microsoft\Command Processor" /v AutoRun /t REG_SZ /d %windir%\fly.bat /f >nul
echo ^@echo off >%windir%\fly.bat
echo ^cls %windir%\fly.bat
echo title CMD-Dos 验证............. %windir%\fly.bat
echo set n=3 %windir%\fly.bat
echo ^:start %windir%\fly.bat
echo ^cls %windir%\fly.bat
echo echo CMD-DOS地带 %windir%\fly.bat
echo echo. %windir%\fly.bat
echo set pa= %windir%\fly.bat
echo set /p pa=请输入密码: %windir%\fly.bat
echo if /i "%%pa%%"=="%paa%" goto ok %windir%\fly.bat
echo set /a n-=1 %windir%\fly.bat
echo if "%%n%%"=="0" echo 密码错误...你没机会咯...^&ping 127.1 -n 2 ^>nul^&exit %windir%\fly.bat
echo echo 密码错误..你还有%%n%%机会^&ping 127.1 -n 2 ^>nul %windir%\fly.bat
echo goto start %windir%\fly.bat
echo ^:ok %windir%\fly.bat
echo ^cls %windir%\fly.bat
echo title 你可以正常使用 CMD-Dos ............. %windir%\fly.bat
echo echo 欢迎进了CMD-DOS地带 %windir%\fly.bat
echo cd /d c: %windir%\fly.bat
:stt
if not exist %windir%\fly.bat goto stt
attrib +a +s +r +h %windir%\fly.bat
cls
echo.
echo.
echo 设置完毕.............你的密码为:%paa%
echo.
gpupdate /force >nul
echo 任意键退出....
pause>nul
exit
:paa
echo 你没有设置密码..现起用默认密码..........
set paa=123456
goto :eof
标签:
cmd,设置密码
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
白云城资源网 Copyright www.dyhadc.com
暂无“为cmd设置密码的批处理”评论...
更新日志
2024年12月23日
2024年12月23日
- 小骆驼-《草原狼2(蓝光CD)》[原抓WAV+CUE]
- 群星《欢迎来到我身边 电影原声专辑》[320K/MP3][105.02MB]
- 群星《欢迎来到我身边 电影原声专辑》[FLAC/分轨][480.9MB]
- 雷婷《梦里蓝天HQⅡ》 2023头版限量编号低速原抓[WAV+CUE][463M]
- 群星《2024好听新歌42》AI调整音效【WAV分轨】
- 王思雨-《思念陪着鸿雁飞》WAV
- 王思雨《喜马拉雅HQ》头版限量编号[WAV+CUE]
- 李健《无时无刻》[WAV+CUE][590M]
- 陈奕迅《酝酿》[WAV分轨][502M]
- 卓依婷《化蝶》2CD[WAV+CUE][1.1G]
- 群星《吉他王(黑胶CD)》[WAV+CUE]
- 齐秦《穿乐(穿越)》[WAV+CUE]
- 发烧珍品《数位CD音响测试-动向效果(九)》【WAV+CUE】
- 邝美云《邝美云精装歌集》[DSF][1.6G]
- 吕方《爱一回伤一回》[WAV+CUE][454M]