我试图在密码保护的归档文件中使用命令行中的RAR:
$ rar t spe_05_1.part13.rar
RAR 5.11 Copyright (c) 1993-2014 Alexander Roshal 27 Aug 2014
Trial version Type RAR -? for help
Enter password (will not be echoed) for spe_05_1.part13.rar:
RAR似乎没有密码开关。它确实提供了一种在存档中设置密码的方法,但我无法找到将密码传递给用于测试(t命令)或提取(x命令)的命令的方法:
我有这样的代码
rar = rarfile.RarFile(source_filename)
files = rar.namelist()
count_files =len(files)
i = 0
for f in files:
i = i+1
percent = int((i/float(count_files))*100)
rar.extract(f,dest_dir,self.pwd)
self.emit(pe
我有下面的代码,这将取消所有rar文件,但它失败的第一个rar需要密码,然后退出。我试着加上“真”,但没有运气
find ./downloaded/ -type f -iname \*.rar | while read ss
do
ss="$(realpath "$ss")"
cd "$(dirname "$ss")"
unrar x -r -o+ "$ss" || true
done
我试图在Kali Linux中安装rar来创建rar存档文件。我跟踪了一些文章,这些文章说要使用这个命令:
sudo apt install rar。然而,它返回时:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package rar is not available, but is referred to by another package.
This may mean that the package is missing, has be
我在txt中有1000 s的rar文件和密码列表。我想解开所有那些尝试所有密码的文件。
试过:
for file in "$(ls *.rar)"; do for f in "$(cat pass.txt)"; do unrar x -p"${f} "${file}; done; done
但不起作用。用unrar 7za试过,但还是失败了
如果在Ubuntu或Centos上使用RAR,这是用于压缩单个文件夹(其中包含子文件夹)的命令,或者是在单个存档中压缩目录中所有文件夹的命令:
rar a -m0 -r name.rar
哪里
-m0是压缩级别
-r递归模式
但是如果我想压缩每个文件夹呢?使用哪些命令?
我希望在压缩每个文件夹时保留目录树。
我也试过这个命令,
for folder in */; do echo rar a -m0 -r "${folder%/}.rar" "$folder"; done
但它没有给我任何行动,但在终点站似乎是这样的:
user@hppro ~
$ ls -l
t
我正在研究一种类似于软件( .bat文件)的暴力破解攻击,它会尝试提取一个带有一些预定义密码的文件。我的算法是这样的:
"C:\Program Files\WinRAR\WinRAR.exe" x -inul -ppassword1 "path to my rar file"
if %ERRORLEVEL% GEQ 1 GOTO try2
GOTO exit
:try2
"C:\Program Files\WinRAR\WinRAR.exe" x -inul -ppassword2 "path to my rar file"
我正在努力学习约翰。我已经通过了常见问题和本教程,但被卡住了。
我做了一个RAR4密码哈希。太简单了。密码是“测试”。我现在想用工具破解它。
我已将其保存到"test.txt".It中的一个文件中:
Red dead redemption.rar:$RAR3$*1*de613099dc859cfd*00000000*16*0*1*b52125c28c4fc60a1c00f313d0fb68ca*33:1::Red dead redemption.torrent
运行以下命令时,我将得到“未加载密码散列”
我该怎么做才能让它正常工作呢?
Command: john.exe te
我有了一个想法,用钥匙做一个类似keychain的东西,它将包含可能的密码,以提取我的受密码保护的档案。因此密码将保持隐藏状态,但用户仍然可以在不知道密码的情况下提取存档。
问题是,如果我通过参数发送密码,它会显示在命令行参数中。
set mypass=12345
unrar.exe x test.rar -p%mypass%
我也尝试通过回显发送pass,但似乎不起作用
@echo off
@echo 12345 | unrar.exe x test.rar -p
如何解决这个问题?
下面是一个简单的bash脚本,用于测试rar文件中的少量密码。当密码包含特殊字符(!)时,我看到选项(-p)被完全解析为引号(')。
#!/bin/bash -x
pwd=`echo Sei{0..9}{0..9}b{0..9}axq!zx`
#pwd=Sei03b4axq!zx
file="test.rar"
for eachpwd in $pwd
do
eval unrar x "$file" -p"$eachpwd" id 2>/dev/null 1>/dev/null
c=$?
if [ $c