Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandcat fails to start when whoami is not found #417

Open
alexanderkent opened this issue Jun 27, 2022 · 0 comments
Open

Sandcat fails to start when whoami is not found #417

alexanderkent opened this issue Jun 27, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@alexanderkent
Copy link

Describe the bug
Sandcat agent fails on startup when whoami command is not found on the platform.

if usernameBytes, err := exec.Command("whoami").CombinedOutput(); err == nil {

To Reproduce
Steps to reproduce the behavior:

  1. Temp remove whoami e.g. rename, alter path etc
  2. Launch sandcat agent -v
./sandcat-arm64 -v
Starting sandcat in verbose mode.
[-] Error when initializing agent: exec: "whoami": executable file not found in $PATH
[-] Exiting.

Expected behavior
Not all platforms have whoami -- soft-fail instead of a terminal error?

Desktop (please complete the following information):

  • arm64 / IoT / debian
@alexanderkent alexanderkent added the bug Something isn't working label Jun 27, 2022
@alexanderkent alexanderkent changed the title Sandcat agent fails to start when whoami is not found Sandcat fails to start when whoami is not found Jun 27, 2022
@elegantmoose elegantmoose assigned elegantmoose and unassigned wbooth Dec 21, 2022
@clenk clenk reopened this Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants