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>
137 lines
3.3 KiB
JSON
137 lines
3.3 KiB
JSON
{
|
|
"interface_list": [
|
|
{
|
|
"interface_index": 10,
|
|
"mac_address": "00:0c:29:86:1e:1f",
|
|
"description": "Intel(R) PRO/1000 MT Network Connection"
|
|
},
|
|
{
|
|
"interface_index": 1,
|
|
"mac_address": null,
|
|
"description": "Software Loopback Interface 1"
|
|
},
|
|
{
|
|
"interface_index": 11,
|
|
"mac_address": null,
|
|
"description": "Microsoft ISATAP Adapter"
|
|
}
|
|
],
|
|
"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.33",
|
|
"metric": "10"
|
|
},
|
|
{
|
|
"network_destination": "127.0.0.0",
|
|
"netmask": "255.0.0.0",
|
|
"gateway": "On-link",
|
|
"interface": "127.0.0.1",
|
|
"metric": "306"
|
|
},
|
|
{
|
|
"network_destination": "127.0.0.1",
|
|
"netmask": "255.255.255.255",
|
|
"gateway": "On-link",
|
|
"interface": "127.0.0.1",
|
|
"metric": "306"
|
|
},
|
|
{
|
|
"network_destination": "127.255.255.255",
|
|
"netmask": "255.255.255.255",
|
|
"gateway": "On-link",
|
|
"interface": "127.0.0.1",
|
|
"metric": "306"
|
|
},
|
|
{
|
|
"network_destination": "192.168.22.0",
|
|
"netmask": "255.255.255.0",
|
|
"gateway": "On-link",
|
|
"interface": "192.168.22.33",
|
|
"metric": "266"
|
|
},
|
|
{
|
|
"network_destination": "192.168.22.33",
|
|
"netmask": "255.255.255.255",
|
|
"gateway": "On-link",
|
|
"interface": "192.168.22.33",
|
|
"metric": "266"
|
|
},
|
|
{
|
|
"network_destination": "192.168.22.255",
|
|
"netmask": "255.255.255.255",
|
|
"gateway": "On-link",
|
|
"interface": "192.168.22.33",
|
|
"metric": "266"
|
|
},
|
|
{
|
|
"network_destination": "224.0.0.0",
|
|
"netmask": "240.0.0.0",
|
|
"gateway": "On-link",
|
|
"interface": "127.0.0.1",
|
|
"metric": "306"
|
|
},
|
|
{
|
|
"network_destination": "224.0.0.0",
|
|
"netmask": "240.0.0.0",
|
|
"gateway": "On-link",
|
|
"interface": "192.168.22.33",
|
|
"metric": "266"
|
|
},
|
|
{
|
|
"network_destination": "255.255.255.255",
|
|
"netmask": "255.255.255.255",
|
|
"gateway": "On-link",
|
|
"interface": "127.0.0.1",
|
|
"metric": "306"
|
|
},
|
|
{
|
|
"network_destination": "255.255.255.255",
|
|
"netmask": "255.255.255.255",
|
|
"gateway": "On-link",
|
|
"interface": "192.168.22.33",
|
|
"metric": "266"
|
|
}
|
|
],
|
|
"persistent_routes": []
|
|
},
|
|
"ipv6_route_table": {
|
|
"active_routes": [
|
|
{
|
|
"interface": 1,
|
|
"metric": "306",
|
|
"network_destination": "::1/128",
|
|
"gateway": "On-link"
|
|
},
|
|
{
|
|
"interface": 10,
|
|
"metric": "266",
|
|
"network_destination": "fe80::/64",
|
|
"gateway": "On-link"
|
|
},
|
|
{
|
|
"interface": 10,
|
|
"metric": "266",
|
|
"network_destination": "fe80::c447:d1ef:c29f:c48c/128",
|
|
"gateway": "On-link"
|
|
},
|
|
{
|
|
"interface": 1,
|
|
"metric": "306",
|
|
"network_destination": "ff00::/8",
|
|
"gateway": "On-link"
|
|
},
|
|
{
|
|
"interface": 10,
|
|
"metric": "266",
|
|
"network_destination": "ff00::/8",
|
|
"gateway": "On-link"
|
|
}
|
|
],
|
|
"persistent_routes": []
|
|
}
|
|
}
|