scapy.autorun

Scapy解释器启动时运行命令.

class scapy.autorun.ScapyAutorunInterpreter(*args, **kargs)

Bases: code.InteractiveInterpreter

showsyntaxerror(*args, **kargs)
showtraceback(*args, **kargs)
exception scapy.autorun.StopAutorun

Bases: scapy.error.Scapy_Exception

code_run = ''
class scapy.autorun.StringWriter(debug=None)

Bases: object

可以模拟sys.stdout和sys.stderr,并将它们的输出存储在's'var中.

flush()
write(x)
scapy.autorun.autorun_commands(cmds, my_globals=None, ignore_globals=None, verb=None)
scapy.autorun.autorun_get_ansi_interactive_session(cmds, **kargs)
scapy.autorun.autorun_get_html_interactive_session(cmds, **kargs)
scapy.autorun.autorun_get_interactive_live_session(cmds, **kargs)

创建一个交互式会话并执行以" cmds"传递的命令并返回所有输出

Parameters

cmds –要运行的命令列表

Returns

(输出,返回)包含sys.stdout和sys.stderr日志

scapy.autorun.autorun_get_interactive_session(cmds, **kargs)

创建一个交互式会话并执行以" cmds"传递的命令并返回所有输出

Parameters

cmds –要运行的命令列表

Returns

(输出,返回)包含sys.stdout和sys.stderr日志

scapy.autorun.autorun_get_latex_interactive_session(cmds, **kargs)
scapy.autorun.autorun_get_live_interactive_session(cmds, **kargs)
scapy.autorun.autorun_get_text_interactive_session(cmds, **kargs)