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

Update agent.go and handlers.go for 3rd party agent UI support #406

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

0xTriboulet
Copy link
Contributor

@0xTriboulet 0xTriboulet commented Oct 9, 2023

Fixed HealthUI and OS Version UI for 3rd party agents.

Havoc/teamserver/pkg/agent/agent.go

	// Updated OS Version handling - 0xtriboulet
	if val, ok := RegisterInfo["OS Version"]; ok {
	    // Assuming val is a string representing the OS version, split it by '.' to get the version parts, 0xtriboulet
	    versionParts := strings.Split(val.(string), ".")
	    OsVersion := make([]int, len(versionParts))
	    for i, part := range versionParts {
		OsVersion[i], _ = strconv.Atoi(part)
	    }
	    agent.Info.OSVersion = getWindowsVersionString(OsVersion)
	}

Havoc/teamserver/pkg/handlers/handlers.go

	// Update Callback time - 0xtriboulet
	if Teamserver.AgentExist(Header.AgentID) {
		Agent.UpdateLastCallback(Teamserver)
	}

Added callback time updates to 3rd party agents
Fixed 3rd party agent OS version handling
@0xTriboulet 0xTriboulet changed the title Update handlers.go Update agent.go and handlers.go for 3rd party agent UI support Oct 9, 2023
@S4ntiagoP S4ntiagoP merged commit 0b0d276 into HavocFramework:dev Oct 10, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants