Skip to content

Instantly share code, notes, and snippets.

@zhangyoufu
zhangyoufu / generator.js
Created February 13, 2019 09:38 — forked from 1Conan/generator.js
Generator/Apnonce generation script
/**
* genap
* 1Conan
*/
const crypto = require('crypto');
const reverse = require('buffer-reverse');
const hash = crypto.createHash('sha1');
//Data
const random = crypto.randomBytes(8);
@zhangyoufu
zhangyoufu / rol.im-securegoldenkeyboot
Created March 21, 2019 05:29 — forked from acepace/rol.im-securegoldenkeyboot
Secure Golden Key Boot: (MS16-094 / CVE-2016-3287 and MS16-100/ CVE-2016-332)
| |
| a w r i t e u p r e l e a s e b y r o l |
| ________ ___ ________ ________ |
| <_ __ \/ \/ \/ ____ \ |
| T T<___/\___/\_ /\ _/\ \__j _/ |
| | | T T T / \ T__\____ T |
| | | | | | \ / |T T T | |
| l__j_____l___j_l__><__j| | | | |
| T _______ T | ___j | l___j | |
| | T __T |_j l_______l________j |
@zhangyoufu
zhangyoufu / xiaomi_readmac.c
Created April 10, 2019 08:34 — forked from luca020400/foo.c
Tested on MI5 gemini, Wi-Fi / Bluetooth
/*
* Copyright (C) 2016 The CyanogenMod Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@zhangyoufu
zhangyoufu / jni_all.h
Created August 5, 2019 09:43 — forked from Jinmo/jni_all.h
Useful when reversing JNI on IDA Pro
/*
* Copyright (c) 1996, 1998, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*