Skip to content

Instantly share code, notes, and snippets.

@grahamperrin
grahamperrin / freebsd-installer-pkgbasify.md
Last active October 5, 2025 10:55
Using pkgbasify to repair a broken installation of FreeBSD 14.3-RELEASE

Using pkgbasify to repair a broken installation of FreeBSD 14.3-RELEASE

Condensed steps

  1. Use a memstick.img file to write a FreeBSD installer to a memory stick
  2. boot from the stick in single user mode
  3. /bin/csh
  4. use gpart(8) to resize things
  5. growfs /
  6. mount -uw /
import logging
import os
import time
import traceback
import requests
from dateutil.parser import parse as dt_parse
WEBHOOK_URL = "https://discord.com/api/webhooks/xxxxxx"
CTFD_URL = "https://xxxxxxxxxxx"
# Thomas Roccia - Docling demo
import json
from pathlib import Path
from docling.document_converter import DocumentConverter, PdfFormatOption
from docling.datamodel.pipeline_options import PdfPipelineOptions, TesseractOcrOptions
from docling.datamodel.base_models import InputFormat
from docling.document_converter import DocumentConverter, PdfFormatOption, WordFormatOption, SimplePipeline
pipeline_options = PdfPipelineOptions()
pipeline_options.do_ocr = True # Enable OCR
Draziw.Button.Mines
ag.video_solutions.wedotv
ahf.dummynation
ai.socialapps.speakmaster
air.com.beachbumgammon
air.com.freshplanet.games.SongPop2
air.com.gamesys.mobile.slots.jpj
air.com.goodgamestudios.empirefourkingdoms
air.com.kitchenscramble.goo
air.com.lalaplay.rummy45
@jurajlutter
jurajlutter / z2m
Last active November 15, 2024 12:02
FreeBSD rc.d script for zigbee2mqtt
#!/bin/sh
#
# PROVIDE: z2m
# REQUIRE: NETWORKING
# KEYWORD: shutdown
#
# FreeBSD rc.d script for zigbee2mqtt
#
# (c) 2024 Juraj Lutter <[email protected]>
#
items = {}
def constructs(i):
match i:
case Comparison():
return "comparisons"
case HighLevelILFor():
return "for"
case HighLevelILWhile():
return "while"
case HighLevelILDoWhile():
@smx-smx
smx-smx / XZ Backdoor Analysis
Last active June 2, 2025 22:53
[WIP] XZ Backdoor Analysis and symbol mapping
XZ Backdoor symbol deobfuscation. Updated as i make progress
@q3k
q3k / hashes.txt
Last active October 21, 2025 14:24
liblzma backdoor strings extracted from 5.6.1 (from a built-in trie)
0810 b' from '
0678 b' ssh2'
00d8 b'%.48s:%.48s():%d (pid=%ld)\x00'
0708 b'%s'
0108 b'/usr/sbin/sshd\x00'
0870 b'Accepted password for '
01a0 b'Accepted publickey for '
0c40 b'BN_bin2bn\x00'
06d0 b'BN_bn2bin\x00'
0958 b'BN_dup\x00'
@thesamesam
thesamesam / xz-backdoor.md
Last active December 9, 2025 03:22
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@Dump-GUY
Dump-GUY / hint_calls.py
Created March 18, 2024 07:30
Modified version of Willi Ballenthin IDA Plugin hint_calls.py ported to support Python2/3 and IDA>=7.4 (tested IDA 7.7, 8.4)
'''
IDA plugin to display the calls and strings referenced by a function as hints.
Installation: put this file in your %IDADIR%/plugins/ directory.
Author: Willi Ballenthin <[email protected]>
Licence: Apache 2.0
'''
import idc
import idaapi
import idautils