https://github.com/avestura/shell-over-dns
Tiny experiment to respond to DNS queries by shell executing them on host.
https://github.com/avestura/shell-over-dns
dns shell
Last synced: 8 months ago
JSON representation
Tiny experiment to respond to DNS queries by shell executing them on host.
- Host: GitHub
- URL: https://github.com/avestura/shell-over-dns
- Owner: avestura
- License: apache-2.0
- Created: 2024-12-26T19:51:01.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-12-26T19:52:16.000Z (9 months ago)
- Last Synced: 2024-12-26T20:29:14.149Z (9 months ago)
- Topics: dns, shell
- Language: Go
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Shell over DNS
Tiny experiment to respond to DNS queries by shell executing them on host.
> [!CAUTION]
> This is obviously not secure. Do not use it.## Example:
```
$> dig "@localhost" -p 9953 "hostname"; <<>> DiG 9.16.22 <<>> @localhost -p 9953 hostname
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9825
;; flags: qr rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available;; QUESTION SECTION:
;hostname. IN A;; ANSWER SECTION:
shell. 3600 IN TXT "VMForTest\013\010";; Query time: 22 msec
;; SERVER: 127.0.0.1#9953(127.0.0.1)
;; WHEN: Thu Dec 26 23:17:32 Iran Standard Time 2024
;; MSG SIZE rcvd: 53
```