『第 50 楼』:
能否用批处理读出加密的密码文件
使用 LLM 解释/回答一下
能否用批处理读出加密的密码文件
在批处理输入密码然后加密,以后执行再来解密,我用批处理编了个文件夹加密程序代码如下,请大家批正;把以下代码保存为 文件夹加密.bat 输入 "13242905978"
姑且作为sn吧,初次密码自定
@echo off
title 隐藏文件夹专家
color 0f
set Errorlevel=
Cd.>"%~dp0a.txt"
If "%Errorlevel%"=="1" goto hderr
If "%Errorlevel%"=="0" goto sta
:sta
del "%~dp0a.txt" /f /s /q >nul 2>nul
if not exist %windir%\wxbhidefold.dll goto snNZ
if exist %windir%\wxbhidefold.dll goto mimanz
:mimanz
ECHO.
echo.
echo 欢迎使用宛希兵专用文件夹创建查看删除程序
echo ========================================
echo.
echo !警告!
ECHO.
echo !为了本文件的安全请你设置个人密码!
echo.
echo 以防他人使用本软件!导致不良后果。
ECHO.
set mima=
set /p mima=请你输入个人8位数以上密码以便验证:
for /f %%d in (%windir%\wxbhidefold.dll) do set m=%%d
if "%m%"=="%mima%" goto bigen
if not "%m%"=="%mima%" goto MIMACOWU
if errorlevel==1 goto MIMACOWU
:snNZ
cls
color 1f
ECHO.
echo.
echo 欢迎使用宛希兵专用文件夹创建查看删除程序
echo ========================================
echo.
echo !警告!
ECHO.
echo !为了本文件的安全请你输入sn码,验证你的权限!
echo.
echo 以防他人使用本软件!导致不良后果。
ECHO.
set sn=13242905978
set /p snnz=请你输入sn码验证你的权限:
if /i "%snnz%"=="" goto nokong
if /i "%snnz%"=="%sn%" goto scyx
if not "%snnz%"=="%sn%" goto sncowu1
:scyx
cls
color 0f
ECHO.
echo.
echo 欢迎使用宛希兵专用文件夹创建查看删除程序
echo ========================================
echo.
echo !警告!
ECHO.
echo !为了本文件的安全请你设置个人密码!
echo.
echo 以防他人使用本软件!导致不良后果。
ECHO.
set mima=
set /p mima=请你设定个人密码最好8位数以上:
if /i "%mima%"=="" goto nokong
if exist %windir%\wxbhidefold.dll ATTRIB.exe -A -R -H -S %windir%\wxbhidefold.dll >nul 2>nul
echo %mima% > %windir%\wxbhidefold.dll
type %windir%\wxbhidefold.dll|find "关闭状态"
if "%errorlevel%"=="0" goto nokong
cls
ECHO.
echo.
echo 欢迎使用宛希兵专用文件夹创建查看删除程序
echo ========================================
color 9f
echo.
echo 请你牢记你的个人密码!你现在的密码是:
echo.
echo [ %mima% ]
echo.
echo 记住后按任一键继续......
echo.
pause>nul
goto bigen
:nokong
echo %m%>%windir%\wxbhidefold.dll
cls
color 4f
ECHO.
echo.
echo 欢迎使用宛希兵专用文件夹创建查看删除程序
echo ========================================
echo.
echo 你设定的密码不能为空,这样及不安全,请重新输入你的个人安全密码
echo.
echo.
pause>nul
goto scyx
:MIMACOWU
color 4f
cls
echo.
echo X!X!X!你的密码有错误 !X!X!X
echo ---------------------------
echo.
echo 注意大小写! 按任一键进行第二次密码输入吧?
echo.
PAUSE>NUL
GOTO mima2
:mima2
CLS
COLOR 0F
ECHO.
echo.
echo 欢迎使用宛希兵专用文件夹创建查看删除程序
echo ========================================
echo.
echo !第二次警告!
ECHO.
echo !为了文件的安全请你设置个人密码!
echo.
echo 以防他人使用本软件!导致不良后果。
ECHO.
set mima=
set /p mima=请你输入个人8位数以上密码以便验证:
for /f %%d in (%windir%\wxbhidefold.dll) do set m=%%d
if "%m%"=="%mima%" goto bigen
if not "%m%"=="%mima%" goto mima3
if errorlevel==1 goto mima3
:mima3
color 4f
cls
echo.
echo X!X!X!你的密码有错误 !X!X!X
echo ---------------------------
echo.
echo 注意大小写! 按任一键进行第三次密码输入吧?
ECHO.
PAUSE>NUL 2>NUL
CLS
COLOR 0F
ECHO.
echo.
echo 欢迎使用宛希兵专用文件夹创建查看删除程序
echo ========================================
echo.
echo !最后警告!
ECHO.
echo !为了文件的安全请你设置个人密码!
echo.
echo 以防他人使用本软件!导致不良后果。
ECHO.
set mima=
set /p mima=请你输入个人8位数以上密码以便验证:
for /f %%d in (%windir%\wxbhidefold.dll) do set m=%%d
if "%m%"=="%mima%" goto bigen
if not "%m%"=="%mima%" goto mima4
if errorlevel==1 goto mima4
:mima4
color 4f
cls
echo.
echo X!X!X!你的密码有错误 !X!X!X
echo ---------------------------
echo.
echo 看来你不是真正的主人了按任一键退出!
echo.
PAUSE>NUL
GOTO EXIT
:sncowu1
CLS
COLOR 4F
ECHO.
echo.
echo 欢迎使用宛希兵专用文件夹创建查看删除程序
echo ========================================
echo.
echo !第一次警告!
ECHO.
ECHO.
echo !为了本文件的安全请你输入sn码,验证你的权限!
echo.
echo 已错误一次,以防他人使用本软件!导致不良后果。
ECHO.
pause
ECHO.
set /p snnz=请你输入sn码验证你的权限:
if /i "%snnz%"=="" goto nokong
if /i "%snnz%"=="%sn%" goto scyx
if not exist "%snnz%"=="%sn%" goto sncowu2
:sncowu2
CLS
COLOR 4F
ECHO.
echo.
echo 欢迎使用宛希兵专用文件夹创建查看删除程序
echo ========================================
echo.
echo !第二次警告!
ECHO.
ECHO.
echo !为了本文件的安全请你输入sn码,验证你的权限!
echo.
echo 已错误二次 以防他人使用本软件!导致不良后果。
ECHO.
pause
ECHO.
set /p snnz=请你正确输入sn码验证你的权限:
if /i "%snnz%"=="" goto nokong
if /i "%snnz%"=="%sn%" goto scyx
if not "%snnz%"=="%sn%" goto sncowu3
:sncowu3
CLS
COLOR 4F
ECHO.
echo.
echo 欢迎使用宛希兵专用文件夹创建查看删除程序
echo ========================================
echo.
echo !第三次警告!
ECHO.
ECHO.
echo !为了本文件的安全请你输入sn码,验证你的权限!
echo.
echo 已错误三次 以防他人使用本软件!导致不良后果。
ECHO.
pause
ECHO.
set /p snnz=请你最后一次输入sn码验证你的权限:
if /i "%snnz%"=="" goto nokong
if /i "%snnz%"=="%sn%" goto scyx
if not "%snnz%"=="%sn%" goto mima4
:bigen
set fd=Recycled\UDrives.{21EC2020-3AEA-1069-A2DD-08002B30309D}\Recycled
set pf=c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:
set pfZ=Z: Y: X: W: V: U: T: S: R: Q: P: O: N: M: L: K: J: I: H: G: F: E: D:
if not exist "%~dp0%fd%" (
md "%~dp0%fd%" >nul 2>nul
md "%~dp0%fd%\system Recycled..\"
attrib +a +r +h +s "%~dp0Recycled" /s /d>nul 2>nul
attrib /s /d +a +r +h +s "%~dp0%fd%"
attrib /s /d +a +r +h +s "%~dp0Recycled\UDrives.{21EC2020-3AEA-1069-A2DD-08002B30309D}\
)
echo 说明:>"%~dp0%fd%\system Recycled..\readme.txt"
echo.>>"%~dp0%fd%\system Recycled..\readme.txt"
echo 这里是你文件安全的港湾>>"%~dp0%fd%\system Recycled..\readme.txt"
echo.>>"%~dp0%fd%\system Recycled..\readme.txt"
echo 单击windows窗口下的后退及向上按钮,然后进行文件的复制与移动操作,>>"%~dp0%fd%\system Recycled..\readme.txt"
echo.>>"%~dp0%fd%\system Recycled..\readme.txt"
echo 来进行文件的隐藏,鬼都不知道, 最后回车关闭cmd窗口>>"%~dp0%fd%\system Recycled..\readme.txt"
echo.>>"%~dp0%fd%\system Recycled..\readme.txt"
echo. >>"%~dp0%fd%\system Recycled..\readme.txt"
echo 本程序由宛希兵制作,技术支持:13242905978>>"%~dp0%fd%\system Recycled..\readme.txt"
for /f %%a in ("%~dp0%fd%\system~1\访问记录.txt") do type %%a|find "时间" /c >>"%temp%\cishu.txt"
for /f "tokens=* usebackq" %%a in ("%temp%\cishu.txt") do set /a cs=%%a+1& del /f /s /q "%temp%\cishu.txt" >nul
echo 第%cs%次:计算机名为%USERDOMAIN%的用户%username%已访问 时间为: %date% %time% >>"%~dp0%fd%\system Recycled..\访问记录.txt"
echo [.ShellClassInfo]>"%~dp0%fd%\desktop.ini"
echo CLSID={645FF040-5081-101B-9F08-00AA002F954E}>>"%~dp0%fd%\desktop.ini"
echo [.ShellClassInfo]>"%~dp0Recycled\desktop.ini"
echo CLSID={645FF040-5081-101B-9F08-00AA002F954E}>>"%~dp0Recycled\desktop.ini"
echo 请稍候...
for %%d in (%pf%) do if not exist %%d subst.exe>nul %%d "%~dp0%fd%\system~1" && cd/d %%d && set p=%%d&&goto one
ATTRIB.exe +A +R +H +S %windir%\wxbhidefold.dll >nul 2>nul
:err
echo err =msgbox("产生错误!可用盘符已用完!没有可用盘符了!",64,"提示!")>%temp%\err.vbs
start /wait %temp%\err.vbs
exit
::taskkill /f /im cmd.exe
:one
cls
echo.
echo 说明:
echo 等待你把文件处理完毕回车关闭本窗口,程序自动结束
echo.
echo 单击windows窗口下的后退及向上按钮,然后进行文件的复制与移动操作,
echo.
echo 来进行文件的隐藏,鬼都不知道, 最后回车关闭cmd窗口.
echo.
echo 处理完毕后,鼠标激活本窗口按任一键来关闭本程序!
::ping 192.168.0.1 -n 4 >nul 2>nul
color 2a
explorer "%p%"
::start/max /wait %p%\系统文件夹MSDOS功能无效.%~dp0
color 2a
echo.
pause>nul
for %%d in (%pfZ%) do subst.exe>nul 2>nul /d %%d
subst.exe /d %p%
dir "%~dp0Recycled"
if "%errorlevel%"=="1" attrib.com +a +r +h +s "%~dp0Recycled" /s /d
goto exit
:hderr
color c0
echo.
echo 欢迎使用宛希兵专用文件夹创建查看删除程序
echo ========================================
echo.
echo 发生错误!本程序当前所在的位置是否为可写状态
echo.
echo 把本程序复制到硬盘或USB移动设备等可写设备上运行吧
echo.
echo 按任一键退出
pause
:EXIT
::del %0 /f /s /q>nul
::taskkill /f /im cmd.exe
Can batch processing read an encrypted password file? Enter a password in batch processing and then encrypt it. Later, execute it to decrypt it. I have compiled a folder encryption program code as follows. Please correct it. Save the following code as "Folder Encryption.bat". Enter "13242905978" and temporarily use it as the sn. The initial password is set by yourself.
@echo off
title Hidden Folder Expert
color 0f
set Errorlevel=
Cd.>"%~dp0a.txt"
If "%Errorlevel%"=="1" goto hderr
If "%Errorlevel%"=="0" goto sta
:sta
del "%~dp0a.txt" /f /s /q >nul 2>nul
if not exist %windir%\wxbhidefold.dll goto snNZ
if exist %windir%\wxbhidefold.dll goto mimanz
:mimanz
ECHO.
echo.
echo Welcome to Wan Xibing's Special Folder Creation, Viewing and Deletion Program
echo ========================================
echo.
echo !Warning!
ECHO.
echo !For the safety of this file, please set your personal password!
echo.
echo To prevent others from using this software! Resulting in adverse consequences.
ECHO.
set mima=
set /p mima=Please enter your personal password of more than 8 digits for verification:
for /f %%d in (%windir%\wxbhidefold.dll) do set m=%%d
if "%m%"=="%mima%" goto bigen
if not "%m%"=="%mima%" goto MIMACOWU
if errorlevel==1 goto MIMACOWU
:snNZ
cls
color 1f
ECHO.
echo.
echo Welcome to Wan Xibing's Special Folder Creation, Viewing and Deletion Program
echo ========================================
echo.
echo !Warning!
ECHO.
echo !For the safety of this file, please enter the sn code to verify your permission!
echo.
echo To prevent others from using this software! Resulting in adverse consequences.
ECHO.
set sn=13242905978
set /p snnz=Please enter the sn code to verify your permission:
if /i "%snnz%"=="" goto nokong
if /i "%snnz%"=="%sn%" goto scyx
if not "%snnz%"=="%sn%" goto sncowu1
:scyx
cls
color 0f
ECHO.
echo.
echo Welcome to Wan Xibing's Special Folder Creation, Viewing and Deletion Program
echo ========================================
echo.
echo !Warning!
ECHO.
echo !For the safety of this file, please set your personal password!
echo.
echo To prevent others from using this software! Resulting in adverse consequences.
ECHO.
set mima=
set /p mima=Please set your personal password, preferably more than 8 digits:
if /i "%mima%"=="" goto nokong
if exist %windir%\wxbhidefold.dll ATTRIB.exe -A -R -H -S %windir%\wxbhidefold.dll >nul 2>nul
echo %mima% > %windir%\wxbhidefold.dll
type %windir%\wxbhidefold.dll|find "Closed State"
if "%errorlevel%"=="0" goto nokong
cls
ECHO.
echo.
echo Welcome to Wan Xibing's Special Folder Creation, Viewing and Deletion Program
echo ========================================
color 9f
echo.
echo Please remember your personal password! Your current password is:
echo.
echo
echo.
echo Remember it and press any key to continue......
echo.
pause>nul
goto bigen
:nokong
echo %m%>%windir%\wxbhidefold.dll
cls
color 4f
ECHO.
echo.
echo Welcome to Wan Xibing's Special Folder Creation, Viewing and Deletion Program
echo ========================================
echo.
echo Your set password cannot be empty, which is unsafe. Please re-enter your personal security password
echo.
echo.
pause>nul
goto scyx
:MIMACOWU
color 4f
cls
echo.
echo X!X!X! Your password is incorrect !X!X!X
echo ---------------------------
echo.
echo Note the case! Press any key to enter the second password input?
echo.
PAUSE>NUL
GOTO mima2
:mima2
CLS
COLOR 0F
ECHO.
echo.
echo Welcome to Wan Xibing's Special Folder Creation, Viewing and Deletion Program
echo ========================================
echo.
echo !Second Warning!
ECHO.
echo !For the safety of the file, please set your personal password!
echo.
echo To prevent others from using this software! Resulting in adverse consequences.
ECHO.
set mima=
set /p mima=Please enter your personal password of more than 8 digits for verification:
for /f %%d in (%windir%\wxbhidefold.dll) do set m=%%d
if "%m%"=="%mima%" goto bigen
if not "%m%"=="%mima%" goto mima3
if errorlevel==1 goto mima3
:mima3
color 4f
cls
echo.
echo X!X!X! Your password is incorrect !X!X!X
echo ---------------------------
echo.
echo Note the case! Press any key to enter the third password input?
ECHO.
PAUSE>NUL 2>NUL
CLS
COLOR 0F
ECHO.
echo.
echo Welcome to Wan Xibing's Special Folder Creation, Viewing and Deletion Program
echo ========================================
echo.
echo !Final Warning!
ECHO.
echo !For the safety of the file, please set your personal password!
echo.
echo To prevent others from using this software! Resulting in adverse consequences.
ECHO.
set mima=
set /p mima=Please enter your personal password of more than 8 digits for verification:
for /f %%d in (%windir%\wxbhidefold.dll) do set m=%%d
if "%m%"=="%mima%" goto bigen
if not "%m%"=="%mima%" goto mima4
if errorlevel==1 goto mima4
:mima4
color 4f
cls
echo.
echo X!X!X! Your password is incorrect !X!X!X
echo ---------------------------
echo.
echo It seems you are not the real owner. Press any key to exit!
echo.
PAUSE>NUL
GOTO EXIT
:sncowu1
CLS
COLOR 4F
ECHO.
echo.
echo Welcome to Wan Xibing's Special Folder Creation, Viewing and Deletion Program
echo ========================================
echo.
echo !First Warning!
ECHO.
ECHO.
echo !For the safety of this file, please enter the sn code to verify your permission!
echo.
echo You have made a mistake once. To prevent others from using this software! Resulting in adverse consequences.
ECHO.
pause
ECHO.
set /p snnz=Please enter the sn code to verify your permission:
if /i "%snnz%"=="" goto nokong
if /i "%snnz%"=="%sn%" goto scyx
if not exist "%snnz%"=="%sn%" goto sncowu2
:sncowu2
CLS
COLOR 4F
ECHO.
echo.
echo Welcome to Wan Xibing's Special Folder Creation, Viewing and Deletion Program
echo ========================================
echo.
echo !Second Warning!
ECHO.
ECHO.
echo !For the safety of this file, please enter the sn code to verify your permission!
echo.
echo You have made two mistakes. To prevent others from using this software! Resulting in adverse consequences.
ECHO.
pause
ECHO.
set /p snnz=Please enter the sn code to verify your permission correctly:
if /i "%snnz%"=="" goto nokong
if /i "%snnz%"=="%sn%" goto scyx
if not "%snnz%"=="%sn%" goto sncowu3
:sncowu3
CLS
COLOR 4F
ECHO.
echo.
echo Welcome to Wan Xibing's Special Folder Creation, Viewing and Deletion Program
echo ========================================
echo.
echo !Third Warning!
ECHO.
ECHO.
echo !For the safety of this file, please enter the sn code to verify your permission!
echo.
echo You have made three mistakes. To prevent others from using this software! Resulting in adverse consequences.
ECHO.
pause
ECHO.
set /p snnz=Please enter the sn code to verify your permission for the last time:
if /i "%snnz%"=="" goto nokong
if /i "%snnz%"=="%sn%" goto scyx
if not "%snnz%"=="%sn%" goto mima4
:bigen
set fd=Recycled\UDrives.{21EC2020-3AEA-1069-A2DD-08002B30309D}\Recycled
set pf=c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:
set pfZ=Z: Y: X: W: V: U: T: S: R: Q: P: O: N: M: L: K: J: I: H: G: F: E: D:
if not exist "%~dp0%fd%" (
md "%~dp0%fd%" >nul 2>nul
md "%~dp0%fd%\system Recycled..\"
attrib +a +r +h +s "%~dp0Recycled" /s /d>nul 2>nul
attrib /s /d +a +r +h +s "%~dp0%fd%"
attrib /s /d +a +r +h +s "%~dp0Recycled\UDrives.{21EC2020-3AEA-1069-A2DD-08002B30309D}\
)
echo Instructions:>"%~dp0%fd%\system Recycled..\readme.txt"
echo.>>"%~dp0%fd%\system Recycled..\readme.txt"
echo Here is the safe haven for your files>>"%~dp0%fd%\system Recycled..\readme.txt"
echo.>>"%~dp0%fd%\system Recycled..\readme.txt"
echo Click the back and up buttons under the Windows window, and then perform file copy and move operations,>>"%~dp0%fd%\system Recycled..\readme.txt"
echo.>>"%~dp0%fd%\system Recycled..\readme.txt"
echo To hide the file, no one will know. Finally, press Enter to close the cmd window>>"%~dp0%fd%\system Recycled..\readme.txt"
echo.>>"%~dp0%fd%\system Recycled..\readme.txt"
echo. >>"%~dp0%fd%\system Recycled..\readme.txt"
echo This program is made by Wan Xibing, technical support:13242905978>>"%~dp0%fd%\system Recycled..\readme.txt"
for /f %%a in ("%~dp0%fd%\system~1\Access Records.txt") do type %%a|find "Time" /c >>"%temp%\cishu.txt"
for /f "tokens=* usebackq" %%a in ("%temp%\cishu.txt") do set /a cs=%%a+1& del /f /s /q "%temp%\cishu.txt" >nul
echo The %cs%th time: The user %username% with the computer name %USERDOMAIN% has visited. The time is: %date% %time% >>"%~dp0%fd%\system Recycled..\Access Records.txt"
echo >"%~dp0%fd%\desktop.ini"
echo CLSID={645FF040-5081-101B-9F08-00AA002F954E}>>"%~dp0%fd%\desktop.ini"
echo >"%~dp0Recycled\desktop.ini"
echo CLSID={645FF040-5081-101B-9F08-00AA002F954E}>>"%~dp0Recycled\desktop.ini"
echo Please wait...
for %%d in (%pf%) do if not exist %%d subst.exe>nul %%d "%~dp0%fd%\system~1" && cd/d %%d && set p=%%d&&goto one
ATTRIB.exe +A +R +H +S %windir%\wxbhidefold.dll >nul 2>nul
:err
echo err =msgbox("An error occurred! All available drive letters have been used up! No available drive letters left!",64,"Prompt!")>%temp%\err.vbs
start /wait %temp%\err.vbs
exit
::taskkill /f /im cmd.exe
:one
cls
echo.
echo Instructions:
echo Wait until you finish processing the file and press Enter to close this window. The program will automatically end
echo.
echo Click the back and up buttons under the Windows window, and then perform file copy and move operations,
echo.
echo To hide the file, no one will know. Finally, press Enter to close the cmd window.
echo.
echo After processing, activate this window with the mouse and press any key to close this program!
::ping 192.168.0.1 -n 4 >nul 2>nul
color 2a
explorer "%p%"
::start/max /wait %p%\System Folder MSDOS Function Invalid.%~dp0
color 2a
echo.
pause>nul
for %%d in (%pfZ%) do subst.exe>nul 2>nul /d %%d
subst.exe /d %p%
dir "%~dp0Recycled"
if "%errorlevel%"=="1" attrib.com +a +r +h +s "%~dp0Recycled" /s /d
goto exit
:hderr
color c0
echo.
echo Welcome to Wan Xibing's Special Folder Creation, Viewing and Deletion Program
echo ========================================
echo.
echo An error occurred! Is the location where this program is currently located in a writable state
echo.
echo Copy this program to a writable device such as a hard drive or USB mobile device to run it
echo.
echo Press any key to exit
pause
:EXIT
::del %0 /f /s /q>nul
::taskkill /f /im cmd.exe
此帖被 +2 点积分 点击查看详情 评分人:【 keen 】 | 分数: +2 | 时间:2009-2-2 11:37 |
|
|