
A bash script that automates port scanning on specified target host(s). The aim of the scripts is reducing scan time, increasing scan efficiency and automating the workflow.
ps.sh is a bash script that automates port scanning on specified target host(s). The aim of the scripts is reducing scan time, increasing scan efficiency and automating the workflow.
nmap2nmap: Use Nmap for both port discovery and service discovery.masscan2nmap: Use Masscan for port discovery, followed by Nmap for service discovery.To install ps.sh:
... with curl:
F=${HOME}/.local/bin/ps.sh; curl -fsSL https://raw.githubusercontent.com/enenumxela/ps.sh/main/ps.sh > ${F} && chmod u+x ${F} && ${F} --setup
...with wget:
F=${HOME}/.local/bin/ps.sh; wget -qO- https://raw.githubusercontent.com/enenumxela/ps.sh/main/ps.sh > ${F} && chmod u+x ${F} && ${F} --setup
To display this script's help message, use the -h flag:
ps.sh -h
Here's what the help message looks like:
_
_ __ ___ ___| |__
| '_ \/ __| / __| '_ \
| |_) \__ _\__ \ | | |
| .__/|___(_)___/_| |_|
|_| [ v1.0.0 ]
<>--------------------------<><> A Port Scanning Script. <><>--------------------------<>
USAGE:
ps.sh [OPTIONS]
OPTIONS:
-t, --target target IP
-l, --list target IPs file
-p, --ports target port(s) (default: 0-65535)
-w, --workflow discovery workflow (default: nmap2nmap)
--workflows list supported discovery workflows
-o, --output output directory (default: $PWD)
--setup install required dependencies
-h, --help display this help message
Contributions are welcome and encouraged! Feel free to submit Pull Requests or report Issues. For more details, check out the contribution guidelines.
A big thank you to all the contributors for your ongoing support!
This utility is licensed under the MIT license. You are free to use, modify, and distribute it, as long as you follow the terms of the license. You can find the full license text in the repository - Full MIT license text.