Skip to content

Instantly share code, notes, and snippets.

@IBAction func helloWorld(sender : AnyObject) {
var a = UIAlertView()
a.title = "hi"
a.message = "why does this work?"
a.addButtonWithTitle("no idea")
a.show()
}
//
// ViewController.swift
// TestingSwift
//
// Created by Eric Castro on 03/06/14.
// Copyright (c) 2014 cast.ro. All rights reserved.
//
import UIKit
@ericcastro
ericcastro / cyexec
Last active January 22, 2019 15:41
handy script for injecting one-line cycript code in a process on your target device and exiting after execution.
#!/bin/sh
# Usage: ./cyexec <process> <code>
#
# Example #1 (Locks device):
#
# ./cyexec SpringBoard '[[SBUserAgent sharedUserAgent] lockAndDimDevice]'
#
# Example #2 (Shows an alert message):
#