D3vil0p3r / htb-toolkit

Play Hack The Box directly on your system.
GNU General Public License v3.0
37 stars 4 forks source link

No support for Competitve VPNs or Seasonal Boxes #1

Open DisplayGFX opened 11 months ago

DisplayGFX commented 11 months ago

The program does not support either competitive VPNs, or the seasonal machines that go with it.

This was ran when Drive was the seasonal machine.

At least, I would like to chose the competitive VPNs, and for the correct box type to be submitted.

Ideally, the program would recognize the machine as seasonal, and only allow Competitive VPNs to be selected.


Stopping any active machine...
Note: if you interrupted the htb-toolkit before the spawn of a previous machine, give me two minutes to end the old spawn process and stop the related machine...                                                                                                                                                         
Machine terminated.
Interface not found: tun0
┌────────────────────────────────────────────────────┐
| Machines Free VPN       : EUFree1 EUFree2 EUFree3  |
|                           USFree1 USFree2 USFree3  |
|                           AUFree1 SGFree1          |
| Machines VIP VPN        : EUVIP1 to EUVIP28        |
|                           USVIP1 to USVIP27        |
|                           SGVIP1 SGVIP2 AUVIP1     |
| Machines VIP+ VPN       : EUVIP+1 EUVIP+2          |
|                         : USVIP+1 SGVIP+1          |
└────────────────────────────────────────────────────┘
Please, provide one VPN server you prefer to connect: usvip+1
┌────────────────────────────────────────────────────┐
| Starting Point Free VPN : EUSPFree1 USSPFree1      |
| Starting Point VIP VPN  : EUSPVIP1  USSPVIP1       |
└────────────────────────────────────────────────────┘
┌────────────────────────────────────────────────────┐
| Machines Free VPN       : EUFree1 EUFree2 EUFree3  |
|                           USFree1 USFree2 USFree3  |
|                           AUFree1 SGFree1          |
| Machines VIP VPN        : EUVIP1 to EUVIP28        |
|                           USVIP1 to USVIP27        |
|                           SGVIP1 SGVIP2 AUVIP1     |
| Machines VIP+ VPN       : EUVIP+1 EUVIP+2          |
|                         : USVIP+1 SGVIP+1          |
└────────────────────────────────────────────────────┘
Please, provide one VPN server you prefer to connect: USVIP+1

Would you like to connect to Hack The Box VPN by UDP or TCP? [UDP] 

Connecting to USVIP+1 server [id=289]

Switch response: VPN Server switched
File saved successfully.
2023-10-19 00:40:02 WARNING: Compression for receiving enabled. Compression has been used in the past to break encryption. Sent packets are not compressed unless "allow-compression yes" is also set.
OpenVPN started successfully
You are running OpenVPN in background. For terminating it, close this window by mouse right-click on the window bar. If you type 'exit', OpenVPN will restart due to its native configuration.
Response: {"message":"Incorrect lab type."}
Request failed with status: 400 Bad Request
D3vil0p3r commented 11 months ago

Yes I know because I never implemented it

AkechiShiro commented 8 months ago

Is it planned to be worked on ? Is there any way I can help, I'm interested in getting this feature into the tool but I'm not familiar with the codebase, I have contributed to other Rust project but I consider myself still very new to Rust.

Can you gave any directions on how this feature should be added ? I'm willing to give it a try @D3vil0p3r if you think that's something not too complicated to implement at the moment.

EDIT: I'm under ArchLinux (with BlackArch repos) using Nix, to use htb-toolkit

D3vil0p3r commented 8 months ago

I'm currently doing Athena OS full migration from Arch to Nix, so I'm prioritizing that. If you are good with Rust and know how to manage API (by reading HTB Toolkit source code), you can contribute by opening PR. Otherwise you should wait I finish my current activities.

shard77 commented 8 months ago

@AkechiShiro @DisplayGFX I'm going to start writing the code to implement those features, please be patient as it could take a few days (I'm also busy with some other stuff, and the realworldctf that happens to be this week-end), I'll update both of you as soon as I am finished

AkechiShiro commented 7 months ago

Hi @shard77 have you found any time to try and work on this feature ? I believe this is outside of my current Rust skillset to try and implement but I could probably help you if you'd lead this change.

shard77 commented 7 months ago

Hi @shard77 have you found any time to try and work on this feature ? I believe this is outside of my current Rust skillset to try and implement but I could probably help you if you'd lead this change.

Hi @AkechiShiro, yes, I started working on this feature, although I am currently working on a new tool which will implement more platforms and features, so it takes some more time.

Sorry for the delay, I'll notify you as soon as the new tool is released.