China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-29 10:51
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » A Ji Pin Mi Pan written with batch processing View 5,586 Replies 21
Original Poster Posted 2006-08-16 15:08 ·  中国 陕西 宝鸡 联通
新手上路
Credits 15
Posts 4
Joined 2005-07-24 21:42
21-year member
UID 41023
Status Offline
Jipin Secret Disk Written with Batch Processing






=========================================

The effect is similar to Jipin Secret Disk 2005.

If everyone thinks it's acceptable, I'm willing to release the source code and improve it together with everyone.

Reply 1

Re: 『Post #5』
The so-called encryption is just a trick. MD5 is very strong, but theoretically it can still be cracked.

Since everyone has already obtained the source code, I won't keep it a secret anymore. I'll write out the source code. My encryption idea is completely derived from Jipin Secret Disk 2005. At that time, I thought this encryption method was quite simple and practical, so I had the urge to write it out with batch processing. I'm not talented. It took me several晚自习, mainly on various judgments. There are too many things to consider, and my head was almost about to explode :(, If you think it's valuable and want to spread it, I hope you add my "mark" (jie_china or Feng Li Xue) as a comfort to me, If you find it troublesome, do as you like.


Posted on floor 11

[ Last edited by jie226 on 2010-8-7 at 17:11 ]
Floor 2 Posted 2006-08-16 15:14 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 3 Posted 2006-08-16 15:46 ·  中国 福建 泉州 电信
银牌会员
★★★
Credits 1,276
Posts 469
Joined 2002-12-23 13:00
23-year member
UID 586
Gender Male
From 福建泉州
Status Offline
Using the SUBST command + the characteristics of the Recycle Bin. Can only fool some novices. Use the password as part of the folder. Determine the password by detecting whether the folder corresponding to the entered password exists. Learned another trick. Hehe. In the future, batch processing password setting has another solution.

[ Last edited by chenall on 2006-8-16 at 15:52 ]
QQ:366840202
http://chenall.net
Floor 4 Posted 2006-08-16 15:55 ·  中国 四川 成都 鹏博士宽带
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
The input places have no clear prompts, which will drive noobs crazy.

There are still many places worthy of improvement, for example, fix the size of the interface and prevent the scroll bar from showing.

Upstairs, the owner's script is encrypted, how did you get the original code out?

[ Last edited by namejm on 2006-8-16 at 15:58 ]
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 5 Posted 2006-08-16 19:05 ·  中国 福建 泉州 电信
银牌会员
★★★
Credits 1,276
Posts 469
Joined 2002-12-23 13:00
23-year member
UID 586
Gender Male
From 福建泉州
Status Offline
So far, I haven't found any batch encryption software that can truly encrypt. Most of them are like WINRAR, just packing. When running, it decompresses and then runs. After decompression, the source code can be seen.
QQ:366840202
http://chenall.net
Floor 6 Posted 2006-08-16 19:24 ·  中国 四川 成都 鹏博士宽带
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
Hehe, it turns out it's released to the %tme% directory.
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 7 Posted 2006-08-16 19:34 ·  中国 广西 贵港 电信
高级用户
★★
学无尽止
Credits 635
Posts 244
Joined 2006-04-15 05:07
20-year member
UID 53857
Gender Male
From 广西贵港
Status Offline
What is the source code? The landlord quickly release it~!
Floor 8 Posted 2006-08-16 22:10 ·  中国 河南 济源 联通
中级用户
★★
Credits 343
Posts 50
Joined 2004-02-21 00:00
22-year member
UID 18062
Gender Male
Status Offline
Yeah, release the source code so everyone can improve it.
Floor 9 Posted 2006-08-16 23:12 ·  中国 辽宁 锦州 中移铁通
荣誉版主
★★★
Credits 1,338
Posts 356
Joined 2005-07-15 12:09
21-year member
UID 40733
Gender Male
Status Offline
Using a password as part of the file name is quite creative. There are some issues in your character input comparison part. For example, entering any of the following characters will directly exit: <>"|&;,=
  ☆开始\运行 (WIN+R)☆
%ComSpec% /cset,=何奈无── 。何奈可无是原,事奈无做人奈无&for,/l,%i,in,(22,-1,0)do,@call,set/p= %,:~%i,1%<nul&ping/n 1 127.1>nul

Floor 10 Posted 2006-08-16 23:14 ·  中国 四川 成都 鹏博士宽带
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
When the "Green Bodhi Secret Disk Test Version.EXE" is running, running the following script will copy the bat version of "Green Bodhi Secret Disk Test Version.EXE" to the current directory, rename it to "Green Bodhi Secret Disk Test Version.bat" and open it with Notepad, and all secrets will be clearly visible. Hehe, this is also equivalent to indirectly disclosing the source code. Please don't mind, the thread starter.


