Skip to content

DylanVF5/Port-Scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Port Scanner

  • A simple tool for scanning open and closed ports on a specified host.

Features

  • Scans a specified range of ports on a given host
  • Outputs lists of open and closed ports

Usage

#include "portmanager/portmanager.h"

int main() {
    const auto prtmgr = std::make_unique<PortManager>();
    static const int portStart = 1;
    static const int portEnd = 1024;
    std::string host = "ip.here";

    for (int port = portStart; port < portEnd; port++) {
        prtmgr->ScanPort(host, port);
    }

    prtmgr->OutputScannedPorts();
    prtmgr->OutputOpenPorts();
}

Purpose

  • Designed for educational use in understanding network port scanning. Use responsibly and only with networks and hosts you own or have permission to scan.

Todo:

  • Add multithreading, right now it is pretty slow, and multithreading wouldn't be too hard to implement.

About

A simple C++ port scanner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published