Skip to content

Instantly share code, notes, and snippets.

ox1111 / automatically_redirect.js
Created May 15, 2020 01:37
Frida Script to automatically redirect all through a proxy of your choosing
View automatically_redirect.js
// Frida Script to automatically redirect all through a proxy of your choosing
setImmediate(function() {
Java.perform(function() {
var url = Java.use("");
var proxyTypeI = Java.use('$Type');
var inetSockAddrWrap = Java.use("");
var proxy = Java.use('');
darconeous /
Last active June 16, 2023 06:22
Using OS X as a Syslog Server

Using OS X as a Syslog Server

This document describes how to set up an OS X to be a syslog server that logs messages from the local network. It was largely meant for my own purposes so that I don't forget what I did, but feel free to use it for your own purposes.

A problem with just "turning this on" is that you will not see the correct hostname in the syslog entries. What we will do is use

kylemclaren / findLongRunningOp.js
Last active June 18, 2023 12:23 — forked from comerford/killLongRunningOps.js
Find and (safely) kill long running MongoDB ops
View findLongRunningOp.js
function(op) {
if(op.secs_running > 5) printjson(op);
raven / Breakpoints_v2.xcbkptlist
Last active August 30, 2019 00:53
Symbolic breakpoint for dynamically linking libReveal against UIApplicationMain
View Breakpoints_v2.xcbkptlist
<?xml version="1.0" encoding="UTF-8"?>
type = "2"
version = "2.0">
BreakpointExtensionID = "Xcode.Breakpoint.SymbolicBreakpoint">
shouldBeEnabled = "Yes"
ignoreCount = "0"
rsobik /
Created November 17, 2013 13:20
Build Boost 1.55.0 for iOS 7 and OS X including 64 Bit
# Filename:
# Author: Pete Goodliffe
# Copyright: (c) Copyright 2009 Pete Goodliffe
# Licence: Please feel free to use this, with attribution
# Modified version
# Builds a Boost framework for the iPhone.
# Creates a set of universal libraries that can be used on an iPhone and in the
steipete / PSPDFThreadSafeMutableDictionary.m
Last active December 10, 2022 09:37
Simple implementation of a thread safe mutable dictionary. In most cases, you want NSCache instead, but it can be useful in situations where you want to manually control what is evicted from the cache in low memory situations.**Warning:** I only use this for setting/getting keys. Enumeration is not thread safe here and will still throw exception…
View PSPDFThreadSafeMutableDictionary.m
// PSPDFThreadSafeMutableDictionary.m
// Copyright (c) 2013 Peter Steinberger, PSPDFKit GmbH. All rights reserved.
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
mayoff / .lldbinit
Created June 18, 2013 04:58
An lldb command that prints the description of the exception being raised, when run while the target is stopped at the first instruction of objc_exception_throw. Many thanks to Enrico Granata and Sean Callanan for basically writing this to my specifications at WWDC 2013.
View .lldbinit
command script import ~/Library/lldb/
polesen / Makefile
Created June 1, 2012 20:56
Takes a RSA public key modulus and exponent in base64 encoding and produces a public key file in PEM format
View Makefile
CC = clang
OBJ = modexp2pubkey.o
LIBS = -lssl -lcrypto
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
modexp2pubkey: $(OBJ)