无法在pwntools中创建进程

Rin*_*ind 4 python pwntools

我正在尝试使用 python 的 pwntools 。我想使用启动一个进程

from pwn import *
s = process('./step1')
Run Code Online (Sandbox Code Playgroud)

当我这样做时,我收到以下错误消息:

回溯(最近一次调用):文件“”,第1行,文件“/usr/local/lib/python2.7/dist-packages/pwnlib/tubes/process.py”,第267行,init stdin,stdout 、stderr、master、slave = self._handles(*handles) 文件“/usr/local/lib/python2.7/dist-packages/pwnlib/tubes/process.py”,第 603 行,在 _handles tty.setraw(master )文件“/usr/lib/python2.7/tty.py”,第 28 行,在 setraw tcsetattr(fd, when, mode) termios.error: (22, '无效参数')

我已经位于包含文件step1 的目录中,并且step1 是可执行的。有谁知道为什么我会收到此错误。如果有帮助的话,我正在 Windows 10 上使用 Linux 子系统。

Sam*_*Neb 8

查看此链接process()需要它的第一个参数作为程序参数列表。所以

$ ./step1 arg1 arg2
Run Code Online (Sandbox Code Playgroud)

相当于

p = process(['step1', 'arg1', 'arg2'])
Run Code Online (Sandbox Code Playgroud)