@echo off
set cur_dir=%cd%
cd /d "%tmp%"
for /f %%i in ('dir /a-d /b *.bat') do (
set file=%%i
findstr /c:"Green Bodhi Secret Disk Test Version" %%i>nul 2>nul && xcopy /y /h %%i "%cur_dir%">nul
)
cd /d "%cur_dir%"
attrib -h %file%
if exist 绿菩提密盘测试版.bat del /q %file% && goto end
ren %file% 绿菩提密盘测试版.bat

:end
start notepad 绿菩提密盘测试版.bat



[ Last edited by namejm on 2006-8-16 at 23:47 ]
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 11 Posted 2006-08-17 03:03 ·  中国 陕西 宝鸡 联通
新手上路
Credits 15
Posts 4
Joined 2005-07-24 21:42
21-year member
UID 41023
Status Offline
@echo off
color 2f
:start
cls
echo.
echo.
echo.
echo ==============================================================
echo.
echo Lv Putimim Pan Beta
echo.
echo Welcome, please select an option (1,2,3,4,5,6,7)
echo.
echo 1. Open the secret disk
echo 2. Close the secret disk
echo 3. Create a secret disk
echo 4. Delete the secret disk
echo 5. Secret disk help
echo 6. About the author
echo 7. Press X to close
echo.
echo. Made by Feng Lixue Email:jie_china@163.com
echo.
echo ==============================================================
echo.
echo.
set /p choice=
if {%choice%}=={} goto start
if /i %choice%==1 goto open
if /i %choice%==2 goto off
if /i %choice%==3 goto set
if /i %choice%==4 goto del
if /i %choice%==5 goto help
if /i %choice%==6 goto zwj
if /i %choice%==x goto shut
if /i %choice%==kill goto kill
goto start

rem ===========================Open the secret disk==============================
:open
cls
echo.
echo.
echo.
echo.
echo Please enter the partition where the secret disk is located (enter "C" to open the secret disk created on drive C)
echo.
echo Return to the main menu (please press X key)
echo.
set /p drv=
if {%drv%}=={} goto open
if /i %drv%==X goto start
if not exist %drv%: goto nodrv
echo Please enter the password:
set /p pass1=
if {%pass1%}=={} goto pw1
if /i %pass1%==X goto start
if not exist %drv%:\Recycle\S-1-5-21-1060284298-%pass1%-13438020086-500\ goto wm
subst z: %drv%:\Recycle\S-1-5-21-1060284298-%pass1%-13438020086-500 >nul 2>nul
echo.
echo.
cls
echo.
echo.
echo Please wait... The secret disk will be automatically opened after 5 seconds
ping 127.0.0.1 -n 5 >nul 2>nul
start z: >nul 2>nul
cls
echo.
echo.
echo Secret disk opened successfully, the secret disk is drive Z, please check in "My Computer"
echo Press any key to return to the main menu
pause >nul
goto start
:wm
cls
echo.
echo.
echo The secret disk does not exist in the specified partition or the password is incorrect, press any key to return to the main menu
pause >nul
goto start
:pw1
echo Password cannot be empty, please enter password:
set /p pass1=
if {%pass1%}=={} goto pw1
if /i %pass1%==X goto start
if not exist %drv%:\Recycle\S-1-5-21-1060284298-%pass1%-13438020086-500\ goto wm
subst z: %drv%:\Recycle\S-1-5-21-1060284298-%pass1%-13438020086-500 >nul 2>nul
start z: >nul 2>nul
cls
echo.
echo.
echo Secret disk created successfully, the secret disk is drive Z, press any key to return to the main menu
pause >nul
goto start
rem ===========================End of opening the secret disk===========================


rem ===========================Close the secret disk===============================
:off
cls
subst z: /d
echo.
echo.
echo.
echo Secret disk closed successfully, press any key to return to the main menu
echo.
echo.
echo.
pause >nul
goto start
rem ===========================End of closing the secret disk===========================


