Giter VIP home page Giter VIP logo

nmap_vscan's Introduction

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.7
  • Works 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('www.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

nmap_vscan's People

Contributors

nixawk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

nmap_vscan's Issues

First Scan is not NULL Probe

I think the first scan probe is NULL,because NULL probe no 'ports'.eg i scan 3306,it will be first scan in_probes

support python3

01:24 $ ipy
Python 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from nmap_vscan import vscan

In [2]: nmap = vscan.ServiceScan('nmap-service-probes')

In [3]: nmap.scan('www.apache.org', 80, "tcp")
ERROR:nmap_vscan.vscan:www.apache.org : 80 - must be str, not bytes
Traceback (most recent call last):
  File "/Users/unix/Projects/nmap_vscan/nmap_vscan/vscan.py", line 420, in send_tcp_request
    data += _
TypeError: must be str, not bytes
ERROR:nmap_vscan.vscan:www.apache.org : 80 - must be str, not bytes
Traceback (most recent call last):
  File "/Users/unix/Projects/nmap_vscan/nmap_vscan/vscan.py", line 420, in send_tcp_request
    data += _
TypeError: must be str, not bytes
ERROR:nmap_vscan.vscan:www.apache.org : 80 - must be str, not bytes
Traceback (most recent call last):
  File "/Users/unix/Projects/nmap_vscan/nmap_vscan/vscan.py", line 420, in send_tcp_request
    data += _
TypeError: must be str, not bytes
ERROR:nmap_vscan.vscan:www.apache.org : 80 - must be str, not bytes
Traceback (most recent call last):
  File "/Users/unix/Projects/nmap_vscan/nmap_vscan/vscan.py", line 420, in send_tcp_request
    data += _
TypeError: must be str, not bytes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.