wechat

#!/bin/bash

adb shell screencap -p /sdcard/a.png
adb pull /sdcard/a.png ./
adb shell rm /sdcard/a.png

echo "screencap [done]"
#!/usr/bin/env python

from PIL import Image
from PIL import ImageDraw

img = Image.open("./a.png")

print img.size

sx = 990 #970
sy = 1395 #1375
dx = 51 #86
dy = 36 #66

rL = []
draw = ImageDraw.Draw(img)
for i in range(sx,sx+dx):
    row = ‘‘
    for j in range(sy,sy+dy):
        col = img.getpixel((i,j))
        draw.point((i-sx,j-sy),col)
        row += str(col[0])+‘,‘+str(col[1])+‘,‘+str(col[2])+‘,‘+str(col[3])+‘-‘

    rL.append(row[:-1]+‘\n‘)
img.save("./r.png")

f = open(‘./g.txt‘, ‘w‘)
f.writelines(rL)
f.close()
#!/usr/bin/env python

from PIL import Image  

####################################################################
dx = 51
dy = 36
g_block = [[] for i in range(dx)]

####################################################################
def init():
    global g_block

    f = open(‘./g.txt‘, ‘r‘)
    t = f.readlines()
    f.close()

    for index,i in enumerate(t):
        #print index
        e = i[:-1].split(‘-‘)
        for index2, j in enumerate(e):
            w = j.split(‘,‘)
            g_block[index].append((int(w[0]),int(w[1]),int(w[2]),int(w[3])))
            pass

def check():
    global g_block
    rslt = []

    img = Image.open("./a.png")
    imgw, imgh = img.size
    for x in range(imgw):
        for y in range(imgh):
            if x + dx >= imgw or y + dy >= imgh:
                continue
            fg = True
#print x,y,
            for xx in range(dx):
                if fg == False:
                    break
                for yy in range(dy):
                    col1 = img.getpixel((x+xx,y+yy))
                    if col1 != g_block[xx][yy]:
#print xx, yy, col1, g_block[xx][yy]
                        fg = False
                        break
            if fg == True:
                  rslt.append((x,y))

    print rslt

####################################################################
if __name__ == ‘__main__‘:
    init()
    print ‘[finished]‘
    check()

时间: 2024-11-08 21:59:32

wechat的相关文章

overtrue/wechat 包 由 sys_get_temp_dir 引发的 the directory "c:\Windows" is not writable

vendor\overtrue\wechat\src\Foundation\Application.php registerBase 方法 在初始化属性时 $this['cache'] = function () { // return new FilesystemCache(sys_get_temp_dir()); // win 下获取的是 c:\window 没有权限 位置太敏感 加权限什么的就算了吧 return new FilesystemCache(APP_PATH.'runtime/

微控工具xp模块-开发版[微信(wechat)二次开发模块]

http://repo.xposed.info/module/com.easy.wtool 微控工具xp模块-开发版[微信(wechat)二次开发模块] 基于xposed框架的微信二次开发模块,方便开发者用微信做一些扩展功能(如微信群发.多群直播等...) 目前支持功能: 发文本消息 发图片消息 发语音消息 发视频消息 获取微信好友列表 群列表 支持群发消息 支持消息转发(目前支持文本.图片.语音.视频.图文消息转发) 群管理功能(建群.加人.踢人.设置公告.改群名.退群.解散群) [注:本模块

[转]微信公众平台WeChat PHP SDK

地址:https://github.com/dodgepudding/wechat-php-sdk 微信公众平台php开发包,细化各项接口操作,支持链式调用 微信支付接入文档: https://mp.weixin.qq.com/cgi-bin/readtemplate?t=business/course2_tmpl&lang=zh_CN wechat.class.php调用官方API,具有更灵活的消息分类响应方式,支持链式调用操作 : 主要功能 接入验证 (初级权限) 自动回复(文本.图片.语音

WeChat with Python

Installation ? 云引擎 ? ? ? ? 阿里:ACE [email protected] majia######@1 139****3496 谷歌:GAE ? ? ? 盛大:CAE [email protected] majia###### 139****3496 腾讯:CEE ? ? ? 新浪:SAE [email protected] [email protected]###### 139****3496 svn [[email protected] /majia######]

WeChat 6.3 wipe deleted chat messages as well as LINE 5.3 and above

Let me show you the WeChat version first. It is 6.3. What will happen to WeChat deleted chat messages? Take a look at "Blocks containing deleted data" and those deleted messages were wiped. What about WhatsApp? The version is 2.12.317. Fortunate

A look at WeChat security

原文地址:http://blog.emaze.net/2013/09/a-look-at-wechat-security.html TL;DR: Any (unprivileged) application installed on an Android phone can instruct WeChat to send an hash of your password to an external, attacker-controlled server. If you are a WeChat

Zabbix-3.2.3实现微信(WeChat)告警

Zabbix-3.2.3实现微信(WeChat)告警 zabbix Zabbix可以通过多种方式把告警信息发送到指定人,常用的有邮件,短信报警方式,但是越来越多的企业开始使用zabbix结合微信作为主要的告警方式,这样可以及时有效的把告警信息推送到接收人,方便告警的及时处理. 关于邮件报警可以参考:Zabbix Web 邮件报警 一.微信企业号申请 地址: https://qy.weixin.qq.com/ 第一步注册 提示:这里简单的说一下,微信企业号和微信公众号是不一样的! 到邮件查看邮件,

微信破解,解密?How To Decrypt WeChat EnMicroMsg.db Database?

原文地址:http://articles.forensicfocus.com/2014/10/01/decrypt-wechat-enmicromsgdb-database/ WeChat is a smartphone application where users can chat with their friends, share pictures, videos and audio chats. Users can also make free video calls and voice

static wechat red package tool

---------------------------------------------------------------------------------------------| name      | wechat   | lock       | in chat  | speed     | return   | support ||                | is focus  | screen   |              |               |    

转:WeChat 6.3 Wipe deleted Chat messages well as LINE 关于微信6.3以上聊天记录不能恢复的说明!

Let me show you the WeChat version first. It is 6.3. What will happen to WeChat deleted chat messages? Take a look at "Blocks containing deleted data" and those deleted messages were wiped. What about WhatsApp? The version is 2.12.317. Fortunate