Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alessiosavi/gotcpscanner
A pure Go TCP scanner that use concurrency in order to scan the open ports for a given target from an AWS Lambda
https://github.com/alessiosavi/gotcpscanner
Last synced: about 6 hours ago
JSON representation
A pure Go TCP scanner that use concurrency in order to scan the open ports for a given target from an AWS Lambda
- Host: GitHub
- URL: https://github.com/alessiosavi/gotcpscanner
- Owner: alessiosavi
- Created: 2020-04-07T21:33:25.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T07:31:24.000Z (almost 2 years ago)
- Last Synced: 2024-06-21T06:26:57.856Z (7 months ago)
- Language: Go
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GoTCPScanner
A simple multithread port scanner
## Usage
The tool take some input parameters
- `host`: the ip/hostname of the target host
- `port`: the port that you want to verify if is open
- `ports`: the range of ports to scan separated by `-`**_NOTE_**: You can select only one parameter relatead to the port
## Example
### Build
```bash
> git clone https://github.com/alessiosavi/GoTCPScanner.git
> cd GoTCPScanner
> go build
> strip -s GoTCPScanner
```
**_NOTE_**: Windows user can't build the sotware due to the `getUlimitValue` function, that rely on UNIX syscall in order to retrieve the maximum number of open files that the system can handle. You need to remove that function and remove the following piece of code too:```go
ulimitCurr, _ := getUlimitValue()
if uint64(t.Concurrency) >= ulimitCurr {
t.Concurrency = int(float64(ulimitCurr) * 0.7)
fmt.Printf("Provided a thread factor greater than current ulimit size, setting at MAX [%d] requests\n", t.Concurrency)
}
```### Run
```bash
> console=true ./GoTCPScanner -host localhost -ports 7000-9000 -ports 10000-11000
```## Video
[![asciicast](https://asciinema.org/a/318240.svg)](https://asciinema.org/a/318240)