Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pojntfx/ports2packets
Generates a CSV file with the packets that are to be sent in order to check if a UDP port is open.
https://github.com/pojntfx/ports2packets
iana liwasc nmap port port-scanning ports2packets udp udp-port
Last synced: 28 days ago
JSON representation
Generates a CSV file with the packets that are to be sent in order to check if a UDP port is open.
- Host: GitHub
- URL: https://github.com/pojntfx/ports2packets
- Owner: pojntfx
- License: agpl-3.0
- Created: 2020-09-08T15:02:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-26T03:42:38.000Z (almost 2 years ago)
- Last Synced: 2024-06-21T14:29:27.636Z (7 months ago)
- Topics: iana, liwasc, nmap, port, port-scanning, ports2packets, udp, udp-port
- Language: Go
- Homepage: https://pojntfx.github.io/ports2packets/
- Size: 22.5 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ports2packets
Generates a CSV file with the packets that are to be sent in order to check if a UDP port is open.
## Overview
`ports2packets` is a tool that is meant to solve the following problem: Knowing the packets that need to be sent to a UDP port in order to check whether it is open. This is done by UDP scanning Go UDP listeners on registered ports with [nmap](https://nmap.org/) and taking note of the port and packet, which are then writen in base64 format to a CSV file. The output CSV file based on the latest service names and port numbers by the [IANA](https://www.iana.org/) is also built weekly and available to download below.
## Installation
### Prebuilt Binaries
Linux, macOS and Windows binaries are available on [GitHub Releases](https://github.com/pojntfx/ports2packets/releases).
### Go Package
A Go package [is available](https://pkg.go.dev/mod/github.com/pojntfx/ports2packets).
### Prebuilt CSV File
As mentioned above, the CSV file is also pre-built every week and can be downloaded from [GitHub Releases](https://github.com/pojntfx/ports2packets/releases).
## Usage
See [liwasc's database package](https://pkg.go.dev/github.com/pojntfx/liwasc/pkg/databases?tab=doc#Ports2PacketDatabase) for a Go library implementation based on the CSV output file.
```bash
% ports2packets -help
Usage of ports2packets:
-in string
Path to the CSV input file containing the registered services. Download from https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml (default "/etc/ports2packets/service-names-port-numbers.csv")
-out string
Path of the generated CSV output file (default "ports2packets.csv")
```## License
ports2packets (c) 2020 Felicitas Pojtinger
SPDX-License-Identifier: AGPL-3.0