Created
May 3, 2020 15:16
-
-
Save powerexploit/b8a3d043330d1cb5fb8289dcaec2e18c to your computer and use it in GitHub Desktop.
Revisions
-
powerexploit created this gist
May 3, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ #!/usr/bin/python # Hackthebox invite code generator import requests import base64 import json from os import system system('tput setaf 9') print(""" ██░ ██ ▄▄▄█████▓ ▄▄▄▄ ██░ ██ ▄▄▄ ▄████▄ ██ ▄█▀ ▓██░ ██▒▓ ██▒ ▓▒▓█████▄ ▓██░ ██▒▒████▄ ▒██▀ ▀█ ██▄█▒ ▒██▀▀██░▒ ▓██░ ▒░▒██▒ ▄██▒██▀▀██░▒██ ▀█▄ ▒▓█ ▄ ▓███▄░ ░▓█ ░██ ░ ▓██▓ ░ ▒██░█▀ ░▓█ ░██ ░██▄▄▄▄██ ▒▓▓▄ ▄██▒▓██ █▄ ░▓█▒░██▓ ▒██▒ ░ ░▓█ ▀█▓░▓█▒░██▓ ▓█ ▓██▒▒ ▓███▀ ░▒██▒ █▄ ▒ ░░▒░▒ ▒ ░░ ░▒▓███▀▒ ▒ ░░▒░▒ ▒▒ ▓▒█░░ ░▒ ▒ ░▒ ▒▒ ▓▒ ▒ ░▒░ ░ ░ ▒░▒ ░ ▒ ░▒░ ░ ▒ ▒▒ ░ ░ ▒ ░ ░▒ ▒░ ░ ░░ ░ ░ ░ ░ ░ ░░ ░ ░ ▒ ░ ░ ░░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░░ ░ ░ ░ > coded By AnkitDobhal ░ ░ """) url = "https://www.hackthebox.eu/api/invite/generate" headers = {'User-Agent': 'My User Agent 1.0'} res = requests.post(url,headers=headers) data = json.loads(res.text) encoded_data = data['data']['code'].encode("utf-8") print("Encoded code is :",encoded_data) invite_code = base64.b64decode(encoded_data) print("Your HacktheBox invite code is:",invite_code)