watchyourlan/main.go
2022-08-16 11:26:50 +07:00

36 lines
No EOL
540 B
Go

package main
import (
"fmt"
)
type Host struct {
Id uint16
Name string
Ip string
Mac string
Hw string
Date string
Known uint16
}
type Conf struct {
Iface string
DbPath string
GuiIP string
GuiPort string
}
func main() {
newConfig := get_config("./data/config")
text := scan_iface(newConfig.Iface)
foundHosts := parse_output(text)
fmt.Println(foundHosts)
db_create(newConfig.DbPath)
fmt.Println("http://localhost:8840")
webgui(foundHosts)
}