Skip to content

Instantly share code, notes, and snippets.

View sferrini's full-sized avatar
💥
0xfffffff041414141

Simone Ferrini sferrini

💥
0xfffffff041414141
View GitHub Profile
@sferrini
sferrini / SwiftyButtonViewController.swift
Created March 11, 2016 19:06
UIButton target/action function must not be private?
//
// SwiftyButtonViewController.swift
// SwiftyButton
//
// Created by Simone Ferrini on 11/03/16.
// Copyright © 2016 Simone Ferrini. All rights reserved.
//
import UIKit
//: Playground - noun: a place where people can play
typealias CompletionBlock = (Bool) -> ()
class BlockStorage {
var blocks = [CompletionBlock]()
func addBlock(block: CompletionBlock) {
blocks.append(block)
@sferrini
sferrini / reports.swift
Created April 23, 2016 12:59
reports func must be more Swifty.
//: Playground - noun: a place where people can play
enum State {
case Happy
case Sad
}
struct Day {
var name: String
var state: State
@sferrini
sferrini / Makefile
Last active July 5, 2016 17:11 — forked from jndok/Makefile
MachOMan - a basic Mach-O parsing library
all:
clang machoman.c -dynamiclib -o libmachoman.dylib
clean:
rm -rf libmachoman.dylib
@sferrini
sferrini / hackim2017-pwn200.py
Created February 14, 2017 11:52
HackimCTF 2017 - Exploitation Question 1
#!/usr/bin/env python
from pwn import *
import sys
# nullcon HackIM CTF - 2017
# Task: Exploitation Question 1 - 200 pts
# Author: Simone Ferrini
def choose(r, c):
@sferrini
sferrini / gynvaelen-hacking-livestream-mission-001.py
Created April 28, 2017 16:00
GynvaelEN - Hacking Livestream - Mission 001
#!/usr/bin/env python
# Simone Ferrini
import hashlib
import sys
word_list = [
# ...
"ambrosia",
# ...

Keybase proof

I hereby claim:

  • I am sferrini on github.
  • I am sferrini (https://keybase.io/sferrini) on keybase.
  • I have a public key ASCCwtBfHQ7u5z-5o7jLVyVNQd5_nbLjMNe82QnZ9pCrBQo

To claim this, I am signing this object:

//: Playground - noun: a place where people can play
struct User {
var name: String
init() {
name = ""
}
}
@sferrini
sferrini / 0ctf-babyheap-250.py
Created August 13, 2017 22:03
0CTF 2017 Quals - BabyHeap2017
#!/usr/bin/env python
from pwn import *
import sys
# 0CTF Quals - 2017
# Task: BabyHeap2017 - 250 pts
# Author: Simone Ferrini
def choose(c):
@sferrini
sferrini / build-xnu-4570.1.46.sh
Created October 9, 2017 09:48 — forked from bazad/build-xnu-4570.1.46.sh
A script to build XNU version 4570.1.46 (macOS High Sierra 10.13).
#! /bin/bash
#
# build-xnu-4570.1.46.sh
# Brandon Azad
#
# A script showing how to build XNU version 4570.1.46 on MacOS High Sierra
# 10.13 with Xcode 9.
#
# Note: This process will OVERWRITE files in Xcode's MacOSX10.13.sdk. Make a
# backup of this directory first!