Skip to content

Instantly share code, notes, and snippets.

View nicolas17's full-sized avatar

Nicolás Alvarez nicolas17

  • Buenos Aires, Argentina
View GitHub Profile
@nicolas17
nicolas17 / ipsw_keys.py
Last active August 17, 2023 03:02 — forked from MCJack123/ipsw_keys.py
Extract iOS firmware keys using on-device AES engine - MOVED TO https://github.com/nicolas17/ipsw_keys
#!/usr/bin/env python
from sys import argv, stdout
from os import system, remove, path
from urlparse import urlparse
import re
import dfu
import ssl
import math
import json
import getopt
@nicolas17
nicolas17 / CMakeLists.txt
Last active December 27, 2015 22:59 — forked from Madsy/gist:7384008
SET( ${PROJECT_NAME}_SOURCES
main.cpp
)
#main.x depends on main.cpp (is generated based on main.cpp)
#main.o depends on main.cpp and main.x (main.x is included in main.cpp)
#So if main.cpp changes, first run the tool to create main.x,
#then run cc to create main.o from main.cpp and main.x
ADD_CUSTOM_COMMAND(
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
create repository foundation-git
end repository
match /foundation/trunk/
repository foundation-git
branch master
end match
match /foundation/branches/([^/]+)/
repository foundation-git
@nicolas17
nicolas17 / gist:2663579
Created May 12, 2012 01:28 — forked from rubic/gist:1644599
setuid via subprocess.Popen
#!/usr/bin/env python
import os, subprocess
def change_identity(uid, gid):
def func():
os.setgid(uid)
os.setuid(gid)
return func
cmd = ['uname', '-a']