nmap_vscan可以在不安装Nmap的情况下完成服务和应用程序版本检测

网友投稿 864 2022-11-02

nmap_vscan可以在不安装Nmap的情况下完成服务和应用程序版本检测

nmap_vscan可以在不安装Nmap的情况下完成服务和应用程序版本检测

nmap_vscan

nmap_vscan can finish Service and Application Version Detection without Nmap installation. It is not an official release from the Nmap Project.

Requirements

Python 2.7Works on Linux, Windows, Mac OSX, BSD

Install

The quick way:

pip install nmap_vscan

Usage

Please download https://svn.nmap.org/nmap/nmap-service-probes at first.

>>> from nmap_vscan import vscan>>> nmap = vscan.ServiceScan('./nmap-service-probes')

Let's try to scan HTTP, MYSQL, SSH, REDIS and so on.

>>> nmap.scan('apache.org', 80, "tcp"){'match': {'pattern': '^HTTP/1\\.[01] \\d\\d\\d .*\\r\\nServer: Apache[/ ](\\d[-.\\w]+) ([^\\r\\n]+)', 'versioninfo': {'cpename': ['apache:http_server:2.4.7'], 'devicetype': [' v'], 'hostname': [], 'info': ['(Ubuntu)'], 'operatingsystem': [], 'vendorproductname': ['Apache httpd'], 'version': ['2.4.7']}}, 'probe': {'probename': 'GetRequest', 'probestring': 'GET / HTTP/1.0\\r\\n\\r\\n'}}>>> nmap.scan('192.168.1.245', 3306, 'tcp'){'match': {'pattern': '^.\\0\\0\\0\\x0a(5\\.[-_~.+\\w]+)\\0', 'versioninfo': {'cpename': ['mysql:mysql:5.5.28-log'], 'hostname': [], 'info': [], 'operatingsystem': [], 'vendorproductname': ['MySQL'], 'version': ['5.5.28-log']}}, 'probe': {'probename': 'NULL', 'probestring': ''}}>>> nmap.scan('192.168.1.245', 6379, 'tcp'){'match': {'pattern': '^\\$\\d+\\r\\n(?:#[^\\r\\n]*\\r\\n)*redis_version:([.\\d]+)\\r\\n', 'versioninfo': {'cpename': [], 'hostname': [], 'info': [], 'operatingsystem': [], 'vendorproductname': ['Redis key-value store'], 'version': ['2.6.12']}}, 'probe': {'probename': 'redis-server', 'probestring': '*1\\r\\n$4\\r\\ninfo\\r\\n'}}

References

https://nmap.org/https://nmap.org/book/vscan.htmlhttps://nmap.org/book/vscan-fileformat.htmlhttps://github.com/nmap/nmap/blob/master/service_scan.cchttps://svn.nmap.org/nmap/nmap-service-probes

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Hedwig是一个快速,类型安全,声明性的PureScript库,用于构建Web应用程序
下一篇:BrainBox:Web应用程序,可以对3D大脑成像数据进行实时、协同注释、分割
相关文章

 发表评论

暂时没有评论,来抢沙发吧~