GoToolSharing / htb-cli

Interact with Hackthebox using your terminal - Be faster and more competitive !
https://github.com/GoToolSharing/htb-cli
GNU General Public License v3.0
87 stars 6 forks source link

[FEAT] Query user created content #124

Open Yeeb1 opened 10 months ago

Yeeb1 commented 10 months ago

Hey,

first - thank you for maintaining this project!

I'd really like to see a function in htb-cli that queries the HTB API for user created content, like machines, challenges and writeups. There is a API endpoint located at

https://www.hackthebox.com/api/v4/profile/content/<USERID>

I created a simple python implemenation that queries the endpoint in python:

https://gist.github.com/Yeeb1/c5eb3343fafe1a0b85531b53c25c6a96