Skip to content

Instantly share code, notes, and snippets.

@Kegelcizer

Kegelcizer/Nrpt Secret

Last active June 25, 2021 21:52
Show Gist options
  • Save Kegelcizer/0bbba2ab8e95c5a965337edf69e064dd to your computer and use it in GitHub Desktop.
Save Kegelcizer/0bbba2ab8e95c5a965337edf69e064dd to your computer and use it in GitHub Desktop.
zeronsd seb
dig @10.0.1.2 hz.lan.lo
; <<>> DiG 9.11.5-P4-5.1+deb10u5-Debian <<>> @10.0.1.2 hz.lan.lo
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 31930
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;hz.lan.lo. IN A
;; Query time: 0 msec
;; SERVER: 10.0.1.2#53(10.0.1.2)
;; WHEN: Fri Jun 25 22:58:30 CEST 2021
;; MSG SIZE rcvd: 38
[
{
"Id": "6e35c45202905ccc1d77202177d602f96397986d0288d35bfa1da810c188044d",
"Created": "2021-06-25T20:00:43.001052284Z",
"Path": "/usr/bin/zeronsd",
"Args": [
"start",
"AAA",
"-d",
"lan.lo"
],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 30831,
"ExitCode": 0,
"Error": "",
"StartedAt": "2021-06-25T20:00:43.265417203Z",
"FinishedAt": "0001-01-01T00:00:00Z"
},
"Image": "sha256:b8dae782c7e417cbe9bfe702ee8d55171b099caef043190e84bcd7f8b0402d56",
"ResolvConfPath": "/var/lib/docker/containers/6e35c45202905ccc1d77202177d602f96397986d0288d35bfa1da810c188044d/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/6e35c45202905ccc1d77202177d602f96397986d0288d35bfa1da810c188044d/hostname",
"HostsPath": "/var/lib/docker/containers/6e35c45202905ccc1d77202177d602f96397986d0288d35bfa1da810c188044d/hosts",
"LogPath": "/var/lib/docker/containers/6e35c45202905ccc1d77202177d602f96397986d0288d35bfa1da810c188044d/6e35c45202905ccc1d77202177d602f96397986d0288d35bfa1d a810c188044d-json.log",
"Name": "/zeronsd",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "docker-default",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/var/lib/zerotier-one:/var/lib/zerotier-one:ro"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "host",
"PortBindings": {},
"RestartPolicy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "host",
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": [],
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DeviceCgroupRules": null,
"DeviceRequests": null,
"KernelMemory": 0,
"KernelMemoryTCP": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"PidsLimit": null,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"MaskedPaths": [
"/proc/asound",
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware"
],
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
]
},
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/9f9cb1804c2070bdd86fe8c09fffab717cfd432f780f3fac51425dc6c725bf9f-init/diff:/var/lib/docker/overlay2/7b7abc4630 eed8bb6ca9731580857c98aeefa76c5ea049d9b8319697999c03f9/diff:/var/lib/docker/overlay2/8e26cc12eee13d5bd0caa799d65a3147615e1cc17585bde2ca4862722642ba5a/diff:/var/lib/ docker/overlay2/30ec3b30358da88eac355cae60b8e48f8a1d81802d0f78a34da256b4f568fbf7/diff",
"MergedDir": "/var/lib/docker/overlay2/9f9cb1804c2070bdd86fe8c09fffab717cfd432f780f3fac51425dc6c725bf9f/merged",
"UpperDir": "/var/lib/docker/overlay2/9f9cb1804c2070bdd86fe8c09fffab717cfd432f780f3fac51425dc6c725bf9f/diff",
"WorkDir": "/var/lib/docker/overlay2/9f9cb1804c2070bdd86fe8c09fffab717cfd432f780f3fac51425dc6c725bf9f/work"
},
"Name": "overlay2"
},
"Mounts": [
{
"Type": "bind",
"Source": "/var/lib/zerotier-one",
"Destination": "/var/lib/zerotier-one",
"Mode": "ro",
"RW": false,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "kegelcizer",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"ZEROTIER_CENTRAL_TOKEN=BBB",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"Cmd": [
"start",
"AAA",
"-d",
"lan.lo"
],
"Image": "zerotier/zeronsd",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"/usr/bin/zeronsd"
],
"OnBuild": null,
"Labels": {}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "44095143d504c18d79319783b24b8670dc2c865a36fa72ee2d3ab97dc480e3c0",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {},
"SandboxKey": "/var/run/docker/netns/default",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"host": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "b94b475bc033ec7894fb5f0009d25ee42a02aff5294979288362bb6ee1e63171",
"EndpointID": "cacd22556ba987227234f758a5009ec6e1ccebc408053f127b667fbd29019af9",
"Gateway": "",
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "",
"DriverOpts": null
}
}
}
}
]
Get-DnsClientNrptRule
Name : {A24506D-9D84-4051-9CED-5472B3C73B}
Version : 2
Namespace : {.lan.lo}
IPsecCARestriction :
DirectAccessDnsServers :
DirectAccessEnabled : False
DirectAccessProxyType :
DirectAccessProxyName :
DirectAccessQueryIPsecEncryption :
DirectAccessQueryIPsecRequired :
NameServers : 10.0.1.2
DnsSecEnabled : False
DnsSecQueryIPsecEncryption :
DnsSecQueryIPsecRequired :
DnsSecValidationRequired :
NameEncoding : Disable
DisplayName :
Comment : edited
nslookup hz.lan.lo 10.0.1.2
Server: UnKnown
Address: 10.0.1.2
*** UnKnown can't find hz.lan.lo: Non-existent domain
INFO - Welcome to ZeroNS!,
INFO - Your IP for this network: 10.0.1.2,
INFO - Adding new record zt-a5bcf4453c.lan.lo.: (10.0.1.2),
INFO - Adding new record hz.lan.lo.: (10.0.1.2),
WARN - Replacing PTR record 2.1.0.10.in-addr.arpa.: (hz.lan.lo.),
INFO - Adding new record 2.1.0.10.in-addr.arpa.: (hz.lan.lo.),
INFO - Adding new record zt-b3c899c105.lan.lo.: (10.0.1.5),
INFO - Adding new record 5t.lan.lo.: (10.0.1.5),
WARN - Replacing PTR record 5.1.0.10.in-addr.arpa.: (5t.lan.lo.),
INFO - Adding new record 5.1.0.10.in-addr.arpa.: (5t.lan.lo.),
INFO - Adding new record zt-c13a941d8a.lan.lo.: (10.0.1.4),
INFO - Adding new record aerial.lan.lo.: (10.0.1.4),
WARN - Replacing PTR record 4.1.0.10.in-addr.arpa.: (aerial.lan.lo.),
INFO - Adding new record 4.1.0.10.in-addr.arpa.: (aerial.lan.lo.),
INFO - Adding new record zt-d880980b52.lan.lo.: (10.0.1.3),
INFO - Adding new record h2.lan.lo.: (10.0.1.3),
WARN - Replacing PTR record 3.1.0.10.in-addr.arpa.: (h2.lan.lo.),
INFO - Adding new record 3.1.0.10.in-addr.arpa.: (h2.lan.lo.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment