c00ked d3v writeup, NexZeroCTF osint/4n6

Overview#

EventNexZeroCTF
CategoryRonins [OSINT/4n6]
Challengec00ked d3v [1/2 & 2/2]
Initial Leadkojirou825
Pivot ChainGHCR -> Docker layers -> favicon hash -> FOFA -> URLScan -> GitHub Events -> Git mirror -> DNS TXT -> Gist

The dev in this story tried to clean up after himself. The first host is already offline when you find it, and the GitHub comment you need was deleted. Both are still recoverable if you know where GitHub, Docker and URLScan keep old data.

Part 1: the package#

The prerequisite challenge, Vagabond behind laptophada, gives you one thing: the handle kojirou825.

The profile has no public repos and no activity. The tab people skip is Packages, and that’s where the lead is.

GitHub Packages Pivot
One published package: ronins-hash-studio.

The package is a public GHCR image:

GHCR Package Versions
The ronins-hash-studio image and its tags.

The tag that matters:

ghcr.io/kojirou825/ronins-hash-studio:2026.02.24-r1

Part 2: layers, whiteouts, favicon#

Pull the image and look at the layers one by one instead of running it. A file deleted in a later layer is still inside the earlier one.

docker pull ghcr.io/kojirou825/ronins-hash-studio:2026.02.24-r1
docker save ghcr.io/kojirou825/ronins-hash-studio:2026.02.24-r1 -o ronins.tar
mkdir extracted_image
tar -xf ronins.tar -C extracted_image
cd extracted_image

Loop over the layer tarballs and grep for the favicon:

for blob in blobs/sha256/*; do
  tar -tf "$blob" 2>/dev/null | grep -E 'favicon\.ico|\.wh\.favicon\.ico' && echo "[+] $blob"
done

Two hits:

  • app/static/favicon.ico
  • .wh.favicon.ico

A lower layer has the real icon and a later layer has a whiteout for the same path, meaning the icon was in an early build and got deleted afterwards. Run the container and you won’t see it, but it’s sitting right there in the older layer’s tarball.

Pull the icon out and hash it the way Shodan and FOFA do (mmh3 over the base64):

python3 - <<'PY'
import base64
import mmh3

with open("favicon.ico", "rb") as f:
    print(mmh3.hash(base64.b64encode(f.read())))
PY
-1359010016

Shodan knows the hash but won’t show the host on a free account:

Shodan Paywall
Shodan has the hash, host details are paywalled.

FOFA does:

FOFA Hit
FOFA: one deployment with that favicon.
172.236.204.62

The page title and service on that hit match Ronins Hash Studio, so it’s the right box and not a hash collision.

Part 3: the host is dead, URLScan isn’t#

By the time you get the IP the box is down, so you need a scanner that saw it while it was still up. Search the IP on URLScan and there’s a capture from back then:

URLScan DOM Tree
URLScan kept the DOM and source of the dead host.

The screenshot shows nothing interesting. Open the DOM view and scroll, there’s an HTML comment inside the Operator Cache panel:

Flag in Archived DOM
Flag 1, in a comment in the archived DOM.
nexus{70uch1n9_9r455_4nd_cur471n9_1mm4cul473_fuck1n9_v1b35_bl3553d_rn}

First half done: package -> image -> deleted favicon -> IP -> archived page.

Part 4: the deleted comment#

After flag one, kojirou825 looks empty again: no contribution graph, no public activity, and a staging repo that leads nowhere. There’s an issue thread on ZX41R/ronins-staging-repo, but the comment you want was deleted, so the web UI shows nothing.

The public events API still has it:

curl -s https://api.github.com/users/kojirou825/events/public
GitHub Events API
IssueCommentEvent from kojirou825 on ZX41R/ronins-staging-repo.

When I checked, the event payload still had the full comment body:

bro I told you the orange mirror uses a different namespace for the new staging pipeline. i used yifan471 to push the final commits. stop opening issues here, this repo is dead.

What you take from it:

  • orange mirror: GitLab (orange logo), not GitHub
  • yifan471: the new handle
  • this repo is dead: stop digging on GitHub

Part 5: the mirror#

Search yifan471 on GitLab and there’s another ronins-staging-repo:

Mirror Repository
ronins-staging-repo under yifan471.

Not much history in it. Read the staged HTML instead. There’s a comment block in the source that names the next host:

Staging Source Leak
The staged source names ronins-data.estin.pro.
ronins-data.estin.pro

Part 6: DNS TXT#

ronins-data.estin.pro serves nothing useful over HTTP. When a subdomain exists but has no site, check its records. TXT first:

dig TXT ronins-data.estin.pro
DNS TXT Record
One base64 TXT record.

Decode it:

base64 -d <(echo -n "aHR0cHM6Ly9naXN0LmdpdGh1Yi5jb20vWlg0MVIvZWRlNjdhMjBjOGViNDE0ZGE5OWZiZDE0ZmY5NmJlOTI=")
echo
Decoded Gist URL
The TXT record decodes to the Gist URL.
https://gist.github.com/ZX41R/ede67a20c8eb414da99fbd14ff96be92

Open the Gist and run the code in it to get the last flag:

nexus{l37_h1m_c00k_7h3_dn5_r3c0rd5_4r3_5p1cy_4f}

Chain#

  • GitHub Packages -> GHCR image
  • image layers -> deleted favicon
  • favicon hash -> FOFA -> IP
  • URLScan capture of the dead host -> flag 1
  • public events API -> deleted comment -> yifan471
  • GitLab mirror -> ronins-data.estin.pro
  • DNS TXT -> Gist -> flag 2