有安全意识的人常常对一些文档进行加密,但是不幸的时经常忘记密码。。。。。。在这个moment,你可以使用RarCrack对rar,7z,zip文件进行破解,该软件开源免费,使用暴力破解,以GPL-2发布。

最新版为rarcrack-0.2

软件主页:http://rarcrack.sourceforge.net/

作者提醒:Please don't use this program for any illegal things!

1.下载软件,解压:
tar xvfj rarcrack-0.2.tar.bz2

2.安装libxml2-dev包
sudo apt-get install libxml2-dev

3.编译并安装
make
sudo make install

4.测试
源程序里带的test.rar、test.zip、test.7z压缩包可供测试
rarcrack test.rar

大概几分钟后提示:GOOD: password cracked: '100'

不过我安装的时候报了一堆错,如下:

chao@chao:~/rarcrack-0.2$ make
gcc -pthread rarcrack.c `xml2-config --libs --cflags` -O2 -o rarcrack
/bin/sh: xml2-config:找不到命令
In file included from rarcrack.c:21:
rarcrack.h:25:48: error: libxml/xmlmemory.h: 没有该文件或目录
rarcrack.h:26:27: error: libxml/parser.h: 没有该文件或目录
rarcrack.h:27:36: error: libxml/parserInternals.h: 没有该文件或目录
rarcrack.h:28:25: error: libxml/tree.h: 没有该文件或目录
rarcrack.h:29:28: error: libxml/threads.h: 没有该文件或目录
rarcrack.c:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘pwdMutex’
rarcrack.c:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘status’
rarcrack.c:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘finishedMutex’
rarcrack.c: In function ‘savestatus’:
rarcrack.c:46: error: ‘xmlNodePtr’ undeclared (first use in this function)
rarcrack.c:46: error: (Each undeclared identifier is reported only once
rarcrack.c:46: error: for each function it appears in.)
rarcrack.c:46: error: expected ‘;’ before ‘root’
rarcrack.c:47: error: expected ‘;’ before ‘node’
rarcrack.c:48: error: ‘xmlChar’ undeclared (first use in this function)
rarcrack.c:48: error: ‘tmp’ undeclared (first use in this function)
rarcrack.c:49: error: ‘status’ undeclared (first use in this function)
rarcrack.c:50: error: ‘root’ undeclared (first use in this function)
rarcrack.c:52: error: ‘finishedMutex’ undeclared (first use in this function)
rarcrack.c:53: error: ‘node’ undeclared (first use in this function)
rarcrack.c:55: error: ‘pwdMutex’ undeclared (first use in this function)
rarcrack.c:56: error: expected ‘)’ before ‘xmlChar’
rarcrack.c:66: error: expected ‘)’ before ‘xmlChar’
rarcrack.c: In function ‘loadstatus’:
rarcrack.c:87: error: ‘xmlNodePtr’ undeclared (first use in this function)
rarcrack.c:87: error: expected ‘;’ before ‘root’
rarcrack.c:88: error: expected ‘;’ before ‘node’
rarcrack.c:89: error: ‘xmlParserCtxtPtr’ undeclared (first use in this function)
rarcrack.c:89: error: expected ‘;’ before ‘parserctxt’
rarcrack.c:96: error: ‘status’ undeclared (first use in this function)
rarcrack.c:99: error: ‘root’ undeclared (first use in this function)
rarcrack.c:103: error: ‘parserctxt’ undeclared (first use in this function)
rarcrack.c:104: error: ‘node’ undeclared (first use in this function)
rarcrack.c:108: error: ‘XML_SUBSTITUTE_BOTH’ undeclared (first use in this function)
rarcrack.c:108: warning: assignment makes pointer from integer without a cast
rarcrack.c:114: warning: assignment makes pointer from integer without a cast
rarcrack.c:124: warning: assignment makes pointer from integer without a cast
rarcrack.c:127: error: ‘finishedMutex’ undeclared (first use in this function)
rarcrack.c: In function ‘nextpass’:
rarcrack.c:170: error: ‘pwdMutex’ undeclared (first use in this function)
rarcrack.c: In function ‘status_thread’:
rarcrack.c:182: error: ‘finishedMutex’ undeclared (first use in this function)
rarcrack.c:188: error: ‘pwdMutex’ undeclared (first use in this function)
rarcrack.c: In function ‘crack_thread’:
rarcrack.c:206: warning: comparison between pointer and integer
rarcrack.c:208: error: ‘finishedMutex’ undeclared (first use in this function)
rarcrack.c:205: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
rarcrack.c: In function ‘init’:
rarcrack.c:250: error: ‘pwdMutex’ undeclared (first use in this function)
rarcrack.c:251: error: ‘finishedMutex’ undeclared (first use in this function)
rarcrack.c:283: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘char (*)[300]’
rarcrack.c:317: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
rarcrack.c: In function ‘main’:
rarcrack.c:351: error: ‘status’ undeclared (first use in this function)
rarcrack.c:353: error: ‘pwdMutex’ undeclared (first use in this function)
rarcrack.c:354: error: ‘finishedMutex’ undeclared (first use in this function)
make: *** [all] 错误 1

