Tags: web 

Rating:

# dig-dug (100)

## Problem

I found this super sketchy website called hole.sketchy.dev. Can you help me dig up some of its secrets?

Oh, and someone told me that the secrets are TXT. I don't know what this means, so good luck!

## Solution

This is a simple dig problem. We just need to pass `-t txt` since we want TXT (as stated by the problem).

```
$ dig -t txt hole.sketchy.dev

; <<>> DiG 9.14.1 <<>> -t txt hole.sketchy.dev
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7669
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1280
;; QUESTION SECTION:
;hole.sketchy.dev. IN TXT

;; ANSWER SECTION:
hole.sketchy.dev. 3600 IN TXT "bcactf{d1g-f0r-h073s-w/-dns-8044323}"

;; Query time: 54 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Sat Jun 15 22:28:51 PDT 2019
;; MSG SIZE rcvd: 94
```

Original writeup (https://github.com/shawnduong/ctf-writeups/blob/master/2019-BCA/web/dig-dug.md).