Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Austin matt-

  • m-austin
View GitHub Profile
View hacker_hot_key.ino
#include <Keyboard.h>
#include <Bounce2.h>
#define NUM_BUTTONS 8
const uint8_t BUTTON_PINS[NUM_BUTTONS] = {13, 5, 10, 9, 8, 6, 12, 4};
Bounce2::Button * buttons = new Bounce2::Button[NUM_BUTTONS];
extern void openUrl(String url);
// array of function pointers
void (*keyActions []) () = {
@matt-
matt- / index.html
Last active May 10, 2021
Electron contextIsolation POC
View index.html
<!DOCTYPE html>
<html>
<head>
<script>
var proc = false;
Function.prototype.call= new Proxy(Function.prototype.call, {
apply: function(target, thisArg, argumentsList) {
console.log(thisArg)
if(!proc){
@matt-
matt- / index.html
Created Sep 4, 2018
Electron Fiddle Gist
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello ASD!</h1>
<p>This window does not have access to node bindings.</p>
<pre>process: <script>//document.write(process)</script></pre>
@matt-
matt- / unb.js
Created Dec 18, 2017
Embedded Javascript from Southwest Flight
View unb.js
var r44_btime = r44_btime || new Date();
var r44_btimems = r44_btime.getTime()/1000;
var r44_smu_time = r44_smu_time || new Date().getTime();
var r44_is_cached = r44_is_cached || false;
var r44_retime, r44_retimems, r44_letime;
var r44_enable = (window.location != window.parent.location) ? false : true;
var R44 = R44 || {};
R44.domain = R44.domain || '';
@matt-
matt- / md5quine.js
Last active Oct 5, 2017
Node MD5Quine
View md5quine.js
x="q=String.fromCharCode(34);console.log(require('crypto').createHash('md5').update(`x=${q+x+q};${x}`).digest('hex'))";q=String.fromCharCode(34);console.log(require('crypto').createHash('md5').update(`x=${q+x+q};${x}`).digest('hex'))
View native_module.js
var Module = require('module');
var old_wrap_zero = Module.wrapper[0];
// some code to inject into a module load.
var code = '\n(' + (function (){
process.NativeModule = require('native_module');
}) + ')();\n';
Module.wrapper[0] += code;
@matt-
matt- / main-r.min.js
Last active Nov 3, 2016
Wix XSS Update
View main-r.min.js
var startRender = function() {
"use strict";
startRender = function () {};
/*eslint strict:0*/
var isSuspectedBot = false;
if (!Function.prototype.bind) {
isSuspectedBot = true;
Function.prototype.bind = function (object) { //eslint-disable-line no-extend-native
var self = this,
slice = Array.prototype.slice,
View keybase.md

Keybase proof

I hereby claim:

  • I am matt- on github.
  • I am mattaustin (https://keybase.io/mattaustin) on keybase.
  • I have a public key whose fingerprint is 786C 4715 840B FD51 B2F4 F1A3 5E96 6468 3EB5 F20B

To claim this, I am signing this object:

@matt-
matt- / info.json
Last active Aug 29, 2015
Test Plugin
View info.json
{
name: 'test plugin',
description: 'This is a test plugin'
}
@matt-
matt- / 0_reuse_code.js
Created Mar 4, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console