Combines nmap output and DNS data to produce HTTP[S] URLs of interest.
Project description
nmurl
nmurl combines nmap output and DNS data to produce HTTP[S] URLs of interest.
Examples / Usage
Perform an Nmap scan on your desired target:
> nmap 10.32.64.0/27 -oX scan.xml
Starting Nmap 6.47 ( http://nmap.org ) at 2016-08-31 02:26 EDT
Nmap scan report for 10.32.64.1
Host is up (0.071s latency).
PORT STATE SERVICE
80/tcp closed http
443/tcp closed https
Nmap scan report for 10.32.64.2
Host is up (0.073s latency).
PORT STATE SERVICE
80/tcp filtered http
443/tcp filtered https
Nmap scan report for www.example.com (10.32.64.4)
Host is up (0.075s latency).
PORT STATE SERVICE
80/tcp open http
443/tcp open https
Get forward lookup data into some file(s) using dig, nmine or anything which produces DNS data in BIND zone file format:
> cat lookups
host1.example.com. 600 IN A 10.32.64.1
host2.example.com. 600 IN A 10.32.64.2
www.example.com. 600 IN CNAME host2.example.com
example.com. 600 IN A 10.32.64.2
host4.example.com. 600 IN A 10.32.64.4
Use nmurl to get a list of URLs based on a combination of both data sources:
> nmurl scan.xml -n lookups
http://10.32.64.1
http://host1.example.com
https://10.32.64.1
https://host1.example.com
https://10.32.64.2
https://example.com
https://host2.example.com
https://www.example.com
http://10.32.64.4
http://host4.example.com
https://10.32.64.4
https://host4.example.com
The URLs above are sorted by IP address and port number.
Options
-
(loose arguments): Filename(s) of Nmap XML output files. Specify at least once. No duplicate URLs will be output.
-
-n NAMEFILES: Filename of DNS lookup data in BIND zone file format. May be specified multiple times.
-
-S FORCEHTTPSPORTS: If this port is open, assume it is HTTPS regardless of nmap's stated service name
-
-H FORCEHTTPPORTS: If this port is open, assume it is HTTP regardless of nmap's stated service name
-
-v: Display version number and exit.
-
-d: Turn on debug logging output.
Copyright and License
Copyright (C) 2016 Hurricane Labs
nmurl was written by Steve Benson for Hurricane Labs.
nmurl is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
nmurl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; see the file LICENSE. If not, see http://www.gnu.org/licenses/.
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
Built Distribution
File details
Details for the file nmurl-1.3.3.tar.gz
.
File metadata
- Download URL: nmurl-1.3.3.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b38b6bf4217380d1c94f6da22c4b496fee8f85d9b9fc3e3bf0af530b4e01c535 |
|
MD5 | 1b8aed06e1dac8d08ac13c3f1abca2be |
|
BLAKE2b-256 | 1a134fadcb14cad3f4ab44107b95b6536e51f1a68ae4c76236e276236b419f61 |
File details
Details for the file nmurl-1.3.3-py3-none-any.whl
.
File metadata
- Download URL: nmurl-1.3.3-py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afb91a4a9e6dccd9a08fae7465729c2f9dad7ceab0a35b5c81cb1e26bebb8e7e |
|
MD5 | 85541dd65e86611dd09fbb9f04df8eef |
|
BLAKE2b-256 | fc3cbba1639438b65048a14356ac0bc42cae7cf39d3336d29514c26a180688f7 |