C Code of binary format3
Python Code
我基本上是在python脚本中运行“(./format3 | attackString)| grep searchString”,
但是我无法访问format3进程的管道(代码中的baby),因为它在communicate调用之后是关闭的
我需要communicate调用将我的attackString提供给二进制文件。
我知道我可以将baby的stdout写入一个文件,然后将该文件用作grep的stdin,但我觉得必须有另一种方法来解决这个问题
Tags:
考虑使用
sh
库来解决函数组合的管道问题: https://amoffat.github.io/sh/#piping这是一个非常整洁的图书馆,似乎只解决你的问题
相关问题 更多 >
编程相关推荐