public/subjects/cybersecurity/active/README.md

1.3 KiB
Raw Permalink Blame History

Active

Objective

In this project you will have to make a simple port scanner, which will tell you if the port is open or closed. You must create the project from scratch.

Advice

https://en.wikipedia.org/wiki/Nmap

Bonus

Show the name of the service that uses the port

Usage

$>  tinyscanner --help
Usage: tinyscanner [OPTIONS] [HOST] [PORT]
Options:
  -p               Range of ports to scan
  -u               UDP scan
  -t               TCP scan
  --help           Show this message and exit.
$>  tinyscanner -u 20.78.06.364 -p 80
Port 80 is open
$> tinyscanner -t 127.0.0.1 -p 1604
Port 1604 is closed
$> tinyscanner -t 10.53.224.5 -p 80-83
Port 80 is open
Port 81 is open
Port 82 is close
Port 83 is open

Submission and audit

Files that must be inside your repository:

  • Your program source code.
  • a README.md file, Which clearly explains how to use the program.

Dont hesitate to double check the names of your folders and files to ensure they are correct!

⚠️ These methods and tools are for educational purposes only, so that you have a better understanding of how to protect against similar vulnerabilities. You must ensure that you do not attempt any exploit-type activity without the explicit permission of the owner of the machine, system or application. Failure to obtain permission risks breaking the law.