Category Archives

26 Articles

交叉编译openresty,修复支持大文件 (LFS)

0   1114 转为繁体


SIM800L EVB x 树莓派

9   5723 转为繁体





cloudflare-partner-cli: using CNAME on cloudflare


This is a CLI program that let you set CNAME to use Cloudflare using the partner program.

Both Python2.x and Python3.x is supported. No extra library is needed.

To use Chinese menu, set environment variable LANG to use UTF-8 (for example, zh_CN.UTF-8).


  1. Apply for partner program at
  2. Clone this repository or download script.
  3. Run python ./
  4. Enter your host_key. You can get it here.
  5. Enter the account you use to manage domains (your personal account, not partner login account). User key is stored in .cfhost.
  6. Follow the instructions on screen.


  • Value of resolve_to has to be DNS record (for example: instead of IP address.

cloudflare-partner-cli: 使用CNAME方式接入Cloudflare

0   6081 转为繁体

English Version

使用Cloudflare partner功能用CNAME方式接入cloudflare。


如需使用中文菜单,请将环境变量的LANG设置为使用UTF-8 (比如zh_CN.UTF-8)。


  1. 申请Cloudflare partner计划 。
  2. clone本项目或者直接下载脚本
  3. 运行 python ./
  4. 输入 host_key。可以从这里获得。
  5. 输入要用来管理域名的账号 (你的个人账号,不是partner账号)。账户信息保存在.cfhost文件中。
  6. 按照屏幕提示操作。


  • 源站地址必须为DNS记录,如,不能填写IP地址。



0   4658 转为繁体

SHC 是一个将shell脚本加密成二进制文件的脚本。使用随机生成的密钥对shell脚本进行RC4加密放到一个全局变量中(编译后存在data段),然后在运行时解密。





Read More

Solve Xposed module list become empty on Android 6.0 Marshmallow

0   3513 转为繁体


Recently I found module list in Xposed become empty after I upgrade my Nexus5 to 6.0.1 (M4B30Z, Dec 2016). And all the modules are not activating. So I open logcat and see the following:

Rovo89 said on a xda post that this file should be created if any module is activated. But somehow it didn’t do so on my Nexus5. So I create one myself and set correct permission (0644) and uid (you can run the Xposed Installer app and check the uid through ps |grep xposed). Then I reboot and check logcat again:

Looks like it’s still not working.

Then I realise that Android started to set SELinux to enforce from Lollipop (5.0) so this should be the problem. (We can use dmesg|grep audit to check if the problem really related to SELinux. ) I compared a random file under /data/data to the file we just created:

So all we need to do is to change this conf/modules.list to u:object_r:app_data_file:s0:c512,c768 as well

restorecon is a applet shipped with toybox, we can also use chcon to manually set SELinux context.