Skip to content

Instantly share code, notes, and snippets.

@argp
argp / gdb-log
Created January 7, 2014 17:51
iOS 7.0.4 (iPhone 4) MobileSafari WebKit bug 121324
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xbbadbeef
[Switching to process 5043 thread 0x3a03]
0x303c6cce in WTFCrash ()
--------------------------------------------------------------------------[regs]
R0: 0xBBADBEEF R1: 0x00000000 R2: 0x00001900 R3: 0x00002060
R4: 0x02996BCC R5: 0x000000C0 R6: 0xCBCFA19E R7: 0x02996C54
R8: 0x39F73550 R9: 0x00000001 R10: 0x00000009 R11: 0x000000C0
R12: 0x39F5E8B0 SP: 0x02996BCC LR: 0x303C6C79 PC: 0x303C6CCE n Z C v q j e a i f T
--------------------------------------------------------------------------[code]
(*
* msfpayload windows/meterpreter/reverse_tcp LHOST=127.0.0.1 LPORT=6666 C \
* | ocaml format_payload.ml
*)
let out ch_1 ch_2 = Printf.printf "shellcode.writeByte(0x%c%c);\n" ch_1 ch_2
let main () =
let i = ref 0 in
@argp
argp / gist:3149763
Created July 20, 2012 09:10
Comparison table for trust frameworks
\begin{table*}
\centering
{\footnotesize
\caption{Evaluation of Trust Frameworks.}
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
\textbf{Proposals} & \textbf{Local trust} & \textbf{Trust} & \textbf{Depth limit} & \textbf{Trust} & \textbf{Trust} & \textbf{Multi-path}\\
& & \textbf{hierarchy} & & \textbf{asymmetry} & \textbf{differentiation} & \textbf{contribution}\\\hline
Marsh \cite{Mar94} & Yes & No & N/A & Yes & No & No \\\hline
eBay \cite{Eba06} & No & No & N/A & Yes & No & No \\\hline
@argp
argp / gdbwaitforproc.py
Created December 28, 2011 09:56
Python script to wait for a process to launch and attach gdb to it
#!/usr/bin/env python
import sys
import string
import commands
import subprocess
true = True
false = False