Skip to content

Instantly share code, notes, and snippets.

@eos33
eos33 / enableDCI.txt
Created July 10, 2020 02:58 — forked from eiselekd/enableDCI.txt
Enable DCI debugging on Gigabyte-BKi5HA-7200
Enable DCI debugging on Gigabyte-BKi5HA-7200
--------------------------------------------
The Gigabyte-BKi5HA-7200 (Kabylake i5-7200 processor) can be debugged with only a USB debug cable, a
special cable that crosses only the data signals and has the power signals
removed. You can buy these cables at i.e. https://www.datapro.net/products/usb-3-0-super-speed-a-a-debugging-cable.html
The hurdle you have to overcome before you can access DCI however is that you
need to set some bits in hardware that first enable DCI and also enable the debug port so that DCI can control the cores.
There are lots of guides in howto patch the BIOS but only these two really describes all the steps using only freely accessible tools:
@eos33
eos33 / Crypter.java
Created March 17, 2019 08:16 — forked from flying19880517/Crypter.java
QQ的TEA加密
package mobi.bbase.ahome.utils;
import java.io.ByteArrayOutputStream;
import java.util.Random;
/**
* 加密解密QQ消息的工具类. QQ消息的加密算法是一个16次的迭代过程并且是反馈的每一个加密单元是8字节输出也是8字节密钥是16字节
* 我们以prePlain表示前一个明文块plain表示当前明文块crypt表示当前明文块加密得到的密文块preCrypt表示前一个密文块
* f表示加密算法d表示解密算法 那么从plain得到crypt的过程是: crypt = f(plain ˆ preCrypt) ˆ