Skip to content

Instantly share code, notes, and snippets.

View sumimakito's full-sized avatar

Makito sumimakito

View GitHub Profile
var CryptoJS = require('crypto-js')
var request = require('request-promise')
/*
* npm install crypto-js request-promise request
* node wx_t1t_hack.js
*/
// export function testEncription(msg, fullKey) {
// var fullKey = fullKey.slice(0, 16)
@sumimakito
sumimakito / xiaomi_service_login.py
Last active October 14, 2019 08:15
Run with Python 3
#!/usr/bin/env python
import hashlib
import json
from getpass import getpass
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
@sumimakito
sumimakito / cloudflare.sh
Created May 8, 2022 10:38
Cloudflare DDNS Provider for Synology
#!/bin/sh
_exit() {
echo $1
exit
}
if [[ "$#" -ne 4 ]]; then
_exit "badparam"
fi