start new:
tmux
start new with session name:
tmux new -s myname
import sys | |
import hashlib | |
# Usage: xiaomi-purifier-pwd.py 04A03CAA1E7080 | |
def getpwd(uid): | |
uid = bytearray.fromhex(uid) | |
h = bytearray.fromhex(hashlib.sha1(uid).hexdigest()) | |
pwd = "" | |
pwd += "%02X" % h[h[0] % 20] | |
pwd += "%02X" % h[(h[0]+5) % 20] |
# 文件路径和目标参数 | |
input_file = "recovery.bin" # 输入文件名 | |
output_file = "output.bin" # 输出文件名 | |
search_marker = b"UBI#" # 要查找的标记 | |
cut_size = 0x04000000 # 切割的大小 | |
try: | |
with open(input_file, "rb") as f: | |
data = f.read() # 读取整个文件内容 |
#!/bin/sh | |
# /etc/network/if-up.d | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
# /sys/devices/platform/gpio-leds/leds | |
echo cpu > /sys/devices/platform/gpio-leds/leds/green\:sys/trigger | |
[ "$IFACE" != "lo" ] || exit 0 |
#!/bin/sh | |
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
# JAIL | |
ipset -N JAIL hash:net maxelem 65536 -exist | |
if ! iptables -S | grep -q -- "JAIL"; then | |
iptables -t filter -I INPUT \ | |
-p tcp \ |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>NSPrivacyAccessedAPITypes</key> | |
<array> | |
<dict> | |
<key>NSPrivacyAccessedAPIType</key> | |
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string> | |
<key>NSPrivacyAccessedAPITypeReasons</key> |
## https://www.zhihu.com/question/424089478 | |
import hashlib | |
def getpwd(uid): | |
uid = bytearray.fromhex(uid) | |
h = bytearray.fromhex(hashlib.sha1(uid).hexdigest()) | |
pwd = "" | |
pwd += "%02X" % h[h[0] % 20] |
New Ventura docs for M2 Macs in this comment: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd?permalink_comment_id=4555340#gistcomment-4555340
Old Monterey docs in this old revision: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd/32c410e3a1de73539c76fa13ea5486569c4e0c5d
wants to use your confidential Chromium safe storeage | |
https://imgur.com/a/zeXW6Di |