Feasibility of Windows-native Builds for Labctl
I know it might come off as a weird question, but can the windows users get some attention, please?
Feature Request
- Distribute an additional stream of builds for windows x64 (could let the users manage the binary PATH config & permission themselves for now)
- Add necessary condition for windows environment in
https://labs.iximiuz.com/cli/install.sh
Workaround
- If not feasible, can we have a labctl docker image to run the binary instead?
- Nice to have: a docker / nerdctl oneliner for an out-of-the-box CLI experience (pull & start the container, manage volumes, aucleanup after use etc.).
I understand that a Windows-native solution would be the ideal option, but I'm afraid it's not on the roadmap - I neither have access to a Windows machine nor have any recent Windows programming experience. Regarding the dockerized version, it is indeed an option, but is it any better than using a Linux build of labctl in WSL?
Understandable, Ivan. About the docker idea - I do think having a containerized CLI offering sounds better, since the networking limitations & compatibility issue of WSL gives me a hard time to work alongside with hypervisors like VirtualBox (because of hyper-V dependency) and network pentesting tools like nmap.
Sharing a lightweight containerized option would be useful for a lot of consumers, I feel, especially in InfoSec / DevOps domains.
Thanks for elaborating, @bijoy26! Providing a containerized version is much more realistic. The only thing that bothers me is the config file that typically sits at ~/.iximiuz/labctl/config.yaml. But maybe it can be worked around with a shell alias like:
alias labctl=docker run -v $HOME/.iximiuz/labctl/config.yaml ghcr.io/iximiuz/labs/labctl`
But again, I don't know if it'll work on Windows.
Cool. I'm already working towards something similar (mounting .iximiuz/labctl volume) locally. Goal is to make it functional with a bare-minimum dockerfile and then decrease the attack surface on future iterations.
Will let you know how it goes.
Awesome! I'll be happy to accept a PR! Thanks for your help!