watchyourlan/main.go
2022-08-15 12:02:42 +07:00

30 lines
No EOL
430 B
Go

package main
import (
"fmt"
)
type Host struct {
Id uint16
Name string
Ip string
Mac string
Hw string
Date string
Known uint16
}
func main() {
iface := "virbr-bw"
db_path := "data/hosts.db"
text := scan_iface(iface)
foundHosts := parse_output(text)
fmt.Println(foundHosts)
db_create(db_path)
fmt.Println("http://localhost:8840")
webgui(foundHosts)
}