Skip to content

Instantly share code, notes, and snippets.

@Diniboy1123
Diniboy1123 / image_to_eink_fb.go
Last active March 10, 2025 20:13
Simple test code I came up based on https://github.com/NiLuJe/FBInk/pull/47/files to write to my PocketBook's framebuffer directly.
package main
import (
"fmt"
"image"
"image/color"
"image/png"
"log"
"os"
"syscall"
@Diniboy1123
Diniboy1123 / ddp_codeprivatedata_parser.go
Created February 15, 2025 02:02
Test script to demonstrate EC-3 box transformation from Microsoft Smooth Streaming CodecPrivateData
package main
import (
"bytes"
"encoding/hex"
"log"
"github.com/Eyevinn/mp4ff/mp4"
)
/*
Invoke
frida -U -p $(frida-ps -Uai | grep -i "1.1.1" | awk '{print $1}') -l warp_hook.js --debug
Based on https://github.com/monkeywave/frida-scripts-collection/blob/main/warp_hook.js
*/
function hookBoringSSLByPattern(module) {
@Diniboy1123
Diniboy1123 / plex_hash.py
Created February 12, 2025 16:21
Computes the file hash just how Plex would do it. All credits for the logic go to: https://forums.plex.tv/t/how-is-plex-hash-calculated/904178/5
import hashlib
import sys
import os
def compute_plex_hash(file_path):
file_size = os.path.getsize(file_path)
with open(file_path, "rb") as f:
first_chunk = f.read(65536)
@Diniboy1123
Diniboy1123 / gist:057369c0e202382b023262de74d6007b
Created December 8, 2024 22:27 — forked from D3vl0per/gist:982aaba2081a9c96c8ec370f2100ba86
Block lists | Cerebral cortex - Hippocampus
| Name | Source | License | Format | IOCs | Refresh interval | Components |
| :--- | :----: | :-----: | :----: | :--: | :--------------: | :- |
| Phishing-Filter | https://gitlab.com/malware-filter/phishing-filter | MIT | Raw List | Urls/Domains/IPs | 2/day | PhishTank, OpenPhish, phishunt.io |
| Botnet-Filter | https://gitlab.com/malware-filter/botnet-filter | MIT | Raw List | IP | 1/day | Abuse.ch Feodo Tracker |
| Domain blacklist | https://oisd.nl/
| Botvrij Domain Blacklist | https://botvrij.eu/data/ |
| Botvrij Domain Blacklist | https://botvrij.eu/data/ioclist.domain |
| Botvrij IP Blacklist | https://botvrij.eu/data/ioclist.ip-dst |
| Botvrij URL Blacklist | https://botvrij.eu/data/ioclist.url
| CINS Score IP Blacklist | http://cinsscore.com/list/ci-badguys.txt |
package main
import (
"bytes"
"encoding/base64"
"encoding/hex"
"log"
"os"
"regexp"
"unicode/utf16"