Skip to content

azuax/go-simple-port-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GO simple port scanner

Introduction

A simple implementation of a port scanner, comparing the speed between a linear scan and with the usage of goroutines. To test it, just replace the nGoroutines variables with the desired value.

Note: Be careful with the max number of goroutines and the target you test. You can generate some issues.

Execute

Simple usage:

go run portscan.go

For execution only with goroutines, just pass a value (ex: 1):

go run portscan.go 1

TODO

  • Receive parameters as input (host, number of goroutines)
  • Receive port range as input (ex: 1-1000)
  • Store results into a file
  • Sort results by port

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages