V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
182247236
V2EX  ›  Python

Python 使用 nmap 扩展问题

  •  
  •   182247236 · 2017-02-14 12:50:07 +08:00 · 2804 次点击
    这是一个创建于 2599 天前的主题,其中的信息可能已经有所发展或是发生改变。

    大家有用过 python-nmap 吗?我最近想用 flaskWeb 做个小监控,发现用 python-nmap0.6.1 会有异常提示 nmap.nmap.PortScannerError: 'nmap program was not found in path',是不是因为我用的是 python3.X 的原因,如果是的话,有没有支持 python3 的扩展?

    7 条回复    2017-02-14 15:42:24 +08:00
    holyzhou
        1
    holyzhou  
       2017-02-14 13:33:41 +08:00   ❤️ 1
    看着是需要调用外部命令的吧 你看看把 nmap 在系统上装一下 并保证在$PATH 能找到
    182247236
        2
    182247236  
    OP
       2017-02-14 14:07:40 +08:00
    @holyzhou 对哦,我都没装 nmap =_=!
    182247236
        3
    182247236  
    OP
       2017-02-14 14:10:03 +08:00
    @holyzhou 不过装了 python-nmap 还需要额外安装 nmap 的吗?
    holyzhou
        4
    holyzhou  
       2017-02-14 14:23:06 +08:00
    python-nmap: python class to """use nmap""" and access scan results
    182247236
        5
    182247236  
    OP
       2017-02-14 14:43:37 +08:00
    Orz
    lonelygo
        6
    lonelygo  
       2017-02-14 14:52:41 +08:00
    这个。。。。木看文档啊
    c0rpse
        7
    c0rpse  
       2017-02-14 15:42:24 +08:00 via iPhone
    这个要先安装 nmap package 会调用系统的 nmap 工作。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5463 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 08:52 · PVG 16:52 · LAX 01:52 · JFK 04:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.