-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add Daemon #551
base: stage
Are you sure you want to change the base?
Add Daemon #551
Conversation
We'll need build constraints around the platform specific implant code. |
@@ -57,15 +57,21 @@ func RemoteTask(processID int, data []byte, rwxPages bool) error { | |||
return nil | |||
} | |||
|
|||
// SideloadFile - Create a file for use with Sideload | |||
func SideloadFile(data []byte) (string, error) { | |||
fdPath := fmt.Sprintf("/tmp/.%s", randomString(10)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the stdlib create tmp file please.
For shell, we can add a check to see if the current sessions' implant config is a daemon and automatically pass in |
This pr has been here for a while now, are there any changes you need to get this across the line? |
Oh yes, sorry I can review shortly. I think I wanted to make a couple small tweaks but I can probably take care of them. |
Thanks, let me know if you want any assistance. |
@usiegl00 when you find some time, can you try to resolve the conflicts with the stage branch? I'll merge once the conflicts are resolved. |
It looks like most of them are in generated code, I can maybe resolve them. |
Card
See issue #528
Details
This breaks the
shell
command.The
shell
command works with the--no-pty
flag.There is some discussion here on how to spawn a pty in a daemon.