QQ可以使用xml的方式发送消息,以下为了方便描述统称为卡片。
通过机器人的API进行发送xml即可,但是如果选择发送xml,那么其他如[image=xxx]
、[@xxx]
这些命令就不可使用了。整个消息只有XML。
xml主要由msg
,item
,source
这3部分组成
<?xml version='1.0' encoding='utf-8' standalone='yes'?>
/* Nintendo sysmodules */ | |
0100000000000000 fs | |
0100000000000001 ldr | |
0100000000000002 ncm | |
0100000000000003 pm | |
0100000000000004 sm | |
0100000000000005 boot | |
0100000000000006 usb | |
0100000000000007 tma.stub/htc.stub | |
0100000000000008 boot2 |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
// munged from https://github.com/simontime/Resead | |
namespace sead | |
{ | |
class Random | |
{ |
#!/usr/bin/env python2 | |
# lrdcq | |
# usage python2 unwxapkg.py filename | |
import sys, os | |
import struct | |
class WxapkgFile(object): | |
nameLen = 0 |
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works | |
const axios = require('axios'); // promised based requests - like fetch() | |
function getCoffee() { | |
return new Promise(resolve => { | |
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee | |
}); | |
} |
#!/system/bin/sh | |
# 使用方法: | |
# adb shell "curl -Ssl https://gist.githubusercontent.com/kookxiang/1104e898f270c9a7a0784f70979ec532/raw/hackQQ.sh | su" | |
# 使用方法 (手动): | |
# 0.确保你手机 Root 了 | |
# 1.下载这个脚本到某个地方 | |
# 2.下载 Android SDK(需要其中的 adb) | |
# 3.在命令行运行 adb devices,确保能看到你的手机 |
var net = require('net'); | |
var sockets = []; | |
var port = 8000; | |
var remoteHost = "127.0.0.1"; | |
var remotePort = 1234; | |
var server = net.createServer(function(socket) { | |
socket.name = socket.remoteAddress + ":" + socket.remotePort |