Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

70亿超大记录字典 updatedb 失败 #24

Open
wgetnz opened this issue Jan 28, 2023 · 4 comments
Open

70亿超大记录字典 updatedb 失败 #24

wgetnz opened this issue Jan 28, 2023 · 4 comments

Comments

@wgetnz
Copy link

wgetnz commented Jan 28, 2023

F:\pwcrack-framework>ruby pwcrack initdb "D:\Desktop\devtools\big.txt.unique.txt"
[*] Start creating the local DB...

F:/pwcrack-framework/lib/cli_cmd/initdb.rb:33:in readlines': index 268435456 too big (IndexError) from F:/pwcrack-framework/lib/cli_cmd/initdb.rb:33:in initdb'
from F:/pwcrack-framework/lib/cli.rb:82:in get_input' from F:/pwcrack-framework/lib/cli.rb:61:in commandline!'
from pwcrack:24:in `

'

F:\pwcrack-framework>

70亿数据无法导入

@wgetnz
Copy link
Author

wgetnz commented Jan 28, 2023

updatedb 超大数据失败
F:\pwcrack-framework>ruby pwcrack updatedb
[*] Start update the local DB...

F:/pwcrack-framework/lib/cli_cmd/updatedb.rb:34:in readlines': index 268435456 too big (IndexError) from F:/pwcrack-framework/lib/cli_cmd/updatedb.rb:34:in updatedb'
from F:/pwcrack-framework/lib/cli.rb:84:in get_input' from F:/pwcrack-framework/lib/cli.rb:61:in commandline!'
from pwcrack:24:in `

'

F:\pwcrack-framework>

@L-codes
Copy link
Owner

L-codes commented Jan 30, 2023

假如你的字典不重复的可见字符组成,那你字典大于 32G,生成的本地字典理论上有 691G 左右,而目前看本框架的支持最大字典数是 2.6亿条,你确定需要导入70亿条记录的字典?

@L-codes L-codes changed the title 超大文本入库失败 70亿超大记录字典 updatedb 失败 Jan 30, 2023
@wgetnz
Copy link
Author

wgetnz commented Jan 30, 2023

假如你的字典不重复的可见字符组成,那你字典大于 32G,生成的本地字典理论上有 691G 左右,而目前看本框架的支持最大字典数是 2.6亿条,你确定需要导入70亿条记录的字典?

需要的,空间足够,密码来自rockyou2021.txt+自己收集后去重的数据,86G左右,79亿+条

@L-codes
Copy link
Owner

L-codes commented Jan 30, 2023

readlines 的限制出错好解决,但是生成过程是存储在内存中再保存到本地,大小估算有 800多G,哪怕内存有压缩功能,也需要4~600G的运行内存,你如果开启swap来跑,也会很慢,哪怕你机器性能好,updatedb成功了,你后续调用 localdb 插件查询的时候也会很慢,目前框架没考虑到这么大记录的数据库管理和搜索,建议用其它成熟的彩虹表工具

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants