在线测试,效果图:
curl -Os https://ghproxy.com/https://raw.githubusercontent.com/hoochanlon/ihs-simple/main/d-bat/seven_z_sensei.bat&&call seven_z_sensei.bat

本地测试,效果图

附源码: https://github.com/hoochanlon/ihs-simple/blob/main/d-bat/seven_z_sensei.bat
@echo off
setlocal EnableDelayedExpansion
echo\
python -c "import datetime;now=datetime.datetime.now();print('起始时间是:', now)" 2>nul > rar_time_log.txt
IF NOT EXIST "C:\Users\%USERNAME%\Downloads\rarpasswd.txt" > nul (curl -o C:\Users\%USERNAME%\Downloads\rarpasswd.txt https://ghproxy.com/https://raw.githubusercontent.com/hoochanlon/ihs-simple/main/d-txt/rarpasswd.txt)
echo/
set used7z="%ProgramFiles%"\7-Zip\7z.exe
set "passwd_list=C:\Users\%USERNAME%\Downloads\rarpasswd.txt"
set /p input=请将文件路径复制到终端:
echo/
echo ---------开始爆破-------------
echo/
for /f "delims=" %%a in (%passwd_list%) do (
echo 正在爆破中,密码正在快速校验:"%%a"
"C:\Program Files\7-Zip\7z.exe" t -p"%%a" "%input%" >nul 2>&1
if !errorlevel! equ 0 (
echo/
echo ---------最终结果-------------
echo/
type rar_time_log.txt
python -c "import datetime;other_time=datetime.datetime.now();print('现在时间为:', other_time)" 2>nul
echo/
echo 正确密码是: "%%a"
echo/
exit /b
)
)
echo\
echo ---------------------------------------------
echo\
type rar_time_log.txt
python -c "import datetime;other_time=datetime.datetime.now();print('现在时间为:', other_time)" 2>nul
echo\
echo 没找到。
echo\
|