rem============================Create the secret disk===============================
:set
cls
echo.
echo.
echo.
echo.
echo Please enter the partition where the secret folder is to be created (enter "C" to create the secret disk on drive C, and so on.)
echo.
echo Return to the main menu (please press X key)
echo.
echo.
set /p drv=
if {%drv%}=={} goto set
if /i %drv%==X goto start
if not exist %drv%: goto nodrv
if exist %drv%:\Recycle goto error
echo Please enter the password:
set /p pass2=
if {%pass2%}=={} goto pw2
if /i %pass2% ==X goto start
md %drv%:\Recycle >nul 2>nul
attrib +s +h %drv%:\Recycle >nul 2>nul
echo >>C:\tmp
echo CLSID={645FF040-5081-101B-9F08-00AA002F954E}>>C:\tmp
copy c:\tmp %drv%:\Recycle\desktop.ini >nul 2>nul
del c:\tmp >nul 2>nul
attrib +s +h %drv%:\Recycle\desktop.ini
md %drv%:\Recycle\S-1-5-21-1060284298-%pass2%-13438020086-500 >nul 2>nul
echo Secret disk created successfully, please remember the partition and password where the secret disk was created, press any key to return to the main menu
pause >nul
cls
goto start
:pw2
echo Password cannot be empty, please enter password:
set /p pass2=
if {%pass2%}=={} goto pw2
if /i %pass2% ==X goto start
md %drv%:\Recycle >nul 2>nul
attrib +s +h %drv%:\Recycle >nul 2>nul
echo >>C:\tmp
echo CLSID={645FF040-5081-101B-9F08-00AA002F954E}>>C:\tmp
copy c:\tmp %drv%:\Recycle\desktop.ini >nul 2>nul
del c:\tmp >nul 2>nul
attrib +s +h %drv%:\Recycle\desktop.ini
md %drv%:\Recycle\S-1-5-21-1060284298-%pass2%-13438020086-500 >nul 2>nul
echo Secret disk created successfully, please remember the partition and password where the secret disk was created, press any key to return to the main menu
pause >nul
goto start
rem ==========================End of creating the secret disk part=======================

