Skip to content

Instantly share code, notes, and snippets.

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$ProgressPreference = 'SilentlyContinue'
$EXEPath = "$Env:Temp\MSERT.exe"
function Get-MSERTExecutable {
if (Test-Path $EXEPath) {
# Delete the previous executable if it exists
try {
Write-Debug "Attempting to delete $EXEPath"
Import-Module C:\Resolve-ASN.psm1
Import-Module Duo
$yesterdayUnix = [int](Get-Date -date $(Get-Date).AddDays(-1) -UFormat %s -Millisecond 0)
$logs = (duoGetLog -mintime $yesterdayUnix -log authentication | Where-Object{
$_.result -eq "SUCCESS" -and
$_.integration -Match "Desktop"
})
<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by VMware ovftool 4.3.0 (build-7948156), UTC time: 2019-02-19T21:23:44.230642Z-->
<Envelope vmw:buildId="build-7948156" xmlns="http://schemas.dmtf.org/ovf/envelope/1" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<References>
<File ovf:href="hassio-disk1.vmdk" ovf:id="file1" ovf:size="176586240"/>
</References>
<DiskSection>
<Info>Virtual disk information</Info>
<Disk ovf:capacity="6" ovf:capacityAllocationUnits="byte * 2^30" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" ovf:populatedSize="365428736"/>
</DiskSecti
<?xml version="1.0" encoding="utf-8"?>
<LayoutModificationTemplate
xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"
xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
Version="1">
<LayoutOptions StartTileGroupCellWidth="6" />
<DefaultLayoutOverride>
<StartLayoutCollection>
@kjake
kjake / UmbrellaThreatResponse.js
Last active May 9, 2021 02:37
Tampermonkey Userscript to Translates domains/IPs in the Umbrella Dashboard from Umbrella's Investigate tool into a url for Cisco's Threat Response Platform
// ==UserScript==
// @name Umbrella to Cisco Threat Response
// @description Translates domains/IPs in the Umbrella Dashboard from Umbrella's Investigate tool into a url for Cisco's Threat Response Platform
// @version 1.0.7
// @author Kevin Jacobson (kevin@kjake.net)
// @homepage https://kjake.net
// @downloadURL https://gist.github.com/kjake/f3302cd1a70c3b27229b955213c2cbfe/raw/UmbrellaThreatResponse.js
// @match https://*.umbrella.com/*
// @match https://*.opendns.com/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
-- AppleScript to try and output the current playing media from various sources
-- Tested in Chrome and Safari: Spotify, Hype Machine, YouTube, Soundcloud
-- Firefox has a terrible AppleScript dictionary, best effort support only
-- Tested on Mojave Desktop Apps: iTunes, Spotify, Google Play Music Desktop Player
-- Tested Desktop apps without AppleScript support: Amazon Music, Plug, SomaFM, Sonos
set currentSong to "No Detectable Music Playing"
-- AppleScript for GPMDP doesn't exist, but
server:
include: /var/unbound/pfb_dnsbl.*conf
hide-identity: yes
hide-version: yes
minimal-responses: yes
qname-minimisation: yes
rrset-roundrobin: yes
prefetch: yes
do-tcp: yes
private-domain: "plex.direct"
#!/bin/bash
# Usage: status "Status Text"
function status() {
GREEN='\033[00;32m'
RESTORE='\033[0m'
echo -e "\n...${GREEN}$1${RESTORE}...\n"
}
export ESXiHost='esxi'

My RancherOS Notes

RancherOS Installation

https://rancher.com/docs/os/v1.x/en/installation/running-rancheros/server/install-to-disk/

cloud-config.yml highly recommended to configure the OS; I uploaded mine to /usr/local/www on my pfSense system and specified the url for the ros install to use.

As usual, eth0 is my physical interface, but there are other NICs in the system, so I set all interfaces to no dhcp, then specify a static IP for eth0. Finally, I put in an SSH key so that I can get into the system afterwards.

[global]
encrypt passwords = yes
dns proxy = no
strict locking = no
oplocks = yes
deadtime = 15
max log size = 51200
max open files = 467120
logging = file
load printers = no