https://github.com/seantiz/thewatcher
Let netstat re-run at chosen intervals.
https://github.com/seantiz/thewatcher
cli-app linux macos netstat network-monitoring tcp-ip windows
Last synced: 9 months ago
JSON representation
Let netstat re-run at chosen intervals.
- Host: GitHub
- URL: https://github.com/seantiz/thewatcher
- Owner: seantiz
- License: mit
- Created: 2024-12-15T00:12:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-14T04:24:37.000Z (10 months ago)
- Last Synced: 2025-03-14T05:26:15.379Z (10 months ago)
- Topics: cli-app, linux, macos, netstat, network-monitoring, tcp-ip, windows
- Language: Go
- Homepage:
- Size: 13.9 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The Watcher Auto Netstat
This is a tool for calling netstat at a chosen interval. Set it to run every minute, every 15 minutes, every half hour or hourly.
## Quick Start
⚠️NOTE: You'll get a security warning that the program is unsigned when running it on Windows and Linux. MacOS users may not be able to run the program at all unless you first run this command at your terminal:
```
xattr -d com.apple.quarantine ~/Downloads/thewatcher
```
(Assuming it's downloaded into your Downloads folder. Change the path to suit.)
Download and run the right program for your operating system:
- Windows: [Download here](./bin/thewatcher.exe)
- MacOS Silicon: [Download here](./bin/thewatcher)
- MacOS Intel: [Download here](./bin/thewatcherOSX)
- Linux AMD64: [Download here](./bin/thewatcher_linuxAMD64)
- Linux ARM64: [Download here](./bin/thewatcher_linuxARM64)
## go-netstat
The bulk of the work was by Cihangir Akturk's `go-netstat` library. [Find the original go-netstat repository here](https://github.com/cakturk/go-netstat). I was just missing a way to call netstat programatically for infosec clients.
The `netstat` folder is a near 1:1 mirror of `go-netstat`. The only difference is a _darwin module included here for running and developing on MacOS.
## For Developers, DevOps, InfoSec
Feel free to remove the `cli` package from `main.go` and implement your own CLI prompts, if you want to write it as your own program.