Skip to content

Instantly share code, notes, and snippets.

View L1fescape's full-sized avatar

Andrew Kennedy L1fescape

View GitHub Profile
@L1fescape
L1fescape / alert.js
Created May 29, 2014 20:00
Helper files for google's xss game https://xss-game.appspot.com/
alert(1);
@L1fescape
L1fescape / united_flighttime.bash
Last active August 29, 2015 14:01
Get the the status of the United Airlines flight you're currently on, provided your flight has wifi (just need to be connected, not paying for it). Implementations in node and curl.
curl 'https://www.unitedwifi.com/payment/ajax/notification.do' --data 'actionkey=FLIGHT_TIME_NOTIFICATIONS' --compressed
# [{
# "class":"com.bluebird.business.flightimebar.FlightimeBarResponse",
# "destinationIATA":"MCO",
# "eventType":"FLIGHTTIMEBAR",
# "flightETA":"8:58PM",
# "flightRunningStatus":89,
# "flightStatusText":"0h 33m with United Wi-Fi!",
# "flightTotalDuration":332,
# "markers":[{
@L1fescape
L1fescape / auto_hotkey
Created April 27, 2014 15:59
AutoHotkey Bindings
; Map ctrl-backspace to delete (similar to MacOS)
^BS::
Send {DEL}
return
; Map Caps lock to escape
Capslock::Esc
; Toggles default audio device in Control Panel (switches between headset and speakers).
!s::
#!/usr/bin/env python2
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected])
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
@L1fescape
L1fescape / evills
Created April 1, 2014 22:06 — forked from Eugeny/evills
#!/usr/bin/python
# -*- coding: utf-8 -*-
import subprocess
__all__ = ["transform"]
__version__ = '0.3'
__author__ = 'Christoph Burgmer <[email protected]>'
__url__ = 'http://github.com/cburgmer/upsidedown'
.popup {
position:fixed;
color: #4c3327;
font-family: Helvetica, Arial, sans-serif;
top:0;
left:0;
width:100%;
height:100%;
max-width:100%;
max-height:100%;
package main
import (
"net"
"strings"
"fmt"
)
func handleConnection(conn net.Conn) {
// try to read data from the connection
defaults write com.apple.dashboard mcx-disabled -boolean NO
killall Dock
defaults write com.apple.dashboard mcx-disabled -boolean YES
killall Dock
<a onclick="wp_showhide.main(this, 'spoiler1')" href="javascript:void(0)">
["Show Text", "Hide Text", "visible"]
</a>
<div id="spoiler1">
{Content goes here}
</div>