This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> "; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#base94 decode | |
tati_string = "replace me" | |
def decode(input): | |
output = 0 | |
base = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}' | |
power = 0 | |
for c in input: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#Matthew Wollenweber | |
#mjw@cyberwart.com | |
import os,sys, ConfigParser | |
import time | |
import sqlite3 | |
import urllib2 | |
import urlparse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import copy | |
import io | |
import json | |
import os | |
import pprint | |
import sys | |
import time | |
from collections import OrderedDict | |
from urllib.parse import urlencode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Query for Microsoft Defender Antivirus detections. | |
// Query #1: Query for Antivirus detection events | |
DeviceEvents | |
| where ActionType == "AntivirusDetection" | |
| extend ParsedFields=parse_json(AdditionalFields) | |
| project ThreatName=tostring(ParsedFields.ThreatName), | |
WasRemediated=tobool(ParsedFields.WasRemediated), | |
WasExecutingWhileDetected=tobool(ParsedFields.WasExecutingWhileDetected), | |
FileName, SHA1, InitiatingProcessFileName, InitiatingProcessCommandLine, | |
DeviceName, Timestamp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open /Applications/OneDrive.app/Contents/Resources/ResetOneDriveAppStandalone.command | |
open /Applications/OneDrive.app/Contents/Resources/RemoveOneDriveCreds.command | |
rm -rf ~/Library/Application\ Support/com.microsoft.OneDrive | |
rm -rf ~/Library/Application\ Support/OneDrive | |
rm -rf ~/Library/Caches/com.microsoft.OneDrive | |
rm -rf ~/Library/Caches/OneDrive | |
rm -rf ~/Library/Caches/com.microsoft.OneDrive | |
rm -rf ~/Library/CloudStorage/OneDrive* | |
rm -rf ~/Library/Containers/com.microsoft.com.OneDrive* | |
rm -rf ~/OneDrive* |