Skip to content

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.

License

Notifications You must be signed in to change notification settings

enenumxela/ps.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ps.sh

Made with Bash Maintenance open issues closed issues license

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.

Resource

Features

  • 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.

Installation

Run the installation script:

curl -s https://raw.githubusercontent.com/enenumxela/ps.sh/main/install.sh | bash -

Usage

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 :)

Contributing

We welcome contributions! Feel free to submit Pull Requests or report Issues. For more details, check out the contribution guidelines.

Licensing

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.

Credits

Contributors

A huge thanks to all the contributors who have helped make ps.sh what it is today!

contributors

Dependencies

masscannaabunmapsmap