Nmap Vscan
Project description
# Nmap Vscan #
Let's finish Service and Application Version Detection without [**Nmap**](https://nmap.org/) installation.
```python
>>> from nmap_vscan import vscan
>>> nmap = vscan.ServiceScan('./nmap-service-probes')
```
```
>>> 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'}}
```
## Installation ##
```python
pip install nmap_vscan
```
## References
- https://nmap.org/book/vscan.html
- https://nmap.org/book/vscan-fileformat.html
- https://github.com/nmap/nmap/blob/master/service_scan.cc
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nmap_vscan-1.0.1.tar.gz
(572.5 kB
view details)
File details
Details for the file nmap_vscan-1.0.1.tar.gz
.
File metadata
- Download URL: nmap_vscan-1.0.1.tar.gz
- Upload date:
- Size: 572.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 022a3987af4550f2a45aee9914fbc2bf0f7a5bd2490a1a603d9db50347e136ae |
|
MD5 | 26321431a23d55e58c83d03f4c58a135 |
|
BLAKE2b-256 | 4b796a5e47830c453abc85d8d0bc7fc8339de15f342ef5156c6bbdfa9bd3a34c |