View find_CFLStrings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import idaapi | |
import idc | |
#import idautils | |
import sys | |
#NOTE: may have to run this a few times to get to the end of the IDB, haven't bothered fixing this | |
def add_struct_to_idb(name): | |
idc.Til2Idb(-1, name) |
View grab_firmwares.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import errno | |
import os | |
import plistlib | |
import sys | |
import urllib | |
def makedirs_if_absent(path): | |
try: |
View env_test.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(int argc, char *argv[], char *envp[]) | |
{ | |
int i = 0; | |
char *env = NULL; | |
while ((env = envp[i++]) != NULL) { | |
printf("%s\n", env); | |
} |
View argparse_empty_mutually_exclusive_group_crash.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# usage: ./argparse_empty_mutually_exclusive_group_crash.py blah | |
import argparse | |
parser = argparse.ArgumentParser() | |
mut_ex_group = parser.add_mutually_exclusive_group() | |
parser.parse_args() |
View serial_keyboard_init.S
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* refer to osfmk/console/serial_general.c */ | |
.globl _cereal64 | |
_cereal64: | |
/* do the important parts of serial_keyboard_init() */ | |
stp x20, x19, [sp, #-0x20]! | |
stp x29, x30, [sp, #0x10] | |
add x29, sp, #0x20 | |
sub sp, sp, #0x10 | |
View gist:e1808df161a5b02af646
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"0": { | |
"comm": "\nSection .text\n\nRange 0x0 - 0x4000 (16384 bytes)\nFile offset 65536 (16384 bytes)\n", | |
"icom": null, | |
"name": "BOOTROM_BASE", | |
"seg": 0 | |
}, | |
"148": { | |
"comm": null, | |
"icom": null, |
View pp_res_deobfuscate.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# public domain | |
import sys | |
if len(sys.argv) != 3: | |
print "pp_res_deobfuscate.py [input file] [output file]" | |
sys.exit(1) |
View silly.grc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='ASCII'?> | |
<?grc format='1' created='3.7.6'?> | |
<flow_graph> | |
<timestamp>Sun Dec 7 22:19:00 2014</timestamp> | |
<block> | |
<key>options</key> | |
<param> | |
<key>id</key> | |
<value>top_block</value> | |
</param> |
View gist:6801541
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int incomingByte = 0; | |
void setup() { | |
pinMode(2, OUTPUT); | |
pinMode(13, OUTPUT); | |
Serial.begin(9600); | |
} | |
void loop() { | |
if (Serial.available() > 0) { |