Skip to content

Instantly share code, notes, and snippets.

View hezygo's full-sized avatar
🤞
Seek job

HoLittlePig hezygo

🤞
Seek job
  • The Chirping Of Cicadas
  • GuangDong
View GitHub Profile
@hezygo
hezygo / hlkcrypt.c
Created January 16, 2024 03:23 — forked from jkent/hlkcrypt.c
This tool encrypts and decrypts uImage formatted firmware for Hilink HLK-RM04 wireless modules. It will also truncate a dump of mtd6 and make it an image suitable for flashing via the stock firmware upgrade page. Build instructions: gcc hlkcrypt.c -lcrypto -o hlkcrypt
/* vim: set ts=4
*
* Copyright (C) 2013 Jeff Kent <jeff@jkent.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@hezygo
hezygo / example_dgram.py
Created January 5, 2024 08:29 — forked from Phaiax/example_dgram.py
Python AF_UNIX socket / socketserver example (datagram and streaming mode)
"""
LICENSE: MIT
Example of using unix socket in SOCK_DGRAM mode.
"""
import socket
import socketserver
import time