QQ可以使用xml的方式发送消息,以下为了方便描述统称为卡片。
通过机器人的API进行发送xml即可,但是如果选择发送xml,那么其他如[image=xxx]
、[@xxx]
这些命令就不可使用了。整个消息只有XML。
xml主要由msg
,item
,source
这3部分组成
<?xml version='1.0' encoding='utf-8' standalone='yes'?>
outfile = open('resulttiku.txt', 'w',encoding='utf-8') #new file | |
list_1=[] | |
for line in open('tiku.txt',encoding='utf-8'): #old txt file | |
tmp = line.strip() | |
if tmp not in list_1: | |
list_1.append(tmp) | |
outfile.write(line) | |
outfile.close() |
# -*- coding: utf-8 -*- | |
def addone(): | |
x=41 | |
y=0 | |
while x<66: | |
x=x+1 | |
y=y+1 | |
x=str(x) | |
y=str(y) | |
mystr= "var btn_"+y+"=document.getElementById("+'"'+y+'"'+");" |
<AppUpdater> | |
<update> | |
<latestVersion>1.1.3</latestVersion> | |
<latestVersionCode>26</latestVersionCode> | |
<url>ttps://lanhaoo.club/irc.apk</url> | |
<releaseNotes> | |
"- 1.新增功能:应用增加没什么用的通知,接受服务器PUSH消息",\n "- 2.新增功能:检测更新",\n "- 3.Bug fixes:部分机型键盘挡住输入框"\n | |
</releaseNotes> | |
</update> | |
</AppUpdater> |
#!/usr/bin/python | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
# The author disclaims copyright to this source code. | |
import sys | |
import struct | |
import socket | |
import time | |
import select |