rem ============================Delete the secret disk=============================
:del
subst z: /d >nul 2>nul
cls
echo.
echo.
echo.
echo Please confirm that there are no secret documents in the secret disk before deleting. (Y/N)
echo.
echo Return to the main menu (please press X key)
echo.
set /p yesorno=
if {%yesorno%}=={} goto del
if /i %yesorno%==y goto start2del
if /i %yesorno%==n goto start
if /i %yesorno%==X goto start
goto del
:start2del
echo Please enter the partition where the secret disk is located (enter "C" to delete the secret disk created on drive C)
set /p drv=
if {%drv%}=={} goto del
if /i %drv%==X goto start
if not exist %drv%: goto nodrv
echo Please enter the password:
set /p pass3=
if {%pass3%}=={} goto pw3
if /i %pass3%==X goto start
if not exist %drv%:\Recycle\S-1-5-21-1060284298-%pass3%-13438020086-500\ goto pwfail
attrib -s -h %drv%:\Recycle\desktop.ini >nul 2>nul
del %drv%:\Recycle\desktop.ini >nul 2>nul
rd %drv%:\Recycle\S-1-5-21-1060284298-%pass3%-13438020086-500\ /q >nul 2>nul
rd %drv%:\Recycle\ /q >nul 2>nul
if exist %drv%:\Recycle\S-1-5-21-1060284298-%pass3%-13438020086-500\ goto fail
echo Deletion successful! Press any key to return to the main menu
pause >nul
goto start
:fail
cls
echo.
echo.
echo Deletion failed, there are documents in the secret disk or the secret disk does not exist.
echo >>C:\tmp
echo CLSID={645FF040-5081-101B-9F08-00AA002F954E}>>C:\tmp
copy c:\tmp %drv%:\Recycle\desktop.ini >nul 2>nul
del c:\tmp >nul 2>nul
attrib +s +h %drv%:\Recycle\desktop.ini >nul 2>nul
echo.
echo.
echo Press any key to return to the main menu
pause >nul
cls
goto start
:pw3
echo Password cannot be empty, please enter password:
set /p pass2=
if {%pass3%}=={} goto pw3
if /i %pass3%==X goto start
attrib -s -h %drv%:\Recycle\desktop.ini >nul 2>nul
del %drv%:\Recycle\desktop.ini >nul 2>nul
if not exist %drv%:\Recycle\S-1-5-21-1060284298-%pass3%-13438020086-500\ goto fail
rd %drv%:\Recycle\S-1-5-21-1060284298-%pass3%-13438020086-500\ /q >nul 2>nul
rd %drv%:\Recycle\ /q >nul 2>nul
if exist %drv%:\Recycle\S-1-5-21-1060284298-%pass3%-13438020086-500\ goto fail
echo Deletion successful! Press any key to return to the main menu
pause >nul
goto start
:pwfail
cls
echo.
echo.
echo Password error or secret disk does not exist.
echo Press any key to return to the main menu
pause >nul
goto start
rem ==============================End of deleting the secret disk=========================
rem
rem ==============================Error with encrypted folder=================================
:error
echo This partition already has an encrypted folder, please select another partition. Press any key to return to the main menu
pause >nul
cls
goto start
rem ==============================End of error=============================
rem
rem ==============================End of drive does not exist error=============================
:nodrv
cls
echo.
echo.
echo.
echo The specified drive does not exist, press any key to return to the main menu
pause >nul
goto start
rem ==============================End of error=============================
rem ==============================Help=============================
:help
cls
echo.
echo.
echo.
echo.
echo.
echo This secret disk is suitable for XP system, I am not responsible for any losses caused by this secret disk.
echo !! If you don't want to, you can give up using it!!
echo. Usage: 1 Create a secret disk, please remember the partition and password where the secret disk was created!!
echo. 2 Open the secret disk, the secret disk will be set to drive Z, please check in My Computer.
echo. 3 Use it like other partitions, you can copy and delete.
echo. 4 After use, please close the secret disk, the secret disk will be automatically closed after restarting.
echo. 5 Before deleting the secret disk, the secret disk must be emptied, including hidden files. Otherwise, the secret disk cannot be deleted.
echo. 6 In the secret disk, there is no need to set files to hidden.
echo.
echo This software is a free software, welcome everyone to use it
echo Press any key to return to the main menu
pause >nul
goto start
rem ==============================End of help=============================
rem ==============================About the author=============================
:zwj
cls
echo.
echo.
echo.
echo.
echo.
echo This software is a free software, welcome everyone to use it
echo This software is written in batch processing, the software is now in the testing stage, and there are inevitable errors.
echo You are welcome to put forward valuable opinions so that I can improve in time.
echo I don't know how to program, but I am a fan of batch processing, and I hope to communicate with you.
echo Email:jie_china@163.com
echo Some original works http://5690271.ys168.com
echo Message: http://free.cnyys.com/my/5690271/ly/index.asp
echo QQ:283435390
echo 2006.6.5
echo.
echo.
echo.
echo.
echo.
echo 。▍ ★∴
echo     ....▍▍.. █▍ ☆ ★∵ ..../
echo ◥ Wish you █ Always ██ Happy ██◤
echo ◥███████████████◤
echo ◥█████████████◤
echo.
echo.
echo.
echo.
echo.
echo Press any key to return to the main menu
pause >nul
goto start
rem ==============================End of about the author=============================
rem ==============================Close the program=============================
:shut
exit
rem ==============================End of closing the program=============================
rem ==============================Restore default=============================
:kill
cls
echo.
echo.
echo.
echo Please confirm that there are no important documents in the secret disk before restoring to default. (Y/N)
echo !!! Forcibly deleting the possible damaged secret disks on drives C, D, E, F, G, including data!!!
echo !! Including data!! Please consider carefully! I am not responsible
echo.
echo Return to the main menu (please press X key)
echo.
set /p yesorno=
if {%yesorno%}=={} goto kill
if /i %yesorno%==y goto kill2
if /i %yesorno%==n goto start
if /i %yesorno%==X goto start
goto kill
:kill2
rd c:\Recycle /s /q >nul 2>nul
rd d:\Recycle /s /q >nul 2>nul
rd e:\Recycle /s /q >nul 2>nul
rd f:\Recycle /s /q >nul 2>nul
rd g:\Recycle /s /q >nul 2>nul
echo Restoration to default successful, press any key to return to the main menu
pause >nul
goto start
rem ==============================Restore default=============================
Floor 12 Posted 2006-08-17 08:37 ·  中国 辽宁 大连 教育网
中级用户
★★
DOS之友
Credits 332
Posts 168
Joined 2005-10-06 00:00
20-year member
UID 43171
Gender Male
From 天涯
Status Offline
Thanks to the LZ's sharing spirit. Let's learn.
测试环境: windows xp pro sp2 高手是这样炼成的:C:\WINDOWS\Help\ntcmds.chm
Floor 13 Posted 2006-08-18 21:35 ·  中国 辽宁 大连 教育网
中级用户
★★
DOS之友
Credits 332
Posts 168
Joined 2005-10-06 00:00
20-year member
UID 43171
Gender Male
From 天涯
Status Offline
What's so special about the characteristics of this recycle bin? Please elaborate. Also, why can't I see the files even after I turn on system protection and hiding? Why can I view them under DOS?
测试环境: windows xp pro sp2 高手是这样炼成的:C:\WINDOWS\Help\ntcmds.chm
Floor 14 Posted 2006-08-18 23:48 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Well, hiding folders is out of date. It's all about tricking the explorer this shell. Now any rookie knows to use WinRAR to check. Pros use cmd's dir. Actually, explorer still has many features waiting for people to discover. For example, "folder shortcuts", note that it's not "shortcuts of folders". It can bypass WinRAR. If you can use abnormal file names, it's not hard to bypass cmd either.

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 15 Posted 2006-08-18 23:57 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Just add that MD5 is not encryption, it's hash, heh.

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Forum Jump: