搜索
查看: 2552|回复: 0

批处理写的文件夹加密程序

[复制链接]

311

主题

461

帖子

991

积分

vip用户

Rank: 6Rank: 6

积分
991

注册会员活跃会员热心会员

QQ
发表于 2018-6-6 09:44:15 | 显示全部楼层 |阅读模式
特点:
  • 开源,绿色无需安装,体积小巧,不足5kb。
  • 自动输出一个小红锁的图标并更改加密目录的图标(包括可移动磁盘文件夹的图标)。
  • 加密速度快。
  • 加密后目录不能被误删除。
注意:程序不自动加密子目录
把下面的代码用记事本另存为“加密.CMD”放入要加密的目录后打开即可。
可能是我网站对特殊字符转义,直接拷贝下来的代码不能生成图标,其他功能一切正常。

 :: RED LOCK
:: CODE BY TANGBIN
:: [zxsq-anti-bbcode-url]WWW.BBSKALI.CN[zxsq-anti-bbcode-/url]
:: -----------------------------------------------------------
@ECHO OFF
COLOR F8
MODE CON: COLS=50 LINES=1
SET TITLE=文件加密装逼专用
SET LOCK=加密
SET KEY=解密
SET TEXT-1=密码不能为空!
SET TEXT-2=密码错误!
SET TEXT-3=正在执行之中...
SET TEXT-4=请解密再操作
SET TEXT-5=密码
SET BOX=LOCK
SET NAME=%0
IF NOT EXIST %BOX%\DATA~1\.SCF GOTO LOCK
IF EXIST %BOX%\DATA~1\.SCF GOTO KEY
:LOCK
TITLE %TITLE% [zxsq-anti-bbcode-%LOCK%]
SET /p T=%TEXT-5%:
IF /I "%T%"=="" TITLE %TEXT-1% & PAUSE >NUL & CLS & GOTO LOCK
TITLE %LOCK%%TEXT-3%
MD %BOX%\DATA
MD %BOX%\DATA\%TEXT-4%..\
MD %BOX%\DATA..\
:: ECHO [zxsq-anti-bbcode-.SHELLCLASSINFO]>%BOX%\DESKTOP.INI
:: ECHO CLSID={35786D3C-B075-49b9-88DD-029876E11C01}>>%BOX%\DESKTOP.INI
ECHO %T%>%BOX%\DATA~1\.SCF
ATTRIB %NAME% +R +S>NUL
ATTRIB %BOX% +R +S +H>NUL
IF EXIST DESKTOP.INI ATTRIB DESKTOP.INI -R -S -H>NUL
MOVE /Y .\*.* %BOX%\DATA~1>NUL
ECHO E 100 00 00 01 00 01 00 20 20 10 00 01 00 04 00 E8 02>>ICO
ECHO E 110 00 00 16 00 00 00 28 00 00 00 20 00 00 00 40 00>>ICO
ECHO E 120 00 00 01 00 04 00 00 00 00 00 00 00 00 00 13 0B>>ICO
ECHO E 130 00 00 13 0B 00 00 10 00 00 00 00 00 00 00 00 00>>ICO
ECHO E 140 00 00 FF FF FF 00 23 0D C4 00 00 00 00 00 00 00>>ICO
ECHO E 150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>>ICO
ECHO E 160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>>ICO
ECHO E 170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 33 00>>ICO
ECHO E 180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 33 00>>ICO
ECHO E 190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 22 22>>ICO
ECHO E 1A0 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO
ECHO E 1B0 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO
ECHO E 1C0 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO
ECHO E 1D0 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO
ECHO E 1E0 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO
ECHO E 1F0 22 11 11 11 11 11 11 11 11 11 22 22 22 00 22 22>>ICO
ECHO E 200 22 11 11 11 11 11 11 11 11 11 22 22 22 00 22 22>>ICO
ECHO E 210 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO
ECHO E 220 22 11 11 11 11 11 11 11 11 11 22 22 22 00 22 22>>ICO
ECHO E 230 22 11 11 11 11 11 11 11 11 11 22 22 22 00 22 22>>ICO
ECHO E 240 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO
ECHO E 250 22 11 11 11 11 11 11 11 11 11 22 22 22 00 22 22>>ICO
ECHO E 260 22 11 11 11 11 11 11 11 11 11 22 22 22 00 22 22>>ICO
ECHO E 270 22 11 11 11 11 11 11 11 11 11 22 22 22 00 22 22>>ICO
ECHO E 280 22 11 11 11 11 11 11 11 11 11 22 22 22 00 22 22>>ICO
ECHO E 290 22 11 11 11 11 11 11 11 11 11 22 22 22 00 22 22>>ICO
ECHO E 2A0 22 22 11 12 22 22 22 21 11 22 22 22 22 00 22 22>>ICO
ECHO E 2B0 22 22 11 12 22 22 22 21 11 22 22 22 22 00 22 22>>ICO
ECHO E 2C0 22 22 11 12 22 22 22 21 11 22 22 22 22 00 22 22>>ICO
ECHO E 2D0 22 22 11 12 22 22 22 21 11 22 22 22 22 00 22 22>>ICO
ECHO E 2E0 22 22 11 12 22 22 22 21 11 22 22 22 22 00 22 22>>ICO
ECHO E 2F0 22 22 21 11 22 22 22 11 12 22 22 22 22 00 22 22>>ICO
ECHO E 300 22 22 21 11 12 22 21 11 12 22 22 22 22 00 22 22>>ICO
ECHO E 310 22 22 22 11 11 11 11 11 22 22 22 22 22 00 22 22>>ICO
ECHO E 320 22 22 22 21 11 11 11 12 22 22 22 22 22 00 22 22>>ICO
ECHO E 330 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO
ECHO E 340 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO
ECHO E 350 22 22 22 22 22 22 22 22 22 22 22 22 22 00 22 22>>ICO
ECHO E 360 22 22 22 22 22 22 22 22 22 22 22 22 22 33 22 22>>ICO
ECHO E 370 22 22 22 22 22 22 22 22 22 22 22 22 22 33 C0 00>>ICO
ECHO E 380 00 00 C0 00 00 00 00 00 00 00 00 00 00 00 00 00>>ICO
ECHO E 390 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>>ICO
ECHO E 3A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>>ICO
ECHO E 3B0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>>ICO
ECHO E 3C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>>ICO
ECHO E 3D0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>>ICO
ECHO E 3E0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>>ICO
ECHO E 3F0 00 00 00 00 00 00 00 00 00 03 00 00 00 03>>ICO
ECHO RCX>>ICO
ECHO 2FE>>ICO
ECHO N ICO2>>ICO
ECHO W>>ICO
ECHO Q>>ICO
DEBUGNUL
COPY /B /Y ICO2 LOCK.ICO
ATTRIB +R +S +H LOCK.ICO
DEL ICO*
ECHO [zxsq-anti-bbcode-.SHELLCLASSINFO]>DESKTOP.INI
ECHO INFOTIP=RED LOCK>>DESKTOP.INI
ECHO ICONFILE=LOCK.ICO>>DESKTOP.INI
ECHO ICONINDEX=^0>>DESKTOP.INI
ATTRIB DESKTOP.INI +R +S +H>NUL
ATTRIB "%CD%" +R>NUL
ATTRIB %NAME% -R -S
MOVE %NAME% %KEY%.CMD & EXIT
:KEY
TITLE %TITLE% [zxsq-anti-bbcode-%KEY%]
SET /p T=%TEXT-5%:
IF /I "%T%"=="" TITLE %TEXT-1% & PAUSE>NUL & CLS & GOTO KEY
TITLE %KEY%%TEXT-3%
ECHO %T%>.SCF
FC /A .SCF %BOX%\DATA~1\.SCF>NUL
GOTO KEY-%ERRORLEVEL%
:KEY-1
TITLE %TEXT-2%
DEL .SCF
PAUSE>NUL
GOTO KEY
:KEY-0
IF EXIST DESKTOP.INI DEL /F /A DESKTOP.INI
IF EXIST LOCK.ICO DEL /F /A LOCK.ICO
MOVE /Y %BOX%\DATA~1\* .\>NUL
RD /S /Q %BOX%
DEL .SCF
IF EXIST DESKTOP.INI ATTRIB DESKTOP.INI +R +S +H>NUL
RD /S /Q %BOX%
ATTRIB %NAME% -R -S
MOVE %NAME% %LOCK%.CMD & EXIT
有没有参加CTF比赛的,一起组队啊!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表