Skip to content

Instantly share code, notes, and snippets.

@fconcklin
fconcklin / gist:e8ef7d8b056105a04161
Created June 17, 2014 19:31
Default AppDelegate.swift
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool {
// Override point for customization after application launch.
# 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
fconcklin / empty-answers_feed
Created September 17, 2013 18:25
answers_feed.php bug - comes up empty
<?xml version="1.0" encoding="ISO-8859-1"?>
<Answers/>
@fconcklin
fconcklin / infected_bug
Created September 17, 2013 18:24
infected page request
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
fconcklin / gist:941481
Created April 25, 2011 23:30
marginalia macro break
(ns cljsh.core)
(def push-types '(:exec :integer :float :code :boolean :auxiliar :tag :zip))
(defmacro define-push-state-structure []
`(defstruct push-state ~@push-types))
(define-push-state-structure)
### output ###
@fconcklin
fconcklin / gist:941466
Created April 25, 2011 23:18
marginalia macro behavior
(ns cljsh.core)
(defmacro dbg [x] `(let [x# ~x] (println '~x "=" x#)
x#))
(defn pythag [ x y] (* (* x x)
(* y y)))
(defn pythag [ x y] (dbg (* (dbg (* x x))
(dbg (* y y)))))
@fconcklin
fconcklin / openiboot dmesg
Created November 25, 2010 16:26
dmesg log
[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
@fconcklin
fconcklin / ipadDroid2
Created November 25, 2010 16:22
openiBoot
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
fconcklin / ipadDroid1
Created November 25, 2010 14:17
cd utils/oibc && make all
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)