管道压缩到openssl中

管道压缩到openssl中,openssl,Openssl,我一直在研究如何将crunch的输出导入openssl,如: crunch 6 9 --stdout > openssl passwd -1 -salt bW2f - table -in 或 其思想是执行测试,确定用于创建已知哈希的密码或密码短语,而不必使用字列表文件。提前感谢您的帮助。您需要一个管道,但您已经颠倒了命令的顺序。另外,您需要指示openssl读取标准输入,并且必须分割crunch的输出,以便一次只传递一行到openssl 有多种选择;使用xargs的可能解决方案: cru

我一直在研究如何将crunch的输出导入openssl,如:

crunch 6 9 --stdout > openssl passwd -1 -salt bW2f - table -in


其思想是执行测试,确定用于创建已知哈希的密码或密码短语,而不必使用字列表文件。提前感谢您的帮助。

您需要一个管道,但您已经颠倒了命令的顺序。另外,您需要指示openssl读取标准输入,并且必须分割crunch的输出,以便一次只传递一行到openssl

有多种选择;使用xargs的可能解决方案:

crunch 6 9 --stdout 2> /dev/null | xargs -n 1 openssl passwd -1 -salt bW2f stdin

很好的解决方案,效果很好。非常感谢。给a+1,但因为我是新来的,所以它没有公开出现。
crunch 6 9 --stdout 2> /dev/null | xargs -n 1 openssl passwd -1 -salt bW2f stdin