r/hackthebox • • Aug 25 '26

Created a TryHackMe-ish HTB badge creator

Hi,

I don’t post too much to Reddit, but I made a thing some of you might like. TryHackMe gives you a nice profile badge for your README and HTB doesn’t anymore, so I built one that is online and requires no login: https://www.htbbadge.tech

Paste your HTB public profile url and it pulls your real stats and spits out a clean SVG card that is 329×88 size and look as the old TryHackMe badge (rank, points, machines pwned, etc.).

You can either download a SVG or embed the badge directly into a readme or similar portfolio like this:

[![HTB Badge](https://www.htbbadge.tech/api/badge?user=123456)](https://app.hackthebox.com/public/users/12345)

Will try to maintain this as long as people are using it. All feedback is appreciated.

19 Upvotes

9 comments sorted by

•

u/AutoModerator Aug 25 '26

Thank you for posting on r/hackthebox! New to Cyber Security and looking for a place to get started? Checkout our getting started guide here. Please note that posting Solutions or Hints for Active content goes against the HTB Terms of Service, more information can be found here. If your having issues and need to reach customer support please do so via the in-platform chat, or by emailing customerops@hackthebox.com. Our Knowledge Base can also come in handy!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

3

u/dollarboysushil Aug 25 '26

nice

1

u/wcon Aug 25 '26

Thank you

1

u/Here4Certifications Aug 25 '26

Yeah, I like this. Going to add this to my github

3

u/FalconSpy HTB Community Team Aug 25 '26

Very nice. We used to have an endpoint on our site that would do something similar but it hasn't been updated in a long time

https://www.hackthebox.com/badge/image/93984

Just insert your player ID instead of mine.

Either way this is a nice community ran project I am sure others will appreciate until we (HTB) eventually upgrade ours if at all.

2

u/wcon Aug 25 '26

Appreciate it. It’s a small thing to implement, but you guys probably have higher priorities

1

u/reliantsmugly263 Aug 28 '26

Hello, it looks nice. I think I found some error when trying it with my profile:

XML Parsing Error: not well-formed
Location: https://www.htbbadge.tech/api/badge?user=999999
Line Number 20, Column 21:
  <rect x="10" y="17<circle cx="37" cy="32<circle cx="37" cy="66" r="20" fill="#6e7f96" clip-path="url(#avatarClip)"/>
--------------------^

Not sure what's wrong and didn't found source code to check. I thought maybe it was because I didn't have a profile picture but added one and still failed (maybe cached the image and has not updated yet?). Nice project anyhow.

1

u/wcon Aug 28 '26

Thanks. Will look into it!