Skip to content

Instantly share code, notes, and snippets.

View maikzumstrull's full-sized avatar

Maik Zumstrull maikzumstrull

View GitHub Profile
$ DNS_SERVERS="8.8.8.8 208.67.222.222 54.93.169.181 46.166.189.67 83.169.184.33"
[maik@Furud] ~ $ for D in $DNS_SERVERS ; do dig www.google.com. @$D ; done
; <<>> DiG 9.11.1-P3-RedHat-9.11.1-2.P3.fc26 <<>> www.google.com. @8.8.8.8
;; global options: +cmd
;; connection timed out; no servers could be reached
; <<>> DiG 9.11.1-P3-RedHat-9.11.1-2.P3.fc26 <<>> www.google.com. @208.67.222.222
;; global options: +cmd
;; connection timed out; no servers could be reached
function findPhishMeSpam() {
var header_re = /^X-PhishMeTracking:/m;
var l = GmailApp.getUserLabelByName("PhishMe")
var threads = GmailApp.getInboxThreads(0, 20)
for (var i = 0; i < threads.length; i++) {
var t = threads[i]
var messages = t.getMessages()
for (var j = 0; j < messages.length; j++) {
var m = messages[j]
var raw = m.getRawContent()