Skip to content

Instantly share code, notes, and snippets.

fconcklin / gist:e8ef7d8b056105a04161
Created Jun 17, 2014
Default AppDelegate.swift
View gist:e8ef7d8b056105a04161
import UIKit
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool {
// Override point for customization after application launch.
View Bootstrap-EC2-Windows-CloudInit.ps1
# Windows AMIs don't have WinRM enabled by default -- this script will enable WinRM
# AND install 7-zip, curl and .NET 4 if its missing.
# Then use the EC2 tools to create a new AMI from the result, and you have a system
# that will execute user-data as a PowerShell script after the instance fires up!
# This has been tested on Windows 2008 SP2 64bits AMIs provided by Amazon
# Inject this as user-data of a Windows 2008 AMI, like this (edit the adminPassword to your needs):
# <powershell>
# Set-ExecutionPolicy Unrestricted
fconcklin / empty-answers_feed
Created Sep 17, 2013
answers_feed.php bug - comes up empty
View empty-answers_feed
<?xml version="1.0" encoding="ISO-8859-1"?>
fconcklin / infected_bug
Created Sep 17, 2013
infected page request
View infected_bug
var json = // Hello victim. These are your orders. Resistance is futile.
'code': '(window.mpc)? window.mpc++ : window.mpc = 1;'
, 'parameters': { }
var cl = window.client;
var modulo = cl.receive (json);
fconcklin / gist:941481
Created Apr 25, 2011
marginalia macro break
View gist:941481
(ns cljsh.core)
(def push-types '(:exec :integer :float :code :boolean :auxiliar :tag :zip))
(defmacro define-push-state-structure []
`(defstruct push-state ~@push-types))
### output ###
fconcklin / gist:941466
Created Apr 25, 2011
marginalia macro behavior
View gist:941466
(ns cljsh.core)
(defmacro dbg [x] `(let [x# ~x] (println '~x "=" x#)
(defn pythag [ x y] (* (* x x)
(* y y)))
(defn pythag [ x y] (dbg (* (dbg (* x x))
(dbg (* y y)))))
View openiboot dmesg
[11469.996229] usb 1-1: new high speed USB device using ehci_hcd and address 26
[11470.130230] usb 1-1: New USB device found, idVendor=05ac, idProduct=1281
[11470.130241] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[11470.130247] usb 1-1: Product: Apple Mobile Device (Recovery Mode)
[11470.130253] usb 1-1: Manufacturer: Apple Inc.
[11470.130258] usb 1-1: SerialNumber: CPID:[removed] CPRV:[rm] CPFM:[rm] SCEP:[rm] BDID:[rm] ECID:[rm] IBFL:01 SRNM:[rm] IMEI:[rm]
[11470.130476] usb 1-1: configuration #1 chosen from 1 choice
[11471.369132] loadibec[15657]: segfault at 0 ip (null) sp bfa4870c error 4 in loadibec[8048000+270000]
[11496.636390] usb 1-1: USB disconnect, address 26
[11509.176577] usb 1-1: new high speed USB device using ehci_hcd and address 27
View ipadDroid2
fred@daffy [11:25:30] ~/src/ipad/openiBoot/utils/syringe $ sudo ./loadibec ../../openiboot.img3
Loadibec 2.00 (d06c71d).
Connecting to iDevice...
linera1n compatible device detected, injecting limera1n.
Initializing libpois0n
opening device 05ac:1227...
Checking if device is compatible with this jailbreak
Checking the device type
Identified device as iPad1,1
Preparing to upload limera1n exploit
fconcklin / ipadDroid1
Created Nov 25, 2010
cd utils/oibc && make all
View ipadDroid1
fred@daffy [09:21:38] ~/src/ipad/openiBoot $ cd utils/oibc && make all
cc -DHAVE_GETEUID -I/opt/local/include -c oibc.c -o oibc.o
oibc.c:29:17: error: usb.h: No such file or directory
oibc.c:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
oibc.c: In function ‘doOutput’:
oibc.c:74: error: ‘device’ undeclared (first use in this function)
oibc.c:74: error: (Each undeclared identifier is reported only once
oibc.c:74: error: for each function it appears in.)
oibc.c: In function ‘sendBuffer’:
oibc.c:159: error: ‘device’ undeclared (first use in this function)