mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-10-11 01:28:57 +02:00
add option to save additional data
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
1 parent
9e8c1fc4d3
commit
fa1174e06c
13 files changed
+240
-51
No files matched your search
@@ -38,11 +38,12 @@ type Campaign struct {
|
||||
// hh:mm
|
||||
ConstraintStartTime *string `gorm:"index;"`
|
||||
// hh:mm
|
||||
ConstraintEndTime *string `gorm:"index;"`
|
||||
SaveSubmittedData bool `gorm:"not null;default:false"`
|
||||
IsAnonymous bool `gorm:"not null;default:false"`
|
||||
IsTest bool `gorm:"not null;default:false"`
|
||||
Obfuscate bool `gorm:"not null;default:false"`
|
||||
ConstraintEndTime *string `gorm:"index;"`
|
||||
SaveSubmittedData bool `gorm:"not null;default:false"`
|
||||
SaveBrowserMetadata bool `gorm:"not null;default:false"`
|
||||
IsAnonymous bool `gorm:"not null;default:false"`
|
||||
IsTest bool `gorm:"not null;default:false"`
|
||||
Obfuscate bool `gorm:"not null;default:false"`
|
||||
|
||||
// has one
|
||||
CampaignTemplateID *uuid.UUID `gorm:"index;type:uuid;"`
|
||||
|
||||
@@ -20,6 +20,9 @@ type CampaignEvent struct {
|
||||
// arbitrary data
|
||||
Data string `gorm:"not null;"`
|
||||
|
||||
// metadata stores browser fingerprinting data (ja4, platform, accept-language) as json
|
||||
Metadata string `gorm:"not null;default:''"`
|
||||
|
||||
// has one
|
||||
CampaignID *uuid.UUID `gorm:"not null;index;type:uuid;"`
|
||||
EventID *uuid.UUID `gorm:"not null;index;type:uuid;"`
|
||||
|
||||
Reference in new issue
Block a user