Skip to content

hellboy-zero/port_scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Port Scanner + Banner Grabber

A simple multi-threaded port scanner written in C with basic banner grabbing support.


Features

  • Multi-threaded TCP port scanning
  • Basic banner grabbing
  • HTTP response detection
  • Common service identification
  • Custom port range support

Project Structure

.
├── port_scanner.c
└── README.md

Setup

Compile C code using:

gcc -o port_scanner port_scanner.c -lpthread
./port_scanner -i 192.168.1.1 -s 1 -e 1024

Usage

./port_scanner -i 127.0.0.1 -s 1 -e 100

Arguments

Argument Description
-i Target IP or hostname
-s Start port
-e End port

Example Output

[+] Port 22 OPEN | Service: ssh
[+] Port 80 OPEN | Service: http

======================================================================
OPEN PORTS AND BANNERS
======================================================================

Port    : 22
Service : ssh
Banner  : SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.5

Port    : 80
Service : http
Banner  : HTTP/1.1 200 OK

Notes

  • Make sure the script has execute permission:
chmod +x port_scanner

About

a simple port scanner

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages