我正在尝试使用python的pwntools。我想用
from pwn import *
s = process('./step1')
执行此操作时,我收到以下错误消息:
Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/pwnlib/tubes/process.py", line 267, in init stdin, stdout, stderr, master, slave = self._handles(*handles) File "/usr/local/lib/python2.7/dist-packages/pwnlib/tubes/process.py", line 603, in _handles tty.setraw(master) File "/usr/lib/python2.7/tty.py", line 28, in setraw tcsetattr(fd, when, mode) termios.error: (22, 'Invalid argument')
我已经在包含文件step1的目录中,step1是可执行的。有人知道我为什么会犯这个错误吗。如果有帮助的话,我将在Windows10上使用Linux子系统。在
签出this link。
process()
需要其第一个参数作为程序参数的列表。所以相当于
^{pr2}$相关问题 更多 >
编程相关推荐