Category: Uncategorized

  • SHA1 is Dead: Linux updates are failing in February 2026, due to deprecated SHA1 hash values

    Due to SHA1 deprecation, apt updates may fail when SHA1 has values are present in the keyring. To fix Armbian instances running on single board computers, update the keyring, update apt and then install updates.

    wget -qO – https://apt.armbian.com/armbian.key | gpg –dearmor | sudo tee /usr/share/keyrings/armbian.gpg > /dev/null

    sudo apt update -y

    sudo apt upgrade -y

  • Convert UTF-8 to CP1252 in a Linux command line.

    When using shellcode in python 3, python prints strings as Unicode. This causes problems when using codes beyond 7f (127 in decimal) and when redirecting output to commands. To convert a string from utf-8 to cp1252, use iconv, such as this example:

    python3 -c ‘print(“A”*20 + “\xef\xbe\xad\xde”)’ | iconv -f UTF-8 -t CP1252 | command_receiving_input