Skip to content

Instantly share code, notes, and snippets.

View dlukeomalley's full-sized avatar

Luke O'Malley dlukeomalley

View GitHub Profile
@dlukeomalley
dlukeomalley / index.js
Created June 6, 2019 17:43
electron-native-notify-1.1.6 malicious source code
const MainProcessNotification = require("electron").Notification;
const isRenderer = process && process.type === "renderer";
const isSupported = () => isRenderer ? "Notification" in window : MainProcessNotification.isSupported();
const renderNotify = (title, body) => {
const notification = new Notification(title, {
body: body
});
return notification
};
try {

Keybase proof

I hereby claim:

  • I am dlukeomalley on github.
  • I am dlukeomalley (https://keybase.io/dlukeomalley) on keybase.
  • I have a public key whose fingerprint is 3922 98E6 316B 701E EC5B 3FE7 1478 57DF FF97 B1DC

To claim this, I am signing this object:

@dlukeomalley
dlukeomalley / boarding_sim.py
Created March 25, 2013 16:19
Code for the plane boarding simulator. It's a little messy, but it's a hack project.
import random
from copy import deepcopy as dc
import itertools
import numpy as np
################################################################################
### Helper functions & classes
################################################################################
def genLoadTime():