Skip to content

Instantly share code, notes, and snippets.

View chickendrop89's full-sized avatar
🎯
There's always a room for improvement!

chickendrop89

🎯
There's always a room for improvement!
View GitHub Profile
@chickendrop89
chickendrop89 / do_sigver_init:invalid digest.md
Last active May 6, 2025 18:07
error:03000098:digital envelope routines:do_sigver_init:invalid digest
error:03000098:digital envelope routines:do_sigver_init:invalid digest:crypto/evp/m_sigver.c:342:
make[1]: *** [/home/xxx/kernel/common/certs/Makefile:94: certs/signing_key.pem] Error 1
make[1]: *** Deleting file 'certs/signing_key.pem'
make: *** [/home/xxx/kernel/common/Makefile:1998: certs] Error 2
make: *** Waiting for unfinished jobs....

This error might occur durring kernel build. It is happening because newer versions of OpenSSL disallow using SHA-1.

@chickendrop89
chickendrop89 / extracting-fastboot-oem.md
Created March 20, 2025 22:31
Extracting hidden fastboot oem commands

This is my way of extracting hidden fastboot oem commands using ghidra

  • May or may not work for various SoCs, i have tested this on Xiaomi Redmi Note 12 4G (Qualcomm sdm685)

  1. Download a firmware archive containing a ABL image.
  2. Extract the archive, change directory to where the image is located, and run:
# If not installed already
pip install uefi_firmware
@chickendrop89
chickendrop89 / magisk-volume-key-selection.sh
Created November 1, 2024 15:20
Magisk volume key selection function
volumeselect() {
while true;
do
getevent -lc 1 2>&1 | grep VOLUME | grep DOWN > "$TMPDIR"/events
if grep VOLUME "$TMPDIR"/events >/dev/null;
then break
fi
done
if grep VOLUMEUP "$TMPDIR"/events >/dev/null;
@chickendrop89
chickendrop89 / 99-pihole-avoid-roundrobin.conf
Last active December 26, 2024 03:57
Makes Pi-Hole use second upstream DNS server when the first server fails to complete the request, instead of the default round-robin technique that cycles through the upstream servers to distribute the load. This is a dnsmasq configuration file
strict-order
@chickendrop89
chickendrop89 / 99-pihole-admin-redirect.conf
Last active December 26, 2024 03:56
Pi-Hole redirect blank lighttpd page to pihole admin dashboard. This is a lighttpd configuration file
$HTTP["url"] !~ "^/admin" {
url.redirect = (".*" => "/admin")
}
@chickendrop89
chickendrop89 / amlogic-9xxx-useful-links.md
Last active April 15, 2025 11:08
Amlogic S9xxx (set top box) useful links