Skip to content

Instantly share code, notes, and snippets.

Matthew Wollenweber mwollenweber

Block or report user

Report or block mwollenweber

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mwollenweber
mwollenweber / models.py
Last active Feb 12, 2016
gAudit Module to resolve and store IP addresses from Alexa
View models.py
'''
services/alexa/models.py
Copyright Matthew Wollenweber 2014
mjw@insomniac.technology
1. Fetch the Alexa Top 1M list
2. Resolve the domain and www.domain to IP addresses
3. Insert those IPs into a database using SQLAlechemy
View gist:c9f6a65d0cc346a8ebc5
function addNetIDButtons(){
var rows = $('#emailRetentionTable').dataTable().fnGetNodes();
//var rows = oTable.fnGetNodes();
alert(rows.length);
for(var i=0; i<=rows.length; i++){
//get the cell contents of the email row
var data = rows[0].cells[0].innerHTML;
var pre = "<div class=\"btn-group\"><button type=\"button\" class=\"btn btn-default dropdown-toggle\" data-toggle=\"dropdown\"> ";
var post = " </button><ul class=\"dropdown-menu\" role=\"menu\"><li><a href=\"#\">Disable NetID</a></li><li><a href=\"#\">Enable NetID</a></li><li><a href=\"#\">View Audits</a></li><li><a href=\"#\">Queue Audit</a></li></ul></div></td> ";
View gist:01c026e302c33b9efc4b
<div class="container-fluid">
<div class="col-md-4">
<form role="form" class="retainSearch">
<div class="form-group">
<label for="searchField">Search By: </label>
<select class="form-control input-sm" name="searchField" id="searchField">
<option value="NetID">Netid</option>
<option value="lName">Family Name</option>
</select>
</div>
View gist:5687219
#!/usr/bin/python
#base94 decode
tati_string = "replace me"
def decode(input):
output = 0
base = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}'
power = 0
for c in input:
@mwollenweber
mwollenweber / dns_perf_test.py
Created Apr 7, 2011
Quick hack to compare performance of OpenDNS vs Google vs GW. Also checks blocking accuracy of dnsbh
View dns_perf_test.py
#!/usr/bin/python
#Matthew Wollenweber
#mjw@cyberwart.com
import os,sys, ConfigParser
import time
import sqlite3
import urllib2
import urlparse
@mwollenweber
mwollenweber / fast_h.py
Created Apr 7, 2011
a comparison of entropy as computed in online examples vs some fairly trivial optimization
View fast_h.py
#!/usr/bin/python
#Matthew Wollenweber
#mjw@cyberwart.com
import math
from numpy import zeros
from time import time
from random import randint
#from http://blog.dkbza.org/2007/05/scanning-data-for-entropy-anomalies.html
View scapy_stub.py
#!/usr/bin/python
#Matthew Wollenweber
#mjw@cyberwart.com
from scapy.all import *
import sys, os, socket, traceback, getopt
default_bpf = "tcp"
default_iface = "en0"
default_max = 10000
You can’t perform that action at this time.