Skip to content

Instantly share code, notes, and snippets.

View terraboops's full-sized avatar
sparkle boops

Terra Tauri terraboops

sparkle boops
View GitHub Profile
@terraboops
terraboops / phish.js
Created November 1, 2022 05:59
knowbe4 google script
// Update the email address below
// Schedule to run every 30 minutes at https://script.google.com/
function phish() {
const threads = GmailApp.search("newer_than:30m");
const totalSpammed = 0;
threads.forEach((thread) => {
thread.getMessages().forEach((message) => {
if(message.getHeader("X-PHISHTEST") !== "") {
thread.moveToSpam();
totalSpammed++;