Skip to content

refactor: migrate to HackTheBox API v4 and optimize table rendering#12

Open
comandre-ex wants to merge 1 commit into
s4vitar:masterfrom
comandre-ex:master
Open

refactor: migrate to HackTheBox API v4 and optimize table rendering#12
comandre-ex wants to merge 1 commit into
s4vitar:masterfrom
comandre-ex:master

Conversation

@comandre-ex
Copy link
Copy Markdown

Description

This Pull Request updates the htbExplorer script to ensure compatibility with the current HackTheBox infrastructure, resolving routing issues caused by legacy API endpoints.

Key Changes

  • API Migration: Updated all global variables and endpoints to use the modern HTB API v4 (https://labs.hackthebox.com/api/v4/).
  • Table Rendering Optimization: Replaced the legacy Bash-based loop in printTable with an inline Python 3 script using Unicode characters. This significantly improves performance and provides a much cleaner, well-aligned terminal UI.
  • Cache Implementation: Retained the cache mechanism to optimize requests and prevent API rate-limiting.

Tested locally and working perfectly. Ready for merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant