Skip to content

Instantly share code, notes, and snippets.

View irctrakz's full-sized avatar

trakz irctrakz

View GitHub Profile
@irctrakz
irctrakz / index.html
Last active December 11, 2015 04:18
Splunk Index/Field explorer.
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://code.jquery.com/jquery-1.9.0.min.js"></script></script>
<style type='text/css'>
svg {font: 12px sans-serif;}
.IndexBox {fill: #DDDDDD;stroke: #FFFFFF;}
@irctrakz
irctrakz / IOC Splunker
Created February 8, 2013 23:18
Script to parse openIOC format files and search Splunk for extracted IP addresses.
#! /usr/bin/perl
#
# Script written to pull IP data from openIOC and search Splunk.
#
use strict;
use warnings;
$|=1;
@irctrakz
irctrakz / gist:4956305
Created February 14, 2013 20:53
Trac searchattachments
import codecs
import os
import commands
import re
import urllib
import dircache
import logging
import string, time
# import random, md5
@irctrakz
irctrakz / gist:4998764
Created February 20, 2013 19:50
box.com API dashboard XML for Splunk.
<?xml version='1.0' encoding='utf-8'?>
<dashboard>
<label>box.com : API Status.</label>
<row>
<chart>
<searchName>Box Event Count</searchName>
<title>Box: Event Count (7 Days)</title>
<option name="charting.axisTitleX.text">Time</option>
<option name="charting.chart">column</option>
<option name="charting.chart.nullValueMode">connect</option>
@irctrakz
irctrakz / box_oauth_v2.pl
Last active February 25, 2021 04:20
Perl script to programmatically pull oAuth v2.0 data via SSO provider (PingIdentity) for Box.com
#! /usr/bin/perl
# This prototype written to pull Box oAuth 2.0 authentication data via SSO Provider.
#
# If behind authenticating (NTLM) proxy there are dependencies:
# 1. Curl (/usr/bin/curl) to be available; NTLM to PingIdentity.
# 2. Transparent proxy available (cntlm/tsocks); NTLM via proxy (tested with TMG).
#
# There are some architectural assumptions:
# 1. Internet client -> Public forms based Auth -> PingIdentity -> Box
@irctrakz
irctrakz / index.html
Last active December 17, 2015 08:29
d3 Multi stream demo
<html><head><title>d3 world demo</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script type="text/javascript" src="./topojson.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
var data;