ps.sh
is a bash script that automates the process of port scanning and service discovery on specified target hosts. The aim of the scripts is reducing scan time, increasing scan efficiency and automating the workflow.
- Automated port scanning using various workflows:
smap2nmap
: Use Smap for port discovery, followed by Nmap for service discovery.nmap2nmap
: Use Nmap for both port discovery and service discovery.naabu2nmap
: Use Naabu for port discovery, followed by Nmap for service discovery.masscan2nmap
: Use Masscan for port discovery, followed by Nmap for service discovery.
- Service discovery to identify open services on the detected ports.
- Multiple target support - Scan a single target or a list of targets.
- Script auto-update support to keep the script and its dependencies up-to-date.
Run the installation script:
curl -s https://raw.githubusercontent.com/enenumxela/ps.sh/main/install.sh | bash -
To display this script's help message, use the -h
flag:
ps.sh -h
_
_ __ ___ ___| |__
| '_ \/ __| / __| '_ \
| |_) \__ _\__ \ | | |
| .__/|___(_)___/_| |_|
|_| v1.0.0
---====| A Port & Service Discovery Script |====---
USAGE:
ps.sh [OPTIONS]
Options:
-t, --target target IP
-tL, --target-list target IPs list
-w, --workflow port scanning workflow (default: nmap2nmap)
(choices: smap2nmap, nmap2nmap, naabu2nmap or masscan2nmap)
-k, --keep keep each workflow's step results
-oD, --output-dir output directory path (default: .)
--update update this script & dependencies
-h, --help display this help message and exit
HAPPY HACKING :)
We welcome contributions! Feel free to submit Pull Requests or report Issues. For more details, check out the contribution guidelines.
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.
A huge thanks to all the contributors who have helped make ps.sh
what it is today!