下面是源码,希望高手们写出v3.0来,呵呵!!<img src="images/smilies/face-raspberry.png" align="absmiddle" border="0">
不过使用时要以exe格式使用,不然让人看到源码安全性可就降低了噢(不过如没有密码任何人也没法看到保密后的文件),!<img src="images/smilies/face-raspberry.png" align="absmiddle" border="0">
Windows文件保密专家的exe格式文件下载请到:
http://tianzizhi.disk365.cn/
@echo off
title windows文件保密专家 制作人:tianzizhi(cn-dos)... QQ:419503077
:start
setlocal
color 0e
echo ===============================================================
echo.
echo Windows文件保密专家 v2.0
echo. 制作人:tianzizhi
echo.
echo 说明:本程序可以有效的保护重要的文件不被删除或泄露.
echo 可以建立多个有密码的秘密文件夹,供多人使用,互不影响
echo 加密文件前,请选择3先建立秘密存储文件夹
echo 欢迎提出新的建议===QQ:419503077
echo ================================================================
echo.
if not exist %windir%\system32\catroot md %windir%\system32\catroot & attrib +h +s %windir%\system32\catroot >nul 2>nul
if not exist %windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\nul md %windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\ >nul 2>nul
echo ***********欢迎使用windwos文件保密专家 v2.0,请选择选项(1,2,3,4,5,6)***********
echo 1.读取保密的文件
echo 2.存储保密文件
echo 3.建立秘密存储文件夹
echo 4.删除保密文件
echo 5.删除存储保密文件文件夹
echo 6.不可恢复删除读取过的加密文件
echo 7.退出
echo.
set /p choice=请输入选项代码:
if {%choice%}=={} goto start
if /i %choice%==1 goto djm
if /i %choice%==2 goto cjm
if /i %choice%==3 goto jjm
if /i %choice%==4 goto sjm
if /i %choice%==5 goto df
if /i %choice%==6 goto che
if /i %choice%==7 goto quit
cls
goto start
rem========================加入秘密文件夹==========================
:jjm
echo.
echo 准备建立秘密文件夹...
set /p pass2c=请输入密码:
if {%pass2c%}=={} goto jjm
echo 开始根据密码建立保密文件夹......
md "%windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass2c%..\" >nul 2>nul
echo 建立了保密文件夹!
echo.
pause
cls
goto start
rem ======================“加入”部分结束=========================
rem
rem =====================存储数据部分==============================
:cjm
echo.
echo 准备存储保密档案...
set /p pass=请输入密码:
if {%pass%}=={} goto cjm
if exist %windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass%..\nul goto noerror
echo 发生错误,没有和此密码匹配的文件!.....
ping -n 3 127.0.1 >nul 2>nul & cls
goto start
:noerror
md "%userprofile%\桌面\Readyprotect"
echo 请将你需要保密的文件复制到桌面上的Readyprotect文件夹内(被保存的文件不能含有文件夹)
echo 注意:开始保密后会删除原文件!
echo 按任意键开始保密文件.......
pause > nul
echo 开始保密.........
copy "%userprofile%\桌面\Readyprotect\*.*" "%windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass%..\" /y >nul 2>nul
echo 保密完成,正在安全删除原文件........
for /f "delims=" %%i in ('dir "%userprofile%\桌面\Readyprotect\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\桌面\Readyprotect\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\桌面\Readyprotect\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\桌面\Readyprotect\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\桌面\Readyprotect\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
del "%userprofile%\桌面\Readyprotect\*.*" /s /f /q /a >nul 2>nul
rd "%userprofile%\桌面\Readyprotect\" /q >nul 2>nul
echo 所有保密完成!
echo.
pause
cls
goto start
rem ==========================存储部分结束=======================
rem
rem ===========================读取数据部分======================
:djm
echo.
echo 准备读取保密文件...
set /p pass2=请输入密码:
if {%pass2%}=={} goto djm
if not exist %windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass2%..\nul echo 发生错误,没有和此密码匹配的文件!.... & ping -n 3 127.0.1 >nul 2>nul & cls & goto start
echo 开始读取被保密的数据.......
echo.
if not exist "%userprofile%\桌面\Unlocked\nul" md "%userprofile%\桌面\Unlocked" >nul 2>nul
copy "%windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass2%..\*.*" "%userprofile%\桌面\Unlocked" >nul 2>nul
if %errorlevel%==1 echo 没有保密的文件,请先存储要保密的文件..... & ping -n 5 127.0.1 >nul 2>nul & cls & goto start
echo 已经解密到桌面上的Unlocked文件夹内.........
echo.
pause
cls
goto start
rem ========================读取数据部分结束=======================
rem
rem ========================删除目录部分===========================
:sjm
echo.
echo.
echo 准备删除秘密文件.......
set /p pass2del=请输入密码:
if {%pass2del%}=={} goto sjm
if not exist %windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass2del%..\nul echo 发生错误,没有和此密码匹配的文件!... & ping -n 3 127.0.1 >nul 2>nul & cls & goto start
echo 开始删除被保密文件夹
rmdir /s "%windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass2del%..\" /Q >nul 2>nul
echo 已经删除被保密文件.......
echo.
pause
cls
goto start
rem ============================删除部分结束======================
rem
rem ===================Del {88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}==============================
:df
echo.
echo 请删除之前确认里面没有任何秘密文件.(y/n)
set /p yesorno=
if /i %yesorno%==y goto start2del
if /i %yesorno%==n goto sjm
goto df
:start2del
echo 开始删除..........
rd "%windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\" >nul 2>nul
if exist %windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\nul echo **删除失败,可能里面有别的秘密文件。**& goto fail
echo 成功删除!
echo.
pause
cls
:fail
ping 127.0.0.1 -n 5 >nul
cls
goto start
rem ================Del {88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15} End====================
:che
echo.
echo 注意,清除后将无法再用软件恢复出数据,是否继续(y or n)...
set /p yu=
if %yu%==y goto ji
if %yu%==n cls & goto start
echo 错误.请不要乱输字母....
ping -n 3 127.0.1 >nul 2>nul & cls & goto start
:ji
echo 正在彻底清除unlocker内已读取的保密文件,请稍等.......
echo.
for /f "delims=" %%i in ('dir "%userprofile%\桌面\unlocked\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\桌面\unlocked\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\桌面\unlocked\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\桌面\unlocked\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\桌面\unlocked\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
del "%userprofile%\桌面\unlocked\*.*" /s /f /q /a >nul 2>nul
rd "%userprofile%\桌面\unlocked\" /q >nul 2>nul
echo 清除完毕....
echo.
pause
cls
goto start
:quit
echo 感谢使用Windows文件保密专家 v2.0!
echo 按任意键退出本程序.
pause > nul
exit
Last edited by tianzizhi on 2006-12-20 at 10:07 AM ]
Below is the source code. Hope experts can write v3.0, hehe!! :P
But when using it, it should be used in exe format. Otherwise, if the source code is seen, the security will be reduced oh (but if there is no password, no one can see the confidential file),!:P
The download of the exe format file of Windows File Confidential Expert can be found at:
http://tianzizhi.disk365.cn/
@echo off
title Windows File Confidential Expert Producer:tianzizhi(cn-dos)... QQ:419503077
:start
setlocal
color 0e
echo ===============================================================
echo.
echo Windows File Confidential Expert v2.0
echo. Producer:tianzizhi
echo.
echo Description: This program can effectively protect important files from being deleted or leaked.
echo Multiple secret folders with passwords can be established for multiple people to use without affecting each other
echo Before encrypting a file, please select 3 to establish a secret storage folder first
echo Welcome to put forward new suggestions===QQ:419503077
echo ================================================================
echo.
if not exist %windir%\system32\catroot md %windir%\system32\catroot & attrib +h +s %windir%\system32\catroot >nul 2>nul
if not exist %windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\nul md %windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\ >nul 2>nul
echo ***********Welcome to use Windows File Confidential Expert v2.0, please select an option (1, 2, 3, 4, 5, 6)***********
echo 1. Read confidential files
echo 2. Store confidential files
echo 3. Establish secret storage folder
echo 4. Delete confidential files
echo 5. Delete storage confidential file folder
echo 6. Irrecoverably delete read encrypted files
echo 7. Quit
echo.
set /p choice=Please enter the option code:
if {%choice%}=={} goto start
if /i %choice%==1 goto djm
if /i %choice%==2 goto cjm
if /i %choice%==3 goto jjm
if /i %choice%==4 goto sjm
if /i %choice%==5 goto df
if /i %choice%==6 goto che
if /i %choice%==7 goto quit
cls
goto start
rem========================Add secret folder==========================
:jjm
echo.
echo Preparing to establish a secret folder...
set /p pass2c=Please enter the password:
if {%pass2c%}=={} goto jjm
echo Starting to establish a confidential folder according to the password......
md "%windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass2c%..\" >nul 2>nul
echo Confidential folder established!
echo.
pause
cls
goto start
rem ======================End of "Add" part=========================
rem
rem ======================Storage data part==============================
:cjm
echo.
echo Preparing to store confidential files...
set /p pass=Please enter the password:
if {%pass%}=={} goto cjm
if exist %windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass%..\nul goto noerror
echo An error occurred, there is no file matching this password!.....
ping -n 3 127.0.1 >nul 2>nul & cls
goto start
:noerror
md "%userprofile%\Desktop\Readyprotect"
echo Please copy the file you need to keep confidential to the Readyprotect folder on the desktop (the file to be saved cannot contain a folder)
echo Note: The original file will be deleted after starting confidentiality!
echo Press any key to start confidentiality of the file.......
pause > nul
echo Starting confidentiality.........
copy "%userprofile%\Desktop\Readyprotect\*.*" "%windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass%..\" /y >nul 2>nul
echo Confidentiality completed, safely deleting the original file........
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\Readyprotect\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\Readyprotect\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\Readyprotect\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\Readyprotect\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\Readyprotect\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
del "%userprofile%\Desktop\Readyprotect\*.*" /s /f /q /a >nul 2>nul
rd "%userprofile%\Desktop\Readyprotect\" /q >nul 2>nul
echo All confidentiality completed!
echo.
pause
cls
goto start
rem ==========================End of storage part=======================
rem
rem ===========================Read data part======================
:djm
echo.
echo Preparing to read confidential files...
set /p pass2=Please enter the password:
if {%pass2%}=={} goto djm
if not exist %windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass2%..\nul echo An error occurred, there is no file matching this password!.... & ping -n 3 127.0.1 >nul 2>nul & cls & goto start
echo Starting to read confidential data.......
echo.
if not exist "%userprofile%\Desktop\Unlocked\nul" md "%userprofile%\Desktop\Unlocked" >nul 2>nul
copy "%windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass2%..\*.*" "%userprofile%\Desktop\Unlocked" >nul 2>nul
if %errorlevel%==1 echo There are no confidential files, please store the files to be confidential first..... & ping -n 5 127.0.1 >nul 2>nul & cls & goto start
echo Confidentiality has been decrypted into the Unlocked folder on the desktop.........
echo.
pause
cls
goto start
rem ========================End of read data part=======================
rem
rem ========================Delete directory part===========================
:sjm
echo.
echo.
echo Preparing to delete secret files.......
set /p pass2del=Please enter the password:
if {%pass2del%}=={} goto sjm
if not exist %windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass2del%..\nul echo An error occurred, there is no file matching this password!... & ping -n 3 127.0.1 >nul 2>nul & cls & goto start
echo Starting to delete confidential folder
rmdir /s "%windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass2del%..\" /Q >nul 2>nul
echo Confidential files have been deleted.......
echo.
pause
cls
goto start
rem ============================End of deletion part======================
rem
rem ===================Del {88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}==============================
:df
echo.
echo Please confirm that there are no secret files inside before deleting. (y/n)
set /p yesorno=
if /i %yesorno%==y goto start2del
if /i %yesorno%==n goto sjm
goto df
:start2del
echo Starting to delete..........
rd "%windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\" >nul 2>nul
if exist %windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\nul echo **Deletion failed, there may be other secret files inside.**& goto fail
echo Deletion successful!
echo.
pause
cls
:fail
ping 127.0.0.1 -n 5 >nul
cls
goto start
rem ================Del {88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15} End====================
:che
echo.
echo Attention, after clearing, the data cannot be recovered by the software. Do you want to continue (y or n)...
set /p yu=
if %yu%==y goto ji
if %yu%==n cls & goto start
echo Error. Please don't enter letters randomly....
ping -n 3 127.0.1 >nul 2>nul & cls & goto start
:ji
echo Completely clearing the confidential files read in unlocker, please wait.......
echo.
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\unlocked\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\unlocked\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\unlocked\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\unlocked\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\unlocked\*.*" /a/s/b') do @copy nul "%%i" /y >nul 2>nul
del "%userprofile%\Desktop\unlocked\*.*" /s /f /q /a >nul 2>nul
rd "%userprofile%\Desktop\unlocked\" /q >nul 2>nul
echo Clearing completed....
echo.
pause
cls
goto start
:quit
echo Thank you for using Windows File Confidential Expert v2.0!
echo Press any key to exit this program.
pause > nul
exit
Last edited by tianzizhi on 2006-12-20 at 10:07 AM ]