管道标准输出到特定位置,Linux

时间:2014-12-20 23:03:37

标签: linux redirect pipe piping

我希望你能在这里得到我的观点:)

没有管道命令是:

aircrack-ng handshakes.cap -w wordlist.txt

将crunch stdout重定向到aircrack:

这些命令不起作用:

crunch 8 8 abc123 | aircrack-ng handshakes.cap -w -

crunch 8 8 abc123 | aircrack-ng handshakes.cap -w-

crunch 8 8 abc123 | aircrack-ng handshakes.cap -w

2 个答案:

答案 0 :(得分:1)

crunch 8 8 abc123 | aircrack-ng -w "-" handshakes.cap

答案 1 :(得分:0)

要尝试的另一件事是流程替换:

aircrack-ng handshakes/PTCL-Broadband.cap -w <(crunch 8 8 abc123)

这是否有效取决于aircrack想要对输入文件做什么。

你也可以用两种方式来做:

crunch 8 8 abc123 > /tmp/somefile
aircrack-ng handshakes/PTCL-Broadband.cap -w /tmp/somefile