feat: add TCP DNS plugin with SOCKS5 proxy support
Extract shared DNS wire-format helpers into src/derp/dns.py so both the UDP plugin (dns.py) and the new TCP plugin (tdns.py) share the same encode/decode/build/parse logic. The !tdns command routes queries through the SOCKS5 proxy via derp.http.open_connection, using TCP framing (2-byte length prefix). Default server: 1.1.1.1. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -82,6 +82,7 @@ format = "text" # Log format: "text" (default) or "json"
|
||||
| `!topic [text]` | Set or query channel topic (admin) |
|
||||
| `!mode <mode> [args]` | Set channel mode (admin) |
|
||||
| `!dns <target> [type]` | DNS lookup (A, AAAA, MX, NS, TXT, CNAME, PTR, SOA) |
|
||||
| `!tdns <target> [type] [@server]` | TCP DNS lookup via SOCKS5 proxy |
|
||||
| `!encode <fmt> <text>` | Encode text (b64, hex, url, rot13) |
|
||||
| `!decode <fmt> <text>` | Decode text (b64, hex, url, rot13) |
|
||||
| `!hash [algo] <text>` | Generate hash digests (md5, sha1, sha256, sha512) |
|
||||
|
||||
Reference in New Issue
Block a user