https://github.com/initialed85/drive_test
A collection of tools for drive-testing wireless networks
https://github.com/initialed85/drive_test
drive go golang gps gpsd network packet pcap ssh test
Last synced: about 2 months ago
JSON representation
A collection of tools for drive-testing wireless networks
- Host: GitHub
- URL: https://github.com/initialed85/drive_test
- Owner: initialed85
- License: mit
- Created: 2018-11-12T13:13:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-08T08:40:14.000Z (over 6 years ago)
- Last Synced: 2025-05-14T02:51:50.454Z (11 months ago)
- Topics: drive, go, golang, gps, gpsd, network, packet, pcap, ssh, test
- Language: Go
- Homepage:
- Size: 2.66 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drive_test
A collection of tools for drive-testing networks
## What's it for?
Drive-testing networks
## How do I build it?
./build.sh
Observe as the executables are built to
cmd/gps_dumper/gps_dumper
cmd/packet_dumper/packet_dumper
cmd/ssh_dumper/ssh_dumper
Optionally, if you need to cross-compile (e.g. for an ARM device):
GOOS=linux GOARCH=arm ./build.sh
## How do I run it?
Each tool loops around and dumps to a file in [JSON lines](http://jsonlines.org/) (for later processing).
Some of the commands take a JSON config (default `config.json`).
The following sections some maximal examples of usage...
### `gps_dumper`
# command line
./gps_dumper -host 127.0.0.1 -port 2947 -output-path gps_output.jsonl
### `packet_dumper`
# contents of config.json; note "filter" is in tcpdump / pcap format
{
"filter": "udp and port 3784"
}
# command line
sudo ./packet_dumper -interface eth0 -config-path config.json -output-path packet_output.jsonl
### `ssh_dumper`
# contents of config.son
{
"setup_commands": [
"date"
],
"cycle_commands": [
"uname -a",
"uptime",
"ifconfig -a"
]
}
# command line
./packet_dumper \
-host localhost \
-port 22 \
-timeout 5 \
-username user \
-password pass \
-period 8 \
-config-path config.json \
-output-path ssh_output.jsonl \
-remove-command-echo true
-remove-prompt-echo true
-trim-output true
-dumb-authentication false