# apt-get install python python-dev
# apt-get install python-setuptools
# apt-get install python-pip
# apt-get install ipython
# curl https://codeload.github.com/secdev/scapy/zip/v2.3.2
# unzip scapy-2.3.2.zip
# cd scapy-2.3.2/
# python setup.py install
os.popen("shell command").read()
适合只有一行输出的shell 命令
其他
$ ipython profile create #在当前目录下生成用户配置文件
$ cd .ipython/profile_default/
$ vim ipython_config.py
...
c.PromptManager.out_template = '\\# <<< '
...
c.PromptManager.in_template = '\\# >>> '
...