python模块Nmap-Parser
AUTHOR
yunshu(wustyunshu@hotmail.com)摘要:很久以前用Perl做了一套扫描系统,最近感觉python很好玩,而最近又有了些新的想法,就打算用直接python重构一 下。python的缺点就在于没有一个CPAN类似的东西,类库不够丰富。所以业余时间慢慢做,从底层的模块开始做起,没有的就自己实现一下。
这个是类似 perl的http://search.cpan.org/~apersaud/Nmap-Parser-1.19/Parser.pm,解析nmap的 xml格式报告用的。悲剧啊,忘记发python模块的地址了,补上,http://code.google.com/p/python-nmap-parser/
NAME
Parser - this module used to parse nmaps xml report
FILE
/home/yunshu/dev/NmapParser/building090901/Parser.py
CLASSES
Parser
class Parser
| Parser class, parse a xml format nmap report
|
| Methods defined here:
|
| __init__(self, FileName)
| constructor function, need a xml file name as the argument
|
| all_hosts(self, status=)
| get a list of Host object
|
| all_ips(self, status=)
| get a list of ip address
|
| get_host(self, ipaddr)
| get a Host object by ip address
|
| get_session(self)
| get this scans information, return a Session object
DATA
__author__ = yunshu(wustyunshu@hotmail.com)
__version__ = 0.2
VERSION
0.2
补充:Web开发 , Python ,