Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kreipikc/scanner-ports
Open port scanner written in go
https://github.com/kreipikc/scanner-ports
cli golang gorutines scanner-ports viper
Last synced: 15 days ago
JSON representation
Open port scanner written in go
- Host: GitHub
- URL: https://github.com/kreipikc/scanner-ports
- Owner: kreipikc
- Created: 2024-11-05T22:16:23.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2024-11-11T22:44:47.000Z (about 2 months ago)
- Last Synced: 2024-11-11T23:29:45.515Z (about 2 months ago)
- Topics: cli, golang, gorutines, scanner-ports, viper
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## What kind of project is this?
This is a simple port scanner on golang.## What technologies have I used?
- GolangAll the code is written in golang
## Why did I even start creating this project?
I created this project to study the basic work with the net and the _net_ library, as well as to study **streams** and **goroutines**.## How usage?
To run the program, just write run the `main.go` file - `go run main.go`You can also configure settings such as:
- `address` - specify the address you need, _required field **or** specify a document_ (accepts **string**),
- `first_port` - specify which port the scan will start from, _default: **1**_ (accepts **int**),
- `last_port` - specify the port to which the scan will take place, _default: **1024**_ (accpet **int**),
- `max_buffer` - here, specify the number for the goroutine buffer, change it if you understand why, _default: **100**_ (accept **int**).
- `save_format` - if you want to save the result, then add it in what format, _default: **none**_ (accepts **json**, **txt**),
- `document` - if you need to scan several addresses from a txt file (addresses should be in the column line by line), then specify the path to it, _required field **or** specify a address_ (accept **string**).### **!!!Use only address or only document!!!**
Launch example for 1 address:
```bash
go run main.go --address scanme.nmap.org --first_port 1 --last_port 1024 --max_buffer 100 --save_format json
```Launch example for document with address:
```bash
go run main.go --document file.txt --first_port 1 --last_port 1024 --max_buffer 100 --save_format json
```