解决:

到新立得软件管理器里安装libxml2-dev后就OK了,不过有几个warning:

chao@chao:~/rarcrack-0.2$ make
gcc -pthread rarcrack.c `xml2-config --libs --cflags` -O2 -o rarcrack
rarcrack.c: In function ‘crack_thread’:
rarcrack.c:206: warning: comparison between pointer and integer
rarcrack.c:205: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
rarcrack.c: In function ‘init’:
rarcrack.c:283: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘char (*)[300]’
rarcrack.c:317: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result

warning嘛,就是小问题,继续make install

chao@chao:~/rarcrack-0.2$ sudo make install
install -s rarcrack /usr/bin
mkdir -p /usr/share/doc/rarcrack
chmod 755 /usr/share/doc/rarcrack
install -m 644 -t /usr/share/doc/rarcrack CHANGELOG LICENSE README README.html RELEASE_NOT

OK了,呵呵!安装完毕。我作了一个加密的rar文件,看看多长时间能破解成功吧!

对了 介绍下如何使用:

Using RarCrack:
---------------------------------------------------
rarcrack your_encrypted_archive.ext [--threads thread_num] [--type rar|zip|7z]

rarcrack 你要破解的加密文件所在的路径 --threads 破解线程数 --type 文件的格式rar|zip|7z

使用中有问题的可以给我留言,呵呵!

使用方法:

Using RarCrack:

如何使用rarcrack:
---------------------------------------------------
rarcrack your_encrypted_archive.ext [--threads thread_num] [--type rar|zip|7z]

rarcrack 你要破解的压缩文件 [--threads 破解线程数] [--type rar|zip|7z]
---------------------------------------------------
Everything in [] are optional, rarcrack default crack two threads and autodetect the archive type. If the detection wrong you can specify the correct file type with the type parameter. RarCrack currently crack maximum in 12 threads.
[]里面的都是可选项,rarcrack默认是两个线程,自动检测压缩文件类型。如果自动检测文件类型不正确,你可以通过--type加参数手动指定正确的类型。rarcrack目前最多支持12线程。
After the cracking started RarCrack will print the current status of cracking and save it's to a status file. If you want more specific password character set, you need to run RarCrack to create the XML status file (3 sec).

破解开始后rarcrack会显示当前状态,并且将其保存在一个状态文件中。如果你想指定更多的密码字符设置,你可以手动修改运行rarcrack后生成的xml文件(运行三秒后自动生成)。
---------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<rarcrack>
<abc>0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</abc>
<current>uU</current>
<good_password></good_password>
</rarcrack>
---------------------------------------------------
This is a sample XML file, and you see there is a character set. If you want, you can modify this file and when you start RarCrack again the program will be use new variables.
Warning: Take care when you changing this file, make sure the current password don't have characters outside the abc[character set]!

这是一个xml文件例子,你可以看到这里可以设置密码字符,如果你愿意,可以编辑此文件,再次运行rarcrack的时候修改生效。
警告:编辑此文件时务必小心,保证当前密码字符不会超出<abc>和</abc>之间的字符。

破解例子:
破解/tmp/目录下的test.rar文件的密码:
cd /tmp/

rarcrack test.rar --type rar --threads 12
RarCrack! 0.2 by David Zoltan Kedves (kedazo@gmail.com)

INFO: the specified archive type: rar
INFO: cracking test.rar, status file: test.rar.xml
INFO: Resuming cracking from password: '0'
Probing: '028' [42 pwds/sec]
GOOD: password cracked: '100'
看这里,密码破解出来了,是100

