Skip to content

This command-line tool uses Nmap to scan ports listed in a file and returns only those that are open. It's designed for use with a simple terminal command and can be extended for vulnerability management.

Notifications You must be signed in to change notification settings

its-harsh-here/OSecure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

66 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” OSecure

This code scans a list of ports from ports.txt and checks which ones are open on the provided IP address.


πŸ“¦ Project Summary

This command-line tool uses Nmap to scan ports listed in a file and returns only those that are open. It's designed for use with a simple terminal command and can be extended for vulnerability management.


βš™οΈ Usage: ./main

This command will:

  • Read a list of ports from ports.txt
  • Scan each port using Nmap
  • Print the open ports on the specified IP

πŸ–₯️ System Configuration

The code was written and tested on the following system:

  • Operating System: Ubuntu 24.04.1 LTS
  • Kernel: Linux 6.8.0-49-generic
  • Architecture: x86-64

πŸ› οΈ Tools Used

  • Nmap β€” for port scanning
  • gcc β€” to compile the code
  • Terminal β€” for executing the script

πŸš€ Future Add-ons

  1. βœ… Menu-driven Interface
    Add options for scanning only ports with a vulnerability rating (1–5).

  2. ⚠️ One-Time Scan Result
    Modify the logic to display open ports only the first time the tool is executed.

  3. πŸ” Port Vulnerability Info
    Create another menu-driven interface to:

    • Input a port number
    • Fetch its description from ports.txt
    • Explain its vulnerabilities and suggest ways to secure or close the port

About

This command-line tool uses Nmap to scan ports listed in a file and returns only those that are open. It's designed for use with a simple terminal command and can be extended for vulnerability management.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages