GoToolSharing / htb-cli

Interact with Hackthebox using your terminal - Be faster and more competitive !
https://github.com/GoToolSharing/htb-cli
GNU General Public License v3.0
87 stars 6 forks source link

[BUG] Crash when show active release arena machine informations #96

Closed QU35T-code closed 10 months ago

QU35T-code commented 10 months ago

To Reproduce Steps to reproduce the behavior:

❯ htb-cli start 
Machine spawned! Playing on the competitive server
Target: 10.129.237.172

~
❯ htb-cli info 
? Do you want to check for active machine ? Yes
2024-01-17T12:47:06.308+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
    /Users/qu35t/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
    /Users/qu35t/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:876
github.com/spf13/cobra.(*Command).ExecuteC
    /Users/qu35t/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:990
github.com/spf13/cobra.(*Command).Execute
    /Users/qu35t/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:918
github.com/GoToolSharing/htb-cli/cmd.Execute
    /Users/qu35t/go/pkg/mod/github.com/!go!tool!sharing/htb-cli@v1.5.2-0.20240116210220-93784f9bb6d9/cmd/root.go:46
main.main
    /Users/qu35t/go/pkg/mod/github.com/!go!tool!sharing/htb-cli@v1.5.2-0.20240116210220-93784f9bb6d9/main.go:8
runtime.main
    /usr/local/go/src/runtime/proc.go:267
QU35T-code commented 10 months ago

Should be fixed on dev