.\" Generated by kramdown-man 1.0.1 .\" https://github.com/postmodern/kramdown-man#readme .TH ronin-masscan-dump 1 "2023-03-01" Ronin Masscan "User Manuals" .SH NAME .PP ronin\-masscan\-dump \- Dumps the scanned ports from masscan scan file(s) .SH SYNOPSIS .PP \fBronin\-masscan dump\fR \[lB]options\[rB] \fIMASSCAN\[ru]FILE\fP .SH DESCRIPTION .PP Dumps the scanned ports from masscan scan files into a variety of formats\. The output formats include: .RS .IP \(bu 2 IP .IP \(bu 2 Hostname .IP \(bu 2 \fBIP:PORT\fR .IP \(bu 2 \fBHOST:PORT\fR .IP \(bu 2 URI .RE .PP The command also supports filtering the scanned ports by IP, IP range, domain, or port\. .SH ARGUMENTS .TP \fIMASSCAN\[ru]FILE\fP The masscan scan file to import\. .SH OPTIONS .TP \fB\-\-print\-ips\fR Only print the IP addresses of the targets (ex: \fB192\.168\.1\.1\fR)\. .TP \fB\-\-print\-hosts\fR Only print the hostnames of the targets (ex: \fBexample\.com\fR)\. .TP \fB\-\-print\-ip\-ports\fR Print IP address and port pairs for each target (ex: \fB192\.168\.1\.1:443\fR)\. This is the default behavior\. .TP \fB\-\-print\-host\-ports\fR Print hostname and port pairs for each target (ex: \fBexample\.com:443\fR)\. .TP \`\-\-print\-uris Print URIs for each target that has either \fBhttp\fR or \fBhttps\fR services (ex: \fBhttps:\[sl]\[sl]example\.com\fR or \fBhttp:\[sl]\[sl]example\.com:8080\fR)\. .TP \fB\-P\fR, \fB\-\-protocol\fR \fBtcp\fR\[or]\fBudp\fR Filters the targets by the protocol of the open port\. .TP \fB\-\-ip\fR \fIIP\fP Filters the targets by a specific IP address\. .TP \fB\-\-ip\-range\fR \fICIDR\fP Filter the targets by a CIDR IP range (ex: \fB192\.168\.1\.0\[sl]24\fR)\. .TP \fB\-p\fR, \fB\-\-ports\fR \[lC]\fIPORT\fP \[or] \fIPORT1\-PORT2\fP\[rC],\.\.\. Filter \fBIP:PORT\fR or \fBHOST:PORT\fR pairs who\[cq]s ports are in the gvien port list\. The port list is a comma separated list of port numbers (\fB443\fR) or port ranges (\fB8000\-9000\fR)\. .TP \fB\-h\fR, \fB\-\-help\fR Print help information .SH EXAMPLES .PP Print \fBIP:PORT\fR pairs from the masscan scan file: .PP .RS 4 .EX \[Do] ronin\-masscan dump \-\-print\-ip\-ports masscan\.bin .EE .RE .PP Print \fBIP:PORT\fR pairs with ports 22, 80, or 443, from the masscan scan file: .PP .RS 4 .EX \[Do] ronin\-masscan dump \-\-print\-ip\-ports \-\-ports 22,80,443 masscan\.bin .EE .RE .PP Print \fBHOST:PORT\fR pairs from the masscan scan file: .PP .RS 4 .EX \[Do] ronin\-masscan dump \-\-print\-host\-ports masscan\.bin .EE .RE .PP Print target hostnames from the masscan scan file: .PP .RS 4 .EX \[Do] ronin\-masscan dump \-\-print\-hosts \-\-with\-port 22 masscan\.bin .EE .RE .PP Print URIs from the masscan scan file: .PP .RS 4 .EX \[Do] ronin\-masscan dump \-\-print\-uris masscan\.bin .EE .RE .SH AUTHOR .PP Postmodern .MT postmodern\.mod3\[at]gmail\.com .ME .SH SEE ALSO .PP .BR ronin\-masscan\-print (1)