Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nmap-parse-output #248

Merged
merged 6 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions sources/assets/zsh/history.d/nmap-parse-output
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
nmap-parse-output /path/to/nmap.xml all-hosts
nmap-parse-output /path/to/nmap.xml banner $service_name
nmap-parse-output /path/to/nmap.xml blocked-ports
nmap-parse-output /path/to/nmap.xml group-by-ports
nmap-parse-output /path/to/nmap.xml group-by-product
nmap-parse-output /path/to/nmap.xml group-by-service
nmap-parse-output /path/to/nmap.xml host-ports-protocol
nmap-parse-output /path/to/nmap.xml host-ports
nmap-parse-output /path/to/nmap.xml hosts-to-port $port
nmap-parse-output /path/to/nmap.xml hosts
nmap-parse-output /path/to/nmap.xml http-info
nmap-parse-output /path/to/nmap.xml http-ports
nmap-parse-output /path/to/nmap.xml http-title
nmap-parse-output /path/to/nmap.xml nmap-cmdline
nmap-parse-output /path/to/nmap.xml port-info $port
nmap-parse-output /path/to/nmap.xml ports-reachable
nmap-parse-output /path/to/nmap.xml ports
nmap-parse-output /path/to/nmap.xml product
nmap-parse-output /path/to/nmap.xml search-product
nmap-parse-output /path/to/nmap.xml service-names
nmap-parse-output /path/to/nmap.xml service $service_name
nmap-parse-output /path/to/nmap.xml show-comments
nmap-parse-output /path/to/nmap.xml ssl-common-name
nmap-parse-output /path/to/nmap.xml tls-ports
nmap-parse-output /path/to/nmap.xml comment-hosts $hosts $comment
nmap-parse-output /path/to/nmap.xml comment-ports $ports $comment
nmap-parse-output /path/to/nmap.xml exclude-ports $ports
nmap-parse-output /path/to/nmap.xml exclude $hosts
nmap-parse-output /path/to/nmap.xml include-ports $ports
nmap-parse-output /path/to/nmap.xml include $hosts
nmap-parse-output /path/to/nmap.xml mark-ports $ports $color
nmap-parse-output /path/to/nmap.xml reachable
nmap-parse-output /path/to/nmap.xml html-bootstrap
nmap-parse-output /path/to/nmap.xml html
nmap-parse-output /path/to/nmap.xml to-json
13 changes: 13 additions & 0 deletions sources/install/package_network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,18 @@ function install_nmap() {
add-to-list "nmap,https://nmap.org,The Network Mapper - a powerful network discovery and security auditing tool"
}

function install_nmap-parse-output() {
compass-dexter marked this conversation as resolved.
Show resolved Hide resolved
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing nmap-parse-output"
compass-dexter marked this conversation as resolved.
Show resolved Hide resolved
fapt xsltproc
git -C /opt/tools/ clone --depth 1 https://github.com/ernw/nmap-parse-output
ln -s /opt/tools/nmap-parse-output/nmap-parse-output /opt/tools/bin/nmap-parse-output
add-history nmap-parse-output
# nmap-parse-output always exits with 1 if no argument is passed
add-test-command "nmap-parse-output |& grep -E '^\[v.+\]'"
add-to-list "nmap-parse-ouptut,https://github.com/ernw/nmap-parse-output,Converts/manipulates/extracts data from a Nmap scan output."
}

function install_autorecon() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing autorecon"
Expand Down Expand Up @@ -241,6 +253,7 @@ function package_network() {
install_network_apt_tools
install_proxychains # Network tool
install_nmap # Port scanner
install_nmap-parse-output # Parse nmap XML files
install_autorecon # External recon tool
install_dnschef # Python DNS server
install_divideandscan # Python project to automate port scanning routine
Expand Down