Skip to content

Commit

Permalink
updating httpx rotation random for success
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Dec 8, 2024
1 parent 6531746 commit 2436814
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Payload_Type/poseidon/poseidon/agent_code/CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 2.1.14 - 2024-12-08

### Changed

- Updated the httpx rotation method for random in success as well as error

## 2.1.13 - 2024-11-27

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,8 @@ func (c *C2HTTPx) increaseSuccessfulMessage() {
c.CallbackDomainsFailCount[c.CurrentDomain] = 0
} else if c.DomainRotationMethod == "round-robin" {
c.CurrentDomain = (c.CurrentDomain + 1) % len(c.CallbackDomains)
} else if c.DomainRotationMethod == "random" {
c.CurrentDomain = rand.Intn(len(c.CallbackDomains))
} else {
utils.PrintDebug(fmt.Sprintf("unknown domain rotation method: %s\n", c.DomainRotationMethod))
}
Expand Down
2 changes: 1 addition & 1 deletion Payload_Type/poseidon/poseidon/agentfunctions/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"time"
)

const version = "2.1.13"
const version = "2.1.14"

type sleepInfoStruct struct {
Interval int `json:"interval"`
Expand Down

0 comments on commit 2436814

Please sign in to comment.