├── LICENSE ├── README.md └── reverse.py /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Pr0t0n 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HSL-Reverse 2 | The Fastest & Simplest HSL Generator for Hcaptcha 3 | -------------------------------------------------------------------------------- /reverse.py: -------------------------------------------------------------------------------- 1 | # Made by Pr0t0n 2 | 3 | import jwt # 2 less imports (pip install pyjwt) 4 | from datetime import datetime 5 | 6 | def generate_hsl(jwt_token: str): # around 50 less lines of code with unnecessary hashing (I read line by line and it's all useless) 7 | data = jwt.decode(jwt_token, options={"verify_signature": False}) # decodes json web token to get values 8 | return ":".join([ #":".join to add : after every list value 9 | "1", # always 1 10 | str(data['s']), # s value in decoded JWT 11 | str(datetime.fromtimestamp(int(data['e'])).isoformat().replace("-", "").replace("T", "").replace(":", "")), # h0nde never used the unix timestamp provided in the decoded JWT token LOL 12 | data['d'], # d value in decoded JWT token 13 | "", # blank so .join can add two :: 14 | "1" # this is the value h0nde made all that unnecessary code for 15 | ]) 16 | --------------------------------------------------------------------------------