Skip to content

Instantly share code, notes, and snippets.

View killerbees19's full-sized avatar
🐢
I may be slow to respond.

Christian killerbees19

🐢
I may be slow to respond.
View GitHub Profile
@killerbees19
killerbees19 / xz-backdoor.md
Created March 30, 2024 05:08 — forked from thesamesam/xz-backdoor.md
xz-utils backdoor situation

FAQ on the xz-utils backdoor

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that gives developers lossless compression. This package is commonly used for compressing release tarballs, software packages, kernel images, and initramfs images. It is very widely distributed, statistically your average Linux or macOS system will have it installed for

From self[at]sungpae.com Mon Nov 8 16:59:48 2021
Date: Mon, 8 Nov 2021 16:59:48 -0600
From: Sung Pae <self[at]sungpae.com>
To: security@docker.com
Subject: Permissive forwarding rule leads to unintentional exposure of
containers to external hosts
Message-ID: <YYmr4l1isfH9VQCn@SHANGRILA>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
protocol="application/pgp-signature"; boundary="QR1yLfEBO/zgxYVA"
@killerbees19
killerbees19 / gist:bf3b35d4dfcacedb3a29c996e77e4b9d
Created August 22, 2023 20:11 — forked from chenshaoju/gist:ec18f2081cb12f85752f4c8259b54b9a
Force Enable VoLTE for LineageOS by build.prop
# It's may out of the day.
# Source: https://forum.xda-developers.com/showpost.php?p=73608658&postcount=28
# Debug Options
persist.dbg.ims_volte_enable=1
persist.dbg.volte_avail_ovr=1
persist.dbg.vt_avail_ovr=1
persist.dbg.wfc_avail_ovr=1
# Radio Options
@killerbees19
killerbees19 / enable_sshd.py
Created April 8, 2023 13:26 — forked from andyboeh/enable_sshd.py
Enable SSHD on the Aclatel HH40V (modify backup file)
#!/usr/bin/env python
import os
import sys
import subprocess
import tempfile
import struct
import shutil
import hashlib
@killerbees19
killerbees19 / iommu.sh
Created February 27, 2023 17:36 — forked from r15ch13/iommu.sh
List IOMMU Groups and the connected USB Devices
#!/usr/bin/env bash
shopt -s nullglob
lastgroup=""
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`; do
for d in $g/devices/*; do
if [ "${g##*/}" != "$lastgroup" ]; then
echo -en "Group ${g##*/}:\t"
else
echo -en "\t\t"
@killerbees19
killerbees19 / lsiommu
Created February 27, 2023 17:36 — forked from flungo/lsiommu
List the devices and their IOMMU groups.
#!/bin/bash
for d in $(find /sys/kernel/iommu_groups/ -type l | sort -n -k5 -t/); do
n=${d#*/iommu_groups/*}; n=${n%%/*}
printf 'IOMMU Group %s ' "$n"
lspci -nns "${d##*/}"
done;
@killerbees19
killerbees19 / ptr-check.sh
Created January 21, 2023 15:06
Reverse DNS record check
#!/bin/bash
# v1.0.0 (2023-01-21) cs@fnx.li
HOSTS=(foo.example.org bar.example.com)
SIMPLE=(host1 host2 host3)
SUFFIX=".example.net"
for simple in "${SIMPLE[@]}"
do
HOSTS+=("${simple}${SUFFIX}")
done
@killerbees19
killerbees19 / archive-synology-com.txt
Last active May 28, 2023 13:48
[2023-01-16] All download URLs from archive.synology.com and sourceforge.net/projects/dsgpl
This file has been truncated, but you can view the full file.
https://global.download.synology.com/download/Addons/NoteStationClipper/1.0-0025/NoteStationClipper-1.0-0025.crx
https://global.download.synology.com/download/Addons/NoteStationClipper/2.0-0046/NoteStationClipper-2.0-0046.crx
https://global.download.synology.com/download/Addons/NoteStationClipper/2.0-0049/NoteStationClipper-2.0-0049.crx
https://global.download.synology.com/download/Addons/NoteStationClipper/2.0-0064/NoteStationClipper-2.0-0064.crx
https://global.download.synology.com/download/Addons/NoteStationClipper/2.0-0066/NoteStationClipper-2.0-0066.crx
https://global.download.synology.com/download/Addons/NoteStationClipper/2.0-0091/NoteStationClipper-2.0-0091.crx
https://global.download.synology.com/download/Addons/NoteStationClipper/2.0-0092/NoteStationClipper-2.0-0092.crx
https://global.download.synology.com/download/Addons/NoteStationClipper/2.0-0093/NoteStationClipper-2.0-0093.crx
https://global.download.synology.com/download/Addons/NoteStationClipper/2.0-0094/NoteStationClipper-2.0-0094.crx
@killerbees19
killerbees19 / sum_filesize.sh
Created January 16, 2023 07:23 — forked from fsteffenhagen/sum_filesize.sh
sum human readable file sizes with numfmt and awk
# Input: list of rows with format: "<filesize> filename", e.g.
# filesizes.txt
#######################
# 1000K file1.txt
# 200M file2.txt
# 2G file3.txt
#
# Output:
cat filesizes.txt | numfmt --from=iec | awk 'BEGIN {sum=0} {sum=sum+$1} END {printf "%.0f\n", sum}'