Closed QU35T-code closed 10 months ago
is there a fix for this for now?
it as you said get stuck in a loop.
tried the info command
$ htb-cli info
? Do you want to check for active machine ? Yes
2024-01-17T19:38:19.357+0100 ERROR cmd/info.go:360 {"error": "date conversion error: parsing time \"%!s(<nil>)\" as \"2006-01-02 15:04:05\": cannot parse \"%!s(<nil>)\" as \"2006\""}
github.com/GoToolSharing/htb-cli/cmd.glob..func2
/home/suljov/go/pkg/mod/github.com/!go!tool!sharing/htb-cli@v1.5.2-0.20240116210220-93784f9bb6d9/cmd/info.go:360
github.com/spf13/cobra.(*Command).execute
/home/suljov/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:876
github.com/spf13/cobra.(*Command).ExecuteC
/home/suljov/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:990
github.com/spf13/cobra.(*Command).Execute
/home/suljov/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:918
github.com/GoToolSharing/htb-cli/cmd.Execute
/home/suljov/go/pkg/mod/github.com/!go!tool!sharing/htb-cli@v1.5.2-0.20240116210220-93784f9bb6d9/cmd/root.go:46
main.main
/home/suljov/go/pkg/mod/github.com/!go!tool!sharing/htb-cli@v1.5.2-0.20240116210220-93784f9bb6d9/main.go:8
runtime.main
/usr/lib/go-1.21/src/runtime/proc.go:267
Info issue is related to this issue : #96
I work on a fix sry for that
@suljov,
It should work now. Can you update the dev version and give it a try ?
go install github.com/GoToolSharing/htb-cli@dev
qu35t@local:~/Documents/htb-cli$ go run . start
Machine deployed to lab. Playing on a VIP server
Target: 10.10.11.248
If the machine is a season machine and has been passed on to vip servers, then ip retrieval will make an infinite loop.
To Reproduce Steps to reproduce the behavior:
The following endpoint is fetch: /api/v4/machine/active Whereas if it's a season machine, it should be this one: /api/v4/season/machine/active