2010-08-16 71 views
1

从命令提示符(Windows XP)运行scapy时,输出无法存储。当下面的命令在命令提示被执行:Python:scapy的输出不能存储在文本文件中?

scapy >C:\dir.txt 

以下错误显示出来:

C:\automation\atg\GeneralFiles_AC\ScapyExe>scapy >C:\dir.txt INFO: 
Can't import python gnuplot wrapper . Won't be able to plot. INFO: 
Can't import PyX. Won't be able to use psdump() or pdfdump(). INFO: No 
IPv6 support in kernel WARNING: No route found for IPv6 destination :: (no default route?) 
C:\Python26\lib\site-packages\scapy\crypto\cert.py:6: 
DeprecationWarning?: the sh a module is deprecated; use the hashlib module instead 
import os, sys, math, socket, struct, sha, hmac, string, time 
C:\Python26\lib\site-packages\scapy\crypto\cert.py:7: DeprecationWarning?: The popen2 module is deprecated. Use the subprocess module. 
import random, popen2, tempfile 
Traceback (most recent call last): 
File "C:\Python26\Scripts\\scapy", line 25, in <module> 
interact() 
File "C:\Python26\lib\site-packages\scapy\main.py", line 293, in interact 
readline.read_history_file(conf.histfile) 
File "C:\Python26\lib\site-packages\pyreadline\rlmain.py", line 183, in read_history_file 
self._history.read_history_file(filename) 
File "C:\Python26\lib\site-packages\pyreadline\lineeditor\history.py", line 70, in read_history_file 
self.add_history(lineobj.ReadLineTextBuffer?(ensure_unicode(line.rstrip()))) 
File "C:\Python26\lib\site-packages\pyreadline\unicode_helper.py", line 20, in ensure_unicode 
return text.decode(pyreadline_codepage, "replace") 
TypeError?: decode() argument 1 must be string, not None 

C:\automation\atg\GeneralFiles_AC\ScapyExe> 

系统规格:
操作系统:Windows XP
Scapy的版本:2.1.1-dev的(使用scapy-7a97e2f3db67.zip)
Python:2.6(PythonWin?)

+1

请编辑您的问题。格式指南位于页面的右侧。如果你缩进代码(和会话日志),它更可读。 – 2010-08-16 22:07:24

+0

您确定您已经正确安装了所有必需的Python子模块依赖项吗?看起来它找不到其中的一些。 – dublev 2010-08-16 22:12:46

+0

@ S.洛特 - 对不起,这是我第一次。 @dublev - 我已经安装了所有必需的依赖项。我遵循http://dirk-loss.de/scapy-doc/_sources/installation.txt链接下载scapy及其依赖关系(与python 2.6相关)。 – amit 2010-08-19 17:08:40

回答

-1

检查出documentation安装op此处为Windows。

+0

你可以更具体一点,哪些可选的包我是否只是为了存储输出scapy在文本文件? 谢谢 Amit – amit 2010-08-19 17:10:27

+0

是的,-1。请澄清。我也有这个问题。我不确定这与它有什么关系,因为我已经安装了所有的软件包并且仍然有相同的瑕疵。还有这个问题:http://trac.secdev.org/scapy/ticket/357 – 2012-02-07 18:48:02

相关问题