Skip to content

Instantly share code, notes, and snippets.

View scudette's full-sized avatar
🦕
Digital Paleontologist

Mike Cohen scudette

🦕
Digital Paleontologist
View GitHub Profile
@scudette
scudette / individual cla.html
Last active January 24, 2019 13:38
Velocidex CLAs
<section class="text-center">
<h2 id="tmp-title">Contributor Agreement</h2>
<h2 id="tmp-subtitle"><span id="tmp-contributor-type">Individual</span> Contributor <span id="tmp-contributor-exclusivity-1">Non-Exclusive</span> License Agreement</h2>
<h2 id="tmp-subtitle-patent">(including the <span id="tmp-patent-option">Traditional Patent License</span> OPTION)</h2>
</section>
<p>Thank you for your interest in contributing to <span id="tmp-beneficiary-name">Velocidex Innovations</span>'s <span id="tmp-project-name">open source projects</span> ("We" or "Us").</p>
<p>The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to Us. To make this document effective, please follow the instructions at <span id="tmp-submission-instructions">https://cla-assistant.io/Velocidex/</span>.</p>
@scudette
scudette / CLA.md
Created January 26, 2019 04:31
Velociraptor CLA

Contributor License Agreement

We are incredibly thankful for contributions we receive from the community. We require our external contributors to sign a Contributor License Agreement ("CLA") in order to ensure that our projects remain licensed under Free and Open Source licenses such as AGPLv3 or Apache 2 allowing Velocidex Innovations to build a sustainable business.

Velocidex Innovations is committed to having a true Free and Open Source Software ("FOSS") license for our non-commercial software. A

@scudette
scudette / slicemap_test.go
Created March 17, 2019 02:42 — forked from grahamking/slicemap_test.go
Benchmark comparing map access vs slice search
package main
import (
"math/rand"
"testing"
"time"
)
const (
numItems = 100 // change this to see how number of items affects speed
@scudette
scudette / config.yaml
Last active October 7, 2019 09:56
Collect artifact into a local zip file and then upload it to a GCS bucket
autoexec:
# These parameters are run when the binary is started without args.
# It will just collect our custom artifact and quit.
argv: ["artifacts", "collect", "-v", "AcquireAndUploadToGCS"]
artifact_definitions:
- name: AcquireAndUploadToGCS
parameters:
- name: GCSKey
description: JSON Blob you get from GCS when you create a service account.
default: |
@scudette
scudette / eventlog.json
Last active November 12, 2019 06:01
Sample Event Log
C:> dumpevtx.exe parse c:\Windows\System32\winevt\Logs\Security.evtx
{
"System": {
"Provider": {
"Name": "Microsoft-Windows-Security-Auditing",
"Guid": "54849625-5478-4994-A5BA-3E3B0328C30D"
},
"EventID": {
"Value": 4672
},
@scudette
scudette / mutant.ps1
Last active January 12, 2020 10:43
Tests creating a mutant of a specific name
$createdNew = $False
$mutex = New-Object -TypeName System.Threading.Mutex(
$true, "Global\MyBadMutex", [ref]$createdNew)
if ($createdNew) {
echo "Acquired Mutex"
sleep(100)
} else {
echo "Someone else has the mutex"
}
@scudette
scudette / hash_run_keys.yaml
Created February 20, 2020 12:08
Hash Run Key Binaries
name: HashRunKeys
description: |
Iterate over all the run keys and locate their binary then hash it.
parameters:
- name: runKeys
default: |
HKEY_USERS\*\Software\Microsoft\Windows\CurrentVersion\Run\*
- name: pathRegex
type: hidden
@scudette
scudette / Windows.Applications.EdgeUrls.yaml
Created February 21, 2020 01:18
Bruteforce scan for URLs in Edge folders
name: Windows.Applications.EdgeUrls
description: |
Scan anything that looks like a URL in Edge folders.
parameters:
- name: EdgeGlob
default: C:/Users/*/AppData/Local/Packages/Microsoft.MicrosoftEdge_*/**
- name: URLYaraRule
default: |
rule URL {
@scudette
scudette / pyvelociraptor.py
Created March 5, 2020 08:47
Pandas PyVelociraptor interface
import pandas
from pyvelociraptor import velo_pandas
pandas.set_option('display.max_colwidth', None)
pandas.set_option('display.max_columns', None)
pandas.set_option('display.max_rows', None)
pandas.DataFrame(velo_pandas.DataFrameQuery("""
SELECT * FROM info()
"""))
@scudette
scudette / Jupyter_cell1.py
Created March 5, 2020 13:32
Jupyter and Velociraptor
pandas.DataFrame(velo_pandas.DataFrameQuery("""
SELECT *
FROM hunt_results(hunt_id='H.a127011b',
artifact='Windows.System.TaskScheduler',
source='Analysis')
LIMIT 50
"""))