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
#!/bin/bash | |
# Matthew Wollenweber | |
# [email protected] | |
unalias rm | |
setopt rm_star_silent | |
qlmanage -r cache | |
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent' | |
defaults delete ~/Library/Preferences/com.apple.finder GoToField |
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
from flask import Flask, request, jsonify | |
from uuid import uuid4 | |
app = Flask(__name__) | |
app.secret_key = 'password42' # For session management | |
# requests come with these parameters from the frontend in `metadata`: | |
# 1. `user_agent`: the user agent of the client | |
# 2. `user_id`: a unique ID assigned to each user | |
# 3. `user_ip`: the user's ip address |
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* |
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
#!/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
''' | |
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
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
<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
#!/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
#!/usr/bin/python | |
#Matthew Wollenweber | |
#[email protected] | |
import os,sys, ConfigParser | |
import time | |
import sqlite3 | |
import urllib2 | |
import urlparse |
NewerOlder