Python: вывод scapy не может быть сохранен в текстовом файле? - PullRequest
1 голос
/ 17 августа 2010

При запуске scapy из командной строки (Windows XP) выходные данные не могут быть сохранены.Когда в командной строке выполняется следующая команда:

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 Ответ

0 голосов
/ 17 августа 2010

Ознакомьтесь с документацией об установке дополнительных пакетов для Windows здесь.

...