Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bluemods/p0f-go
https://github.com/bluemods/p0f-go
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bluemods/p0f-go
- Owner: bluemods
- Created: 2024-12-08T08:37:38.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2024-12-08T08:37:41.000Z (about 2 months ago)
- Last Synced: 2024-12-25T07:48:15.129Z (about 1 month ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# p0f-go
## P0f client for Golang
Designed to make p0f easy to work with for all programming languages, it stands up a simple HTTP server that replies to HTTP GET requests with p0f data in JSON format.
It can also be used as a library if an HTTP server is undesired.
NOTE: This library makes use of p0f-mtu, which is NOT compatible with p0f.
[Get p0f-mtu from here](https://github.com/ValdikSS/p0f-mtu/)### Installing p0f-mtu
```bash
git clone https://github.com/ValdikSS/p0f-mtu/ && cd p0f-mtu && chmod +x ./build.sh && ./build.sh
```### Preparing p0f-mtu
```bash
./p0f -s /tmp/p0f-mtu.sock -d
```### Running p0f-go
```bash
go build && ./p0f-go -s /tmp/p0f-mtu.sock -p 38749
```### Querying HTTP API externally
```bash
curl http://localhost:38749?p=1
```