Skip to content

Instantly share code, notes, and snippets.

View sei-dupdyke's full-sized avatar
🤔

Dustin Updyke sei-dupdyke

🤔
View GitHub Profile
@sei-dupdyke
sei-dupdyke / post_timeline_update_to_api.py
Created August 16, 2020 12:25
Simple python script to update every machine in an enclave with a new timeline
#!/usr/bin/env python3
import requests
import json
import os
host = "http://localhost:52388/"
# ---
@sei-dupdyke
sei-dupdyke / get_mattermost_emoji.py
Created May 20, 2021 20:54
Download MM custom emoji
import requests
import json
import os
import shutil
import time
my_mm_server = "some.machine.com"
url = "https://{}/api/v4/emoji".format(my_mm_server)
import pandas as pd
def determine_optimal_elbow(vals):
elbow_data = pd.DataFrame(columns=['index', 'k', 'delta'])
last = None
i = 0
for x in vals:
if (last is None):
last = x
@sei-dupdyke
sei-dupdyke / timeline.json
Created September 16, 2021 12:01
GHOSTS timeline to browse the default list of timeline sites in sequential order
{
"Status": "Run",
"TimeLineHandlers": [
{
"HandlerType": "BrowserFirefox",
"HandlerArgs": {
"isheadless": "false",
"blockimages": "true",
"blockstyles": "true",
"blockflash": "true",

Using ADS to hide information in a file

  1. Open the windows terminal and create a text file:
C:> echo The quick brown fox > fox.txt

This command saves the echoed string to a text file called fox.txt

$getPath = $args[0]
if($getpath -eq $null){ write-host "No path provided" exit(1) }
#recursively searches through a path and grabs the data streams
$streams = Get-ChildItem -Path $getPath -Recurse | Get-Item -Stream *
foreach($item in $streams) {
$s = $item.Stream.Trim()