Skip to content

Instantly share code, notes, and snippets.

@mikaelkall
Last active August 7, 2018 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikaelkall/31dc1526faa9430eaaa494f56cfade8a to your computer and use it in GitHub Desktop.
Save mikaelkall/31dc1526faa9430eaaa494f56cfade8a to your computer and use it in GitHub Desktop.
curl -sd '{"key":"value"}' https://www.hackthebox.eu/api/invite/generate | jq .data.code |tr -d '"' |base64 -d | xargs
Update this was shorter.
curl -s -X POST https://www.hackthebox.eu/api/invite/generate | egrep -o "[a-Z0-9]+\=" |base64 -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment