我编写了一个脚本,该脚本使用scapy捕获应用程序的http包,但是当我运行此脚本时,它会引发错误:[错误] 13权限被拒绝。我应该为手机植根吗?
/data/user/0/com.hipipal.qpyplus/files/bin/qpython-android5.sh "/storage/emulated/0/qpython/projects/henan/main.py" && exit
python/projects/henan/main.py" && exit <
准备接收IP为 wx.precare.cn 的数据包...
Traceback (most recent call last):
File "/storage/emulated/0/qpython/projects/henan/main.py", line 51, in <module>
main()
File "/storage/emulated/0/qpython/projects/henan/main.py", line 47, in main
get_ip_pcap(ip, size=5)
File "/storage/emulated/0/qpython/projects/henan/main.py", line 33, in get_ip_pcap
d = get_pcap(ip=sender, size=size)
File "/storage/emulated/0/qpython/projects/henan/main.py", line 14, in get_pcap
dpkt = sniff(filter=filter, count=size)
File "/data/user/0/com.hipipal.qpyplus/files/lib/python2.7/site-packages/scapy/sendrecv.py", line 731, in sniff
*arg, **karg)] = iface
File "/data/user/0/com.hipipal.qpyplus/files/lib/python2.7/site-packages/scapy/arch/linux.py", line 567, in __init__
self.ins = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(type))
File "/data/user/0/com.hipipal.qpyplus/files/lib/python27.zip/socket.py", line 191, in __init__
socket.error: [Errno 13] Permission denied