Skip to content

Machine Interaction APIs (i.e. spawning/reset machines) #6

@D3vil0p3r

Description

@D3vil0p3r

Hello, I was giving a look to your docs listing all the API and I noted that all of them are exclusively get functions.

I was also reading this other documentation https://pyhackthebox.readthedocs.io/en/latest/ , in particular https://pyhackthebox.readthedocs.io/en/latest/_modules/hackthebox/machine.html#Machine.spawn where, inside the spawn function, there is the following call: self._client.do_request("vm/spawn", json_data={"machine_id": self.id}) so it should mean there exist also API v4 for spawning machines, is it correct? If so. I'm trying to use commands like this

curl --location --request POST 'https://www.hackthebox.com/api/v4/vm/spawn' -d '{"machine_id":2120}' -H "$api"

but with no success. The further doc I posted should refer to v4 API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions