mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-10-08 23:22:21 +02:00
* feat(patch): introduce net localgroup, net user, and route print parsers * fix: fix net user parsing error * fix: address PR findings --------- Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
87 lines
2.2 KiB
JSON
87 lines
2.2 KiB
JSON
{
|
|
"interface_list": [
|
|
{
|
|
"interface_index": 1,
|
|
"mac_address": null,
|
|
"description": ". MS TCP Loopback interface"
|
|
},
|
|
{
|
|
"interface_index": 2,
|
|
"mac_address": "00:0c:29:21:f9:3e",
|
|
"description": ". Intel(R) PRO/1000 MT Network Connection - Packet Scheduler Miniport"
|
|
}
|
|
],
|
|
"ipv4_route_table": {
|
|
"active_routes": [
|
|
{
|
|
"network_destination": "0.0.0.0",
|
|
"netmask": "0.0.0.0",
|
|
"gateway": "192.168.22.1",
|
|
"interface": "192.168.22.135",
|
|
"metric": "10"
|
|
},
|
|
{
|
|
"network_destination": "10.0.4.0",
|
|
"netmask": "255.255.255.0",
|
|
"gateway": "192.168.22.1",
|
|
"interface": "192.168.22.135",
|
|
"metric": "1"
|
|
},
|
|
{
|
|
"network_destination": "127.0.0.0",
|
|
"netmask": "255.0.0.0",
|
|
"gateway": "127.0.0.1",
|
|
"interface": "127.0.0.1",
|
|
"metric": "1"
|
|
},
|
|
{
|
|
"network_destination": "192.168.22.0",
|
|
"netmask": "255.255.255.0",
|
|
"gateway": "192.168.22.135",
|
|
"interface": "192.168.22.135",
|
|
"metric": "10"
|
|
},
|
|
{
|
|
"network_destination": "192.168.22.135",
|
|
"netmask": "255.255.255.255",
|
|
"gateway": "127.0.0.1",
|
|
"interface": "127.0.0.1",
|
|
"metric": "10"
|
|
},
|
|
{
|
|
"network_destination": "192.168.22.255",
|
|
"netmask": "255.255.255.255",
|
|
"gateway": "192.168.22.135",
|
|
"interface": "192.168.22.135",
|
|
"metric": "10"
|
|
},
|
|
{
|
|
"network_destination": "224.0.0.0",
|
|
"netmask": "240.0.0.0",
|
|
"gateway": "192.168.22.135",
|
|
"interface": "192.168.22.135",
|
|
"metric": "10"
|
|
},
|
|
{
|
|
"network_destination": "255.255.255.255",
|
|
"netmask": "255.255.255.255",
|
|
"gateway": "192.168.22.135",
|
|
"interface": "192.168.22.135",
|
|
"metric": "1"
|
|
}
|
|
],
|
|
"persistent_routes": [
|
|
{
|
|
"network_address": "10.0.4.0",
|
|
"netmask": "255.255.255.0",
|
|
"gateway_address": "192.168.22.1",
|
|
"metric": "1"
|
|
}
|
|
]
|
|
},
|
|
"ipv6_route_table": {
|
|
"active_routes": [],
|
|
"persistent_routes": []
|
|
}
|
|
}
|