Skip to content

Instantly share code, notes, and snippets.

@Nachtalb
Nachtalb / libwebp.csv
Last active October 2, 2023 05:59
Track CVE-2023-4863 affected libraries
View libwebp.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 9.
Name,Language,Uses libwebp,Affected Versions,Patched versions,Is Inline third-party,Is System dependency,Depends on,URLs,Comment
libwebp,C,,< 1.3.2,1.3.2,,,,,Problemmaker
TwelveMonkeys,Java,No,,,,,,https://github.com/haraldk/TwelveMonkeys/issues/822,Selfmade in pure Java
libvips,C,Yes,< 8.14.5,8.14.5,Yes,Yes,libwebp,https://github.com/libvips/libvips/discussions/3675#discussioncomment-7078199,Bundled in Windows prebuilt otherwhise system dependency
Sharp,JS,Yes,< 0.32.6,0.32.6,Yes,No,libvips,https://github.com/lovell/sharp/issues/3798,
libwebp-rs,Rust,Indirectly,*,,No,No,libwebp-sys2,https://github.com/qnighy/libwebp-rs,
webp,Rust,Indirectly,< 0.2.6,0.2.6,No,Yes,libwebp-sys,https://github.com/jaredforth/webp/pull/30,
libwebp-sys,Rust,Yes,< 0.9.3,0.9.3,Yes,No,,https://github.com/NoXF/libwebp-sys/pull/23,
libwebp-sys2,Rust,Yes,< 0.1.8,0.1.8,Yes,No,,https://github.com/qnighy/libwebp-sys2-rs/blob/572a436a7a1bf7234f5c92576fc40edba6c9ae7f/CHANGELOG.md,"Fixed in 0.1.8 by using unreleased libwebp master, fixed in 0.1
@Nachtalb
Nachtalb / init.vim
Created April 20, 2023 14:01
Minimal init.vim for testing
View init.vim
set nocompatible
set showmatch
set ignorecase
set mouse=v
set hlsearch
set incsearch
set tabstop=4
set softtabstop=4
set expandtab
set shiftwidth=4
View telegram-instance-x.desktop
[Desktop Entry]
Version=1.0
Name=Telegram Instance X
Comment=Official desktop version of Telegram messaging service
TryExec=/opt/Telegram/Telegram
Exec=/opt/Telegram/Telegram -workdir /home/kali/.local/share/TelegramDesktop/instance_X -- %u
Icon=telegram
Terminal=false
StartupWMClass=TelegramDesktop
Type=Application
@Nachtalb
Nachtalb / pihole_to_hosts.py
Last active January 24, 2022 21:48
Pihole addlists (and custom blacklist) to hosts file (also removes duplicates)
View pihole_to_hosts.py
#!/usr/bin/env python
#
# Convert pihole domain blacklists to hosts file format.
#
# Usage:
# Create folder ./export
# Create pihole export and extract it to ./export
# Backup can be created in "Settings" > "Teleporter" > "Backup"
# Install requirements with "pip install aiohttp[speedups] tqdm"
# Run script "python pihole_to_hosts.py"
@Nachtalb
Nachtalb / channel_vids_to_csv.py
Last active November 1, 2021 19:51
Get all videos of a youtube channel and print url, title and publish date as CSV
View channel_vids_to_csv.py
# Ya need to install "yarl" and "requests" cuz I was too lazy to use the standard libs
from yarl import URL
from requests import Session
key = "YOUTUBE_API_KEY"
channel_id = "CHANNEL_ID"
url = f"https://www.googleapis.com/youtube/v3/search"
query = {
@Nachtalb
Nachtalb / danbooru.py
Last active October 25, 2021 16:00
IRC ZNC module for posting danbooru pics on demand by any user with configurable commands for each IRC channel
View danbooru.py
from contextlib import contextmanager
from datetime import datetime
from random import choice
from requests import Session
from yarl import URL
import inspect
import json
import os
import pprint
import sys
@Nachtalb
Nachtalb / quick_ffmpeg_explorer.py
Last active November 1, 2021 20:10
Create windows explorer ffmpeg context menu entries
View quick_ffmpeg_explorer.py
# 1. Change paths in the "template" variable, be sure to have to correct number of backslashes
# 2. python quick_ffmpeg_explorer.py > quick_ffmpeg_explorer.reg
# 3. Double click the "quick_ffmpeg_explorer.reg" file
import re
structure = {
'00_FFMPEG': {
'keys': { 'SubCommands': '', 'MUIVerb': 'FFMPEG' },
'folders': {
@Nachtalb
Nachtalb / AB-one-million-count.js
Last active January 19, 2024 10:27
One Million Count thread Assistant script for AB. It auto adds correct number with meta, fixes wrong numbers when getting sniped, shows number context list with meta and more.
View AB-one-million-count.js
// ==UserScript==
// @name One Million Count - animebytes.tv
// @namespace Violentmonkey Scripts
// @include https://animebytes.tv/forums.php*threadid=556*
// @version 2.10.2
// @author Nachtalb
// @description One Million Count thread Assistant script for AB. It auto adds correct number with meta, fixes wrong numbers when getting sniped, shows number context list with meta and more.
// @updateURL https://gist.githubusercontent.com/Nachtalb/8ae5ff116bb294d018b5b1d28deae8fc/raw/AB-one-million-count.js
// @downloadURL https://gist.githubusercontent.com/Nachtalb/8ae5ff116bb294d018b5b1d28deae8fc/raw/AB-one-million-count.js
// @supportURL https://gist.github.com/Nachtalb/8ae5ff116bb294d018b5b1d28deae8fc
View setup_mosh_centos_6.sh
#!/bin/sh
# Update latest epel
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
# Install forenscis tools repository for protobuf-compiler and protobuf-devel
wget https://forensics.cert.org/cert-forensics-tools-release-el6.rpm
rpm -Uvh cert-forensics-tools-release-el6.rpm
# Install openfusion repository for perl-IO-Socket-IP
wget http://repo.openfusion.net/centos6-i386/openfusion-release-0.7-1.of.el6.noarch.rpm
@Nachtalb
Nachtalb / check_torrent_size.py
Created July 26, 2019 20:39
Check total size of all torrents recursively in a dir
View check_torrent_size.py
from pathlib import Path
# Install https://pypi.org/project/bencode.py/
# $ pip install bencode.py
import bencode
total_bytes = 0
files = list(Path().rglob('*.torrent'))
total_files = len(files)
print('Getting file sizes')