Heartbeat #11
safesploit
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Server / c2.py
Send heartbeat to all targets
after sending a heartbeat message to a target, the server waits for a 'heartbeat_ack' message from that target. If it doesn't receive an acknowledgment within 10 seconds, it prints a message indicating that the target might be down.
Client / backdoor.py
When the client receives a 'heartbeat' message, it can respond with a 'heartbeat_ack' message to acknowledge receipt. If the client doesn't receive a heartbeat message within a certain timeframe, it can assume the server has gone down and try to reconnect.
Beta Was this translation helpful? Give feedback.
All reactions