Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Port Scanner

A TCP port scanner written in C.

It scans a target IP across a port range and reports which ports are open.

Features

  • Interactive input for target IP and port range
  • Non-blocking connection checks with timeout
  • Prints each open port as it is detected
  • Shows total number of open ports

Build

gcc main.c scanner.c network.c  -o scanner

Run

./scanner

Example Input

Enter target IP: 127.0.0.1
Enter start port: 2995
Enter end port: 3005

Example Output

Scanning 127.0.0.1 from port 2995 to 3005...

Port 3000 is OPEN

Total open ports: 1

Scan completed.

Output Screenshot

Placeholder: Port 3000 detected as OPEN

Project Files

  • main.c - CLI input and scan start
  • scanner.c - Port scanning loop and open-port reporting
  • network.c - Socket and target setup helpers
  • scanner.h, network.h - Header files

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages