Skip to content

Instantly share code, notes, and snippets.

@andyboeh
andyboeh / __init__.py
Created April 4, 2025 22:22
Sigrok protocol decoder for elero unidirectional protocol
##
## This file is part of the libsigrokdecode project.
##
## Copyright (C) 2013 Uwe Hermann <[email protected]>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
@andyboeh
andyboeh / enable_sshd.py
Created April 8, 2023 11:01
Enable SSHD on the Aclatel HH40V (modify backup file)
#!/usr/bin/env python
import os
import sys
import subprocess
import tempfile
import struct
import shutil
import hashlib
@andyboeh
andyboeh / switchfw2sysupgrade.py
Created August 28, 2022 16:41
Convert TP-Link Switch Firwmare Upgrade to sysupgrade file
#!/usr/bin/env python
from optparse import OptionParser
import tempfile
import subprocess
import os
import shutil
import sys
import binascii
import struct