Skip to content

Instantly share code, notes, and snippets.

@gangefors
gangefors / Install FreeNAS SCALE on a partition and create a mirror.md
Last active November 12, 2024 16:15
How to install TrueNAS SCALE on a partition instead of the full disk

Install TrueNAS SCALE on a partition instead of the full disk

The TrueNAS installer doesn't have a way to use anything less than the full device. This is usually a waste of resources when installing to a modern NVMe which is usually several hundred of GB. TrueNAS SCALE will use only a few GB for its system files so installing to a 16GB partition would be helpful.

The easiest way to solve this is to modify the installer script before starting the installation process.

@byt3bl33d3r
byt3bl33d3r / ws.ps1
Last active September 19, 2024 20:25
Async Websocket PowerShell client (producer/consumer pattern)
<#
References:
- https://docs.microsoft.com/en-us/dotnet/api/system.net.websockets.clientwebsocket?view=netframework-4.5
- https://github.com/poshbotio/PoshBot/blob/master/PoshBot/Implementations/Slack/SlackConnection.ps1
- https://www.leeholmes.com/blog/2018/09/05/producer-consumer-parallelism-in-powershell/
#>
$client_id = [System.GUID]::NewGuid()
$recv_queue = New-Object 'System.Collections.Concurrent.ConcurrentQueue[String]'
# Make an admin portal config file for your network printers web interfaces!
# This script will take the supplied print servers, and get a list of all their pritners from wmi. It will
# then look to see which of these printers have TCP/IP printer ports. If they do, I try and grab the IP
# address from their hostaddress, then barring that, the port name, and the comments. Then, for each of
# those printers that have a matching IP address, I'll test port 80 and 443 connections to them. I choose
# HTTP first, simply because in my org the HTTPS are all self-signed certs (I know). I also try and use the
# driver name to guess at the manufacturer and assign a picture as well.
# Categories will be grouped by print server, duplicates can exist, and this is probably the wrong way to
@daddycocoaman
daddycocoaman / stickynoteparser.py
Created September 14, 2019 02:34
Parses sticky note files in .snt/.sqlite formats. Sqlite files may require the WAL and SHM files of the same name as well. Once run, WAL/SHM files will be merged into .sqlite file.
import json
import sqlite3
import olefile
import argparse
def parse_snt_file(file):
# https://www.tutorialspoint.com/python_digital_forensics/python_digital_forensics_important_artifacts_in_windows
if not olefile.isOleFile(file):
return "Invalid OLE file"

Hashcat Example hashes

Unless otherwise noted, the password for all example hashes is hashcat

Hash-Mode Hash-Name Example
0 MD5 8743b52063cd84097a65d1633f5c74f5
10 md5($pass.$salt) 01dfae6e5d4d90d9892622325959afbe:7050461