github.com/lunarobliq/gophish@v0.8.1-0.20230523153303-93511002234d/WipeIOCs.sh (about)

     1  #!/bin/bash
     2  echo "[*] Running WIPE IOC for Gophish Script"
     3  sed -i 's/X-Gophish-Contact/X-Contact/g' models/email_request_test.go
     4  sed -i 's/X-Gophish-Contact/X-Contact/g' models/maillog.go
     5  sed -i 's/X-Gophish-Contact/X-Contact/g' models/maillog_test.go
     6  sed -i 's/X-Gophish-Contact/X-Contact/g' models/email_request.go
     7  sed -i 's/X-Gophish-Signature/X-Signature/g' webhook/webhook.go
     8  sed -i 's/const ServerName = "gophish"/const ServerName = "Outlook"/' config/config.go
     9  sed -i 's/const RecipientParameter = "rid"/const RecipientParameter = "keyname"/g' models/campaign.go