Skip to content

Instantly share code, notes, and snippets.

@JC-SoCal
JC-SoCal / GSG case
Created June 12, 2016 01:25 — forked from miek/ GSG case
Unofficial case for YARD Stick One and Ubertooth One from Great Scott Gadgets - http://greatscottgadgets.com/
if not GPIO.input(LCD_button):
while not GPIO.input(LCD_button):
pass
print "LCD Button Activated"
import RPi.GPIO as GPIO
import time
import sys
on = GPIO.LOW
off = GPIO.HIGH
Sensor_bucketFull = 23
Sensor_bucketEmpty = 24
import distutils.core, os, codecs,time,sys
pathlist = raw_input("Please enter the path to the list: ")
rootpath = raw_input("Please enter the root prefix for all files: ")
destpath = raw_input("Please enter the destination path: ")
failed = []
count =1
with codecs.open(pathlist,"r", encoding='cp1252') as txt:
for f in txt:
[Settings]
Check DLL versions=0
Show toolbar=1
Status in toolbar=0
Use hardware breakpoints to step=0
Restore windows=1
Scroll MDI=0
Horizontal scroll=0
Topmost window=0
Index of default font=1
#!/usr/bin/env python
# -*- coding: CP1252 -*-
#
# generated by wxGlade 0.6.8 (standalone edition) on Fri Feb 28 16:55:15 2014
#
import wx
# begin wxGlade: dependencies
import gettext
@JC-SoCal
JC-SoCal / rfc1918
Last active December 21, 2015 09:08
import dpkt
import socket
import binascii
def rfc1918(ip):
try:
octets = map(int, ip.split('.'))
except:
return False
++Ccounter <= 4 {print;next}
++Bcounter <= 4 {next}
1 {print; Ccounter=1; Bcounter=0}
@JC-SoCal
JC-SoCal / run_moloch.sh
Last active March 28, 2016 17:21
A startup script for Moloch
#!/bin/sh
# Start elasticsearch
# NOTE: Make sure to change the version for elasticsearch to whatever your current version is!
cd /data/moloch/elasticsearch-0.90.2
ulimit -a
# Uncomment if using Sun Java for better memory utilization
# export JAVA_OPTS="-XX:+UseCompressedOops"
export ES_HOSTNAME=`hostname -s`a
import idc,idaapi
#bind myNopPatch to alt n-key in IDA
idaapi.CompileLine('static n_key() { RunPythonStatement("myNopPatch()"); }')
#delcare hotkey
idc.AddHotkey("Alt-N", "n_key")
#declare myNopPatch
def myNopPatch():