Linux平台下rar, 7z, zip压缩文件密码破解相关推荐

  1. zip压缩文件暴力破解

    对于一个zip格式的压缩包,默认密码是6位数字.暴力破解的基本思路是,调用Python中的zipfile模块的trypassword函数,尝试从0到999999的所有数字,成功解压时即为相应的压缩密码 ...

  2. macos\Linux下使用fcrackzip破解zip压缩文件密码

    加密解密:http://www.lybbn.cn/data/datas.php?yw=133 1.fcrackzip简介 fcrackzip是一款专门破解zip类型压缩文件密码的工具,工具小巧方便.破 ...

  3. ZIP压缩文件密码忘记了怎么办?怎么破解?

    首先强力声明一点:zip.rar密码,绝对没有直接获取密码.清除密码的方式,那样说的一概是骗人的! 唯一的办法:破解. 破解方式有两种: 第一种是枚举破解, 也就是暴力破解,按规律逐一尝试各种组合, ...

  4. 压缩文件 密码破解 FCrackZip

    前言 网上找课本pdf,下载完之后发现需要密码,然后去找破解软件,找到了FCrackZip 的用法,中间也有一些坑,写出来希望能帮助大家 步骤 我是在阿里云上安装FCrackZip 进行破解的, 我看 ...

  5. zip、rar压缩文件密码破解——使用ARCHPR Professional Edition

    直链下载地址: https://pan.abn.cc/weiyun/down.php?u=82441366e3c1f43fc69210e8ece93470.undefined.zip (压缩包内含解压 ...

  6. 徐松亮Python教学-黑客篇-zip压缩文件的破解

    版权声明:本文为博主徐松亮的原创作品,未经允许不得转载,多谢支持!QQ:5387603 推荐点击此链接:欢迎进入徐松亮博客一站式导航搜索(随时更新) 首先,此文档已学习为主,不要用来随意破解别人的zi ...

  7. 如何解开ZIP压缩文件密码?

    ZIP是我们经常使用的压缩包格式,加密压缩包文件大家应该也不陌生,我们可以给自己的压缩包进行加密来保护压缩包的文件,在网上下载的文件也有可能是加密的压缩包文件. 加密的压缩包文件,需要输入正确的密码才 ...

  8. 压缩文件密码破解神器rarcrack

    http://hi.baidu.com/sdusoul/item/b11d13ee1181b4225b2d6401 采用的是暴力破解,可以指定特定密码,否则暴力破解,很长时间吧要,三位密码100需要2 ...

  9. 向微信公众号文章中添加mp4、rar、zip等文件给用户下载

    现在随着微信公众号的使用率越来越高 大家对公众号的功能需求也越来越广   假如想在文章中添加一个MP4.rar.zip等压缩文件 让用户来浏览.下载.编辑,就需要通过微附件小程序来实现了 使用微附件小 ...

  10. 【Python黑帽子】——简易的ZIP文件密码破解器

    作者名:Demo不是emo  主页面链接:主页传送门 创作初心:一切为了她 座右铭:不要让时代的悲哀成为你的悲哀 专研方向:网络安全,数据结构 每日emo:突然感觉也没什么好emo的了,仿佛时间已经将 ...

最新文章

  1. JSON数据从MongoDB迁移到MaxCompute最佳实践
  2. 蓝桥杯练习系统习题-基础训练
  3. 实时通信服务中的语音解混响算法实践
  4. 015:字符串:格式化
  5. 【Python】使用 eval 实现反射
  6. 开源视频平台:Kaltura
  7. UVA 12299 - RMQ with Shifts 线段树
  8. 机器学习之MCMC算法(转载)
  9. java 日期 中文_JAVA的时间类型转换为中文大写方法
  10. Clip染色质免疫沉淀(CLIP测序)
  11. 深度学习:GPU云服务器的租用
  12. 浮动广告代码在网页两侧
  13. MapReduce之多MapReduce执行
  14. 新增商品(商品维护模块)
  15. 利用腾讯 优图visionseed硬件 实现人脸疲劳检测项目(包括数据读取,数据保存,数据web端展示)
  16. html----四种“返回按钮”的使用
  17. 关于网上蛋糕店销售系统的设计答辩问题及回答
  18. 拒绝监视---Win10隐私防护刻不容缓 -- 三款win10系统隐私设置神器让Win10更安全!!!
  19. python多线程读图片
  20. mysql 冗余字段 同步_冗余数据一致性,到底如何保证?

热门文章

  1. 作业帮联手北师大、中国教育电视台以科技推进普惠教育发展
  2. 而立之年,学习编程,
  3. 深度评测阿里云、腾讯云和华为云
  4. 【路径规划】基于RRT算法实现多机器人路径规划,多起点,统一终点matlab源码
  5. Linux:Linux下进程间通信方式的学习
  6. AIX上通过FTP下载压缩包损坏
  7. virtualbox vbox虚拟机去虚拟化软件使用教程 硬件级虚拟机系统 超能版 V2020
  8. Google Colab解压压缩包
  9. 猿人时代java_猿人时代攻略
  10. 2022学生党蓝牙耳机怎么选?最新蓝牙耳机排行榜