中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-02 20:29
48,038 topics / 350,123 posts / today 1 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » Self-made Windows file confidentiality program!
Printable Version  2,125 / 6
Floor1 tianzizhi Posted 2006-12-20 09:17
高级用户 Posts 214 Credits 623
Below is the source code. Hope experts can write v3.0, hehe!!
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),!
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 ]
Floor2 vkill Posted 2006-12-21 09:58
金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽
Hehe, I think this one is better.
http://www.cn-dos.net/forum/viewthread.php?tid=23441&fpage=1&highlight=%E5%8A%A0%E5%AF%86

If you want to use it on other machines, you can use WinRAR to archive. There is an option in WinRAR whether to add stream data.
Floor3 electronixtar Posted 2006-12-25 07:23
铂金会员 Posts 2,672 Credits 7,493
Well, it is suggested not to say "encryption", just say "camouflage" instead
Floor4 tianzizhi Posted 2006-12-25 08:00
高级用户 Posts 214 Credits 623
I use "confidential" because it sounds better, using "camouflage" doesn't sound good, heh heh....
Floor5 ka56 Posted 2006-12-25 09:45
中级用户 Posts 129 Credits 234
Floor6 jmz573515 Posted 2006-12-25 09:50
银牌会员 Posts 464 Credits 1,212
Great stuff! Learning!
Floor7 aoon Posted 2006-12-26 09:02
初级用户 Posts 47 Credits 122
Good stuff, do try it.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023