Skip to content

Instantly share code, notes, and snippets.

View perfectra1n's full-sized avatar

perfectra1n perfectra1n

View GitHub Profile
@javipolo
javipolo / set-tmux-title
Last active November 29, 2023 09:31 — forked from florianbeer/set-tmux-title
Set tmux pane title to short hostname on ssh connections
# Make short hostname only if its not an IP address
__tm_get_hostname(){
local HOST="$(echo $* | rev | cut -d ' ' -f 1 | rev)"
if echo $HOST | grep -P "^([0-9]+\.){3}[0-9]+" -q; then
echo $HOST
else
echo $HOST| cut -d . -f 1
fi
}
@thesamesam
thesamesam / xz-backdoor.md
Last active April 27, 2024 17:35
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.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that