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

POC: Returning the http server location instead of the C2 connection string in the agent profile #31

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions shells/manx.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ var (
http = "http://localhost:8888"
)

func buildProfile(socket string, executors []string) map[string]interface{} {
func buildProfile(socket string, http string, executors []string) map[string]interface{} {
host, _ := os.Hostname()
user, _ := user.Current()
platform := runtime.GOOS
architecture := runtime.GOARCH

profile := make(map[string]interface{})
profile["server"] = socket
profile["server"] = http
profile["host"] = host
profile["username"] = user.Username
profile["architecture"] = runtime.GOARCH
Expand All @@ -50,7 +50,7 @@ func main() {
flag.Var(&executors, "executors", "Comma separated list of executors (first listed is primary)")
flag.Parse()

profile := buildProfile(*socket, executors)
profile := buildProfile(*socket, *http, executors)

output.SetVerbose(*verbose)
output.VerbosePrint(fmt.Sprintf("[*] %s outbound socket %s, inbound at %d", *contact, *socket, *inbound))
Expand Down