HackTheBox Napper: Read Elastic, Generate Key, Decrypt Blob in Golang @0xdf
HackTheBox Napper: Read Elastic, Generate Key, Decrypt Blob in Golang  @0xdf
Uploaded May 2024 | Updated November 2026, 3 hours ago
In Napper from HackTheBox, I'll need to pull values from an Elastic database that rotated every 5 minutes. The values are a seed and an encrypted blob. I'll use the seed with the random function in Go to generate a key, and use it to AES decrypt the blob. So today we're working in Go!

HackTheBox Napper Blog post: 0xdf.gitlab.io/2024/05/04/htb-napper.html
HackTheBox Napper: hackthebox.com/machines/napper
Elastic Go Example: github.com/elastic/go-elasticsearch/blob/main/_examples/encoding/gjson.go
Go gjson: github.com/tidwall/gjson
Elastic Client docs: https://pkg.go.dev/github.com/elastic/go-elasticsearch/v7#section-readme
Go getting started: https://go.dev/doc/tutorial/getting-started

☕ Buy Me A Coffee: buymeacoffee.com/0xdf

[00:00] Introduction
[01:17] Show data with curl
[03:23] Creating Go project
[04:25] Elastic example code
[06:28] Updating code to connect to Napper
[10:33] Removing unneeded example code
[11:23] Getting seed
[14:56] Getting blob
[19:11] Converting main to function
[21:38] Generating key from seed
[24:26] Decrypt blob
[29:12] Conclusion

#pentest #ctf #bugbounty #golang #go #elastic
HackTheBox Napper: Read Elastic, Generate Key, Decrypt Blob in GolangExploring a Simple Ruby Web Application [HackTheBox Precious Beyond Root]OnlyHacks [HackTheBox Web Challenge]Reactor [AOC2025 Day 11]Insane Bolt [HackTheBox - Coding Challenge]NovaEnergy - HackTheSystem CTFUsing GitHub to Look at Source for a CVE [HackTheBox - Forgot]Lobby [AOC2025 Day 3]AWS CLI (Very) Intro [Sans Holiday Hack 2022 - Cloud Ring]jq Injection [Jason - Hacky Easter 2023]Automating x64dbg with x64dbgpython [Serpentine - Flare-On 2024]Day 2 - Bathroom Security [Revival of Code 2023 - Advent of Code 2016]
0xdf |

HackTheBox Napper: Read Elastic, Generate Key, Decrypt Blob in Golang

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER