无法在pwntools中创建进程

2024-07-08 16:43:37 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用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子系统。在


Tags: inpylibpackagesusrlocaldist错误

热门问题