Skip to content

Instantly share code, notes, and snippets.

View bones-codes's full-sized avatar

cara marie bones-codes

  • iSEC Partners
  • north carolina
View GitHub Profile
#!/bin/bash
# This script should be run prior to connecting to a network.
# https://github.com/drduh/OS-X-Security-and-Privacy-Guide
# For El Capitan, you'll need to disable SIP for a few settings
# To disable SIP, do the following:
# 1. Startup while pressing Cmd+R to enter Recovery mode
# 2. Open Utilities->Terminal
# 3. Run the command "csrutil disable"
# 4. Reboot, you'll land in the normal OS with SIP disabled
# 5. Run this script
@bones-codes
bones-codes / keybase.md
Last active February 12, 2016 01:15
keybase.md

Keybase proof

I hereby claim:

  • I am bones-codes on github.
  • I am bones (https://keybase.io/bones) on keybase.
  • I have a public key ASB3_ImNYKmqC-rsBEYDGsXedZ1MJReJ62InSr-lSEnzUwo

To claim this, I am signing this object:

@bones-codes
bones-codes / checksum
Last active August 29, 2015 13:56
Command line program to compare checksums.
#!/usr/bin/python
from argparse import ArgumentParser, RawDescriptionHelpFormatter
import subprocess
OKGREEN = '\033[36m'
FAIL = '\033[91m'
ENDC = '\033[0m'
def compare(dfile, csm, check):
@bones-codes
bones-codes / gencc
Created February 17, 2014 01:39
A slight modification of Graham King's darkcoding credit card generator.
#!/usr/bin/env python
"""
gencc: A simple program to generate credit card numbers that pass the MOD 10 check
(Luhn formula).
Useful for testing e-commerce sites during development.
Copyright 2003 Graham King
This program is free software; you can redistribute it and/or modify
@bones-codes
bones-codes / findEventNo.
Last active December 22, 2015 04:49
locate /dev/input/event no. with popen()
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
char event_path[30];
char *get_event_path(void){
FILE *event_num;
char data[10];