Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select

Creating the post-commit file

Note: If you want to use your personal Twitter account to post commits, go to Step 2

  1. Create a new Twitter account for your commit messages. Example
  2. Go to http://dev.twitter.com and Sign In with your Twitter account you are posting commit messages to.
  3. Hover over your username in the top-right corner after signing in and select "My Applications"
  4. Create a new application
  5. The name, description, and site can all be whatever you want, but leave Callback URL empty
  6. Under "Application Settings" click "modify app permissions" next to "Access level"

Accredited Universities

Full Online Courses

@cephurs
cephurs / idatfix.c
Last active August 29, 2015 14:19 — forked from thejh/idatfix.c
#define _GNU_SOURCE
#include <jh.h>
#include <string.h>
#include <arpa/inet.h>
#include <assert.h>
#include <fcntl.h>
/* Table of CRCs of all 8-bit messages. */
unsigned long crc_table[256];
@cephurs
cephurs / TitanX.md
Last active August 29, 2015 14:20 — forked from epixoip/TitanX.md

Nvidia GTX Titan X cudaHashcat Benchmarks

Product: Sagitta Inceptus (PN S1430X-GTX-TITANX) (my dev box)

Software: cudaHashcat 1.36b31, ForceWare 346.35

Accelerator: 1x Nvidia GTX Titan X reference design

Observations

{
{I have|I’ve} been {surfing|browsing} online more than {three|3|2|4} hours today, yet
I never found any interesting article like yours. {It’s|It is}
pretty worth enough for me. {In my opinion|Personally|In my view},
if all {webmasters|site owners|website owners|web owners} and bloggers made good content as you did, the {internet|net|web} will be {much more|a lot more} useful than ever before.|
I {couldn’t|could not} {resist|refrain from} commenting.
{Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I’ll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} your {rss|rss feed} as I {can not|can’t} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service.
Do {you have|you’ve} any? {Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may
just|may|could} subscribe. Thanks.|
""" USN file parse script for IceBuddha.com, based on http://shark5terforensics.blogspot.com/2015/03/manually-parsing-unallocated-usn.html
"""
import icebuddha
__author__ = "0xdabbad00"
__license__ = "Apache"
class Parse:
def run(self, data):
filedata = data
#!/usr/bin/env python
import socket
# b8 03 00 00 00 mov $0x3,%eax # syscall 3 (read)
# bb 03 00 00 00 mov $0x3,%ebx # from fd 3 (flag file)
# 89 e1 mov %esp,%ecx # to stack
# ba 30 00 00 00 mov $0x30,%edx # 0x30 bytes
# cd 80 int $0x80 # perform syscall
# b8 04 00 00 00 mov $0x4,%eax # syscall 4 (write)
# bb 01 00 00 00 mov $0x1,%ebx # to fd 1 (stdout)
@cephurs
cephurs / preprocessor_fun.h
Last active August 29, 2015 14:27 — forked from aras-p/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@cephurs
cephurs / JSRat.ps1
Created January 24, 2016 17:46
Fileless JavaScript Reverse HTTP Shell
<#
Author: Casey Smith @subTee
License: BSD3-Clause
.SYNOPSIS
Simple Reverse Shell over HTTP. Execute Commands on Client.