精华内容
下载资源
问答
  • 二维码用的是几进制
    2021-03-31 15:59:25

    后台返回的数据为在这里插入图片描述前需要获取数据后进行转换
    js文件
    let url = ‘后台接口地址’
    var that=this
    wx.request({
    url: url,
    method: ‘GET’,
       header: {
       ‘Authorization’:‘token值’//请求头加入token值
      },
    responseType: ‘arraybuffer’, //将原本按文本解析修改为arraybuffer
    success: function(res) {
      //转为base64后赋值
    that.setData({
    imgUrl: wx.arrayBufferToBase64(res.data)
    })
    }
    })
    xwml文件<image src="https://img-blog.csdnimg.cn/2022010617285390903.jpeg"></image>

    更多相关内容
  • 小程序生成二维码并且把二进制流转换图片
  • 进制数字串生成二维码图片

    千次阅读 2019-04-20 16:09:44
    进制数字生成二维码代码细节 打CTF比赛时,遇到题目将flag隐藏到二进制数中,数字的长度为一个整数的平方,以01表示黑白,利用Python3的PIL中的Image库,进制生成一个二维码。 找了我半天,主要是写个备忘。...

    用二进制数字串生成二维码图片

    前言

    最近一个CTF比赛时,遇到一个题目给出了一段全是01的数字串,且数字的长度为一个整数的平方(如25^2=625)时,有可能是以0、1表示黑或者白的一个像素,这样就可以生成一个正方形的像素图,以前遇到过这样的题目生成了一个二维码,扫描二维码得到Flag。
    这里利用Python3的PIL中的Image库,用01数字串生成一个二维码。

    代码

    from PIL import Image
    MAX = 25
    pic = Image.new("RGB",(MAX, MAX))
    str = "得到的二进制数字"
    i=0
    for y in range (0,MAX):
        for x in range (0,MAX):
            if(str[i] == '1'):
                pic.putpixel([x,y],(0, 0, 0))
            else:
                pic.putpixel([x,y],(255,255,255))
            i = i+1
    pic.show()
    pic.save("flag.png")``
    

    细节

    原本是SCTF中的一道MISC题,题目中得到的二进制数字串如下 1111111000100001101111111100000101110010110100000110111010100000000010111011011101001000000001011101101110101110110100101110110000010101011011010000011111111010101010101111111000000001011101110000000011010011000001010011101101111010101001000011100000000000101000000001001001101000100111001111011100111100001110111110001100101000110011100001010100011010001111010110000010100010110000011011101100100001110011100100001011111110100000000110101001000111101111111011100001101011011100000100001100110001111010111010001101001111100001011101011000111010011100101110100100111011011000110000010110001101000110001111111011010110111011011
    运行代码后得到图片,因为只有625像素图片比较小。
    在这里插入图片描述
    扫描二维码得到Flag
    在这里插入图片描述
    找了我半天,而且装Pillow库很麻烦,而且不这么写from PIL import Image还会出问题,网上也没有找到好的办法
    可惜这次比赛没有考到这个点,杂项真令人头大,不过这个知识点有这么个了解就够了,于是拿出来写个备忘。。

    合天公众号的一篇文章提到这个,参考的代码,也有很多好的可以参考
    https://mp.weixin.qq.com/s/RdHbQrhJdJrbaI5MsHGpkg

    展开全文
  • python下二进制流文件转二维码

    千次阅读 2019-09-28 16:07:01
    python下二进制流文件转二维码 之前做过的一个ctf中的misc,经过一系列操作得到一个flag.txt 里面是一串二进制流 突然束手无策 经简单计算 260^2=67600 所以尝试能否转化为一个二维码 网上找了好久,没找到好用的...

    python下二进制流文件转二维码

    之前做过的一个ctf中的misc,经过一系列操作得到一个flag.txt
    里面是一串二进制流
    突然束手无策
    在这里插入图片描述
    经简单计算
    260^2=67600
    所以尝试能否转化为一个二维码

    网上找了好久,没找到好用的轮子
    然后果断寻求大佬帮助

    大佬毕竟还是大佬啊
    这里直接祭出源码

    import PIL
    from PIL import Image
    MAX = 260
    img = Image.new("RGB",(MAX,MAX))
    str="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111100000000000000000000000001111111100000000000000000111111111111111110000000011111111111111111000000000000000001111111100000000111111111111111111111111111111111111111111111111111111111110000000000000000011111111111111111111111111111111111111111111111111111111111000000000000000000000000011111111000000000000000001111111111111111100000000111111111111111110000000000000000011111111000000001111111111111111111111111111111111111111111111111111111111100000000000000000111111111111111111111111111111111111111111111111111111111110000000000000000000000000111111110000000000000000011111111111111111000000001111111111111111100000000000000000111111110000000011111111111111111111111111111111111111111111111111111111111000000000000000001111111111111111111111111111111111111111111111111111111111100000000000000000000000001111111100000000000000000111111111111111110000000011111111111111111000000000000000001111111100000000111111111111111111111111111111111111111111111111111111111110000000000000000011111111111111111111111111111111111111111111111111111111111000000000000000000000000011111111000000000000000001111111111111111100000000111111111111111110000000000000000011111111000000001111111111111111111111111111111111111111111111111111111111100000000000000000111111111111111111111111111111111111111111111111111111111110000000000000000000000000111111110000000000000000011111111111111111000000001111111111111111100000000000000000111111110000000011111111111111111111111111111111111111111111111111111111111000000000000000001111111111111111111111111111111111111111111111111111111111100000000000000000000000001111111100000000000000000111111111111111110000000011111111111111111000000000000000001111111100000000111111111111111111111111111111111111111111111111111111111110000000000000000011111111111111111111111111111111111111111111111111111111111000000000000000000000000011111111000000000000000001111111111111111100000000111111111111111110000000000000000011111111000000001111111111111111111111111111111111111111111111111111111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000000000000111111111111111110000000001111111111111111111111111111111110000000000000000000000000000000000111111110000000011111111100000000000000000000000000000000000000000011111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000000000001111111111111111100000000011111111111111111111111111111111100000000000000000000000000000000001111111100000000111111111000000000000000000000000000000000000000000111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000000000000011111111111111111000000000111111111111111111111111111111111000000000000000000000000000000000011111111000000001111111110000000000000000000000000000000000000000001111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000000000000111111111111111110000000001111111111111111111111111111111110000000000000000000000000000000000111111110000000011111111100000000000000000000000000000000000000000011111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000000000001111111111111111100000000011111111111111111111111111111111100000000000000000000000000000000001111111100000000111111111000000000000000000000000000000000000000000111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000000000000011111111111111111000000000111111111111111111111111111111111000000000000000000000000000000000011111111000000001111111110000000000000000000000000000000000000000001111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000000000000111111111111111110000000001111111111111111111111111111111110000000000000000000000000000000000111111110000000011111111100000000000000000000000000000000000000000011111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000000000001111111111111111100000000011111111111111111111111111111111100000000000000000000000000000000001111111100000000111111111000000000000000000000000000000000000000000111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000000000000011111111111111111000000000111111111111111111111111111111111000000000000000000000000000000000011111111000000001111111110000000000000000000000000000000000000000001111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000111111111111111110000000000000000000000000000000000000000000000000011111111100000000000000000000000000000000011111111100000000111111111111111111111111100000000011111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000001111111111111111100000000000000000000000000000000000000000000000000111111111000000000000000000000000000000000111111111000000001111111111111111111111111000000000111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000011111111111111111000000000000000000000000000000000000000000000000001111111110000000000000000000000000000000001111111110000000011111111111111111111111110000000001111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000111111111111111110000000000000000000000000000000000000000000000000011111111100000000000000000000000000000000011111111100000000111111111111111111111111100000000011111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000001111111111111111100000000000000000000000000000000000000000000000000111111111000000000000000000000000000000000111111111000000001111111111111111111111111000000000111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000011111111111111111000000000000000000000000000000000000000000000000001111111110000000000000000000000000000000001111111110000000011111111111111111111111110000000001111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000111111111111111110000000000000000000000000000000000000000000000000011111111100000000000000000000000000000000011111111100000000111111111111111111111111100000000011111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000001111111111111111100000000000000000000000000000000000000000000000000111111111000000000000000000000000000000000111111111000000001111111111111111111111111000000000111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000000000000011111111000000000000000000000000011111111100000000000000001111111111111111100000000011111111000000001111111110000000011111111111111111111111110000000001111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000000000000111111110000000000000000000000000111111111000000000000000011111111111111111000000000111111110000000011111111100000000111111111111111111111111100000000011111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000000000000001111111100000000000000000000000001111111110000000000000000111111111111111110000000001111111100000000111111111000000001111111111111111111111111000000000111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000000000000011111111000000000000000000000000011111111100000000000000001111111111111111100000000011111111000000001111111110000000011111111111111111111111110000000001111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000000000000111111110000000000000000000000000111111111000000000000000011111111111111111000000000111111110000000011111111100000000111111111111111111111111100000000011111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000000000000001111111100000000000000000000000001111111110000000000000000111111111111111110000000001111111100000000111111111000000001111111111111111111111111000000000111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000000000000011111111000000000000000000000000011111111100000000000000001111111111111111100000000011111111000000001111111110000000011111111111111111111111110000000001111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000000000000111111110000000000000000000000000111111111000000000000000011111111111111111000000000111111110000000011111111100000000111111111111111111111111100000000011111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000111111111111111110000000011111111100000000111111111111111111111111100000000000000000000000001111111111111111100000000111111111000000001111111111111111111111111000000000111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000001111111111111111100000000111111111000000001111111111111111111111111000000000000000000000000011111111111111111000000001111111110000000011111111111111111111111110000000001111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000011111111111111111000000001111111110000000011111111111111111111111110000000000000000000000000111111111111111110000000011111111100000000111111111111111111111111100000000011111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000111111111111111110000000011111111100000000111111111111111111111111100000000000000000000000001111111111111111100000000111111111000000001111111111111111111111111000000000111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000001111111111111111100000000111111111000000001111111111111111111111111000000000000000000000000011111111111111111000000001111111110000000011111111111111111111111110000000001111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000011111111111111111000000001111111110000000011111111111111111111111110000000000000000000000000111111111111111110000000011111111100000000111111111111111111111111100000000011111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000111111111111111110000000011111111100000000111111111111111111111111100000000000000000000000001111111111111111100000000111111111000000001111111111111111111111111000000000111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000001111111111111111100000000111111111000000001111111111111111111111111000000000000000000000000011111111111111111000000001111111110000000011111111111111111111111110000000001111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000011111111111111111000000001111111110000000011111111111111111111111110000000000000000000000000111111111111111110000000011111111100000000111111111111111111111111100000000011111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000111111111111111110000000011111111100000000111111110000000001111111111111111111111111111111110000000001111111100000000111111111000000000000000000000000000000000000000000111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000001111111111111111100000000111111111000000001111111100000000011111111111111111111111111111111100000000011111111000000001111111110000000000000000000000000000000000000000001111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000011111111111111111000000001111111110000000011111111000000000111111111111111111111111111111111000000000111111110000000011111111100000000000000000000000000000000000000000011111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000111111111111111110000000011111111100000000111111110000000001111111111111111111111111111111110000000001111111100000000111111111000000000000000000000000000000000000000000111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000001111111111111111100000000111111111000000001111111100000000011111111111111111111111111111111100000000011111111000000001111111110000000000000000000000000000000000000000001111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000011111111111111111000000001111111110000000011111111000000000111111111111111111111111111111111000000000111111110000000011111111100000000000000000000000000000000000000000011111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000111111111111111110000000011111111100000000111111110000000001111111111111111111111111111111110000000001111111100000000111111111000000000000000000000000000000000000000000111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000001111111111111111100000000111111111000000001111111100000000011111111111111111111111111111111100000000011111111000000001111111110000000000000000000000000000000000000000001111111100000000000000000111111111111111111111111111111111111111111111111111111111110000000011111111000000000111111110000000001111111100000000111111111000000001111111100000000011111111000000000111111110000000011111111111111111111111111111111111111111111111111111111111000000000000000001111111111111111111111111111111111111111111111111111111111100000000111111110000000001111111100000000011111111000000001111111110000000011111111000000000111111110000000001111111100000000111111111111111111111111111111111111111111111111111111111110000000000000000011111111111111111111111111111111111111111111111111111111111000000001111111100000000011111111000000000111111110000000011111111100000000111111110000000001111111100000000011111111000000001111111111111111111111111111111111111111111111111111111111100000000000000000111111111111111111111111111111111111111111111111111111111110000000011111111000000000111111110000000001111111100000000111111111000000001111111100000000011111111000000000111111110000000011111111111111111111111111111111111111111111111111111111111000000000000000001111111111111111111111111111111111111111111111111111111111100000000111111110000000001111111100000000011111111000000001111111110000000011111111000000000111111110000000001111111100000000111111111111111111111111111111111111111111111111111111111110000000000000000011111111111111111111111111111111111111111111111111111111111000000001111111100000000011111111000000000111111110000000011111111100000000111111110000000001111111100000000011111111000000001111111111111111111111111111111111111111111111111111111111100000000000000000111111111111111111111111111111111111111111111111111111111110000000011111111000000000111111110000000001111111100000000111111111000000001111111100000000011111111000000000111111110000000011111111111111111111111111111111111111111111111111111111111000000000000000001111111111111111111111111111111111111111111111111111111111100000000111111110000000001111111100000000011111111000000001111111110000000011111111000000000111111110000000001111111100000000111111111111111111111111111111111111111111111111111111111110000000000000000011111111111111111111111111111111111111111111111111111111111000000001111111100000000011111111000000000111111110000000011111111100000000111111110000000001111111100000000011111111000000001111111111111111111111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111110000000001111111100000000111111111111111110000000000000000000000000111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111100000000011111111000000001111111111111111100000000000000000000000001111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111000000000111111110000000011111111111111111000000000000000000000000011111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111110000000001111111100000000111111111111111110000000000000000000000000111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111100000000011111111000000001111111111111111100000000000000000000000001111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111000000000111111110000000011111111111111111000000000000000000000000011111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111110000000001111111100000000111111111111111110000000000000000000000000111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111100000000011111111000000001111111111111111100000000000000000000000001111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111000000000000000000000000011111111111111111111111110000000000000000000000000000000000000000001111111100000000011111111000000001111111111111111100000000011111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000001111111110000000000000000000000000111111111111111111111111100000000000000000000000000000000000000000011111111000000000111111110000000011111111111111111000000000111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000011111111100000000000000000000000001111111111111111111111111000000000000000000000000000000000000000000111111110000000001111111100000000111111111111111110000000001111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000111111111000000000000000000000000011111111111111111111111110000000000000000000000000000000000000000001111111100000000011111111000000001111111111111111100000000011111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000001111111110000000000000000000000000111111111111111111111111100000000000000000000000000000000000000000011111111000000000111111110000000011111111111111111000000000111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000011111111100000000000000000000000001111111111111111111111111000000000000000000000000000000000000000000111111110000000001111111100000000111111111111111110000000001111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000111111111000000000000000000000000011111111111111111111111110000000000000000000000000000000000000000001111111100000000011111111000000001111111111111111100000000011111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000001111111110000000000000000000000000111111111111111111111111100000000000000000000000000000000000000000011111111000000000111111110000000011111111111111111000000000111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111110000000000000000011111111111111110000000000000000011111111100000000111111110000000001111111111111111111111111000000000000000000000000011111111000000000000000000000000001111111100000000111111111000000000000000000000000000000000000000000000000001111111111111111100000000000000000111111111111111100000000000000000111111111000000001111111100000000011111111111111111111111110000000000000000000000000111111110000000000000000000000000011111111000000001111111110000000000000000000000000000000000000000000000000011111111111111111000000000000000001111111111111111000000000000000001111111110000000011111111000000000111111111111111111111111100000000000000000000000001111111100000000000000000000000000111111110000000011111111100000000000000000000000000000000000000000000000000111111111111111110000000000000000011111111111111110000000000000000011111111100000000111111110000000001111111111111111111111111000000000000000000000000011111111000000000000000000000000001111111100000000111111111000000000000000000000000000000000000000000000000001111111111111111100000000000000000111111111111111100000000000000000111111111000000001111111100000000011111111111111111111111110000000000000000000000000111111110000000000000000000000000011111111000000001111111110000000000000000000000000000000000000000000000000011111111111111111000000000000000001111111111111111000000000000000001111111110000000011111111000000000111111111111111111111111100000000000000000000000001111111100000000000000000000000000111111110000000011111111100000000000000000000000000000000000000000000000000111111111111111110000000000000000011111111111111110000000000000000011111111100000000111111110000000001111111111111111111111111000000000000000000000000011111111000000000000000000000000001111111100000000111111111000000000000000000000000000000000000000000000000001111111111111111100000000000000000111111111111111100000000000000000111111111000000001111111100000000011111111111111111111111110000000000000000000000000111111110000000000000000000000000011111111000000001111111110000000000000000000000000000000000000000000000000011111111111111111000000000000000001111111111111111000000000000000001111111110000000011111111000000000111111111111111111111111100000000000000000000000001111111100000000000000000000000000111111110000000011111111100000000000000000000000000000000000000000000000000111111111111111110000000011111111111111111111111110000000001111111111111111111111111111111110000000000000000000000000111111111111111111111111111111111100000000000000000111111111111111111111111100000000111111111111111110000000000000000000000000000000000000000001111111111111111100000000111111111111111111111111100000000011111111111111111111111111111111100000000000000000000000001111111111111111111111111111111111000000000000000001111111111111111111111111000000001111111111111111100000000000000000000000000000000000000000011111111111111111000000001111111111111111111111111000000000111111111111111111111111111111111000000000000000000000000011111111111111111111111111111111110000000000000000011111111111111111111111110000000011111111111111111000000000000000000000000000000000000000000111111111111111110000000011111111111111111111111110000000001111111111111111111111111111111110000000000000000000000000111111111111111111111111111111111100000000000000000111111111111111111111111100000000111111111111111110000000000000000000000000000000000000000001111111111111111100000000111111111111111111111111100000000011111111111111111111111111111111100000000000000000000000001111111111111111111111111111111111000000000000000001111111111111111111111111000000001111111111111111100000000000000000000000000000000000000000011111111111111111000000001111111111111111111111111000000000111111111111111111111111111111111000000000000000000000000011111111111111111111111111111111110000000000000000011111111111111111111111110000000011111111111111111000000000000000000000000000000000000000000111111111111111110000000011111111111111111111111110000000001111111111111111111111111111111110000000000000000000000000111111111111111111111111111111111100000000000000000111111111111111111111111100000000111111111111111110000000000000000000000000000000000000000001111111111111111100000000111111111111111111111111100000000011111111111111111111111111111111100000000000000000000000001111111111111111111111111111111111000000000000000001111111111111111111111111000000001111111111111111100000000000000000111111110000000001111111111111111000000000000000000000000001111111111111111111111111111111110000000001111111100000000111111111111111111111111111111111100000000000000000000000000000000011111111100000000000000000111111110000000011111111100000000000000000000000001111111100000000011111111111111110000000000000000000000000011111111111111111111111111111111100000000011111111000000001111111111111111111111111111111111000000000000000000000000000000000111111111000000000000000001111111100000000111111111000000000000000000000000011111111000000000111111111111111100000000000000000000000000111111111111111111111111111111111000000000111111110000000011111111111111111111111111111111110000000000000000000000000000000001111111110000000000000000011111111000000001111111110000000000000000000000000111111110000000001111111111111111000000000000000000000000001111111111111111111111111111111110000000001111111100000000111111111111111111111111111111111100000000000000000000000000000000011111111100000000000000000111111110000000011111111100000000000000000000000001111111100000000011111111111111110000000000000000000000000011111111111111111111111111111111100000000011111111000000001111111111111111111111111111111111000000000000000000000000000000000111111111000000000000000001111111100000000111111111000000000000000000000000011111111000000000111111111111111100000000000000000000000000111111111111111111111111111111111000000000111111110000000011111111111111111111111111111111110000000000000000000000000000000001111111110000000000000000011111111000000001111111110000000000000000000000000111111110000000001111111111111111000000000000000000000000001111111111111111111111111111111110000000001111111100000000111111111111111111111111111111111100000000000000000000000000000000011111111100000000000000000111111110000000011111111100000000000000000000000001111111100000000011111111111111110000000000000000000000000011111111111111111111111111111111100000000011111111000000001111111111111111111111111111111111000000000000000000000000000000000111111111000000000000000001111111100000000111111111000000000000000000000000011111111000000000111111111111111100000000000000000000000000111111111111111111111111111111111000000000111111110000000011111111111111111111111111111111110000000000000000000000000000000001111111110000000000000000011111111000000001111111110000000000000000000000000000000000000000001111111100000000000000000111111111111111111111111111111111000000000000000001111111111111111111111111111111111000000001111111100000000000000000000000000111111111111111100000000011111111111111111111111111111111111111111111111111000000000000000000000000000000000011111111000000000000000001111111111111111111111111111111110000000000000000011111111111111111111111111111111110000000011111111000000000000000000000000001111111111111111000000000111111111111111111111111111111111111111111111111110000000000000000000000000000000000111111110000000000000000011111111111111111111111111111111100000000000000000111111111111111111111111111111111100000000111111110000000000000000000000000011111111111111110000000001111111111111111111111111111111111111111111111111100000000000000000000000000000000001111111100000000000000000111111111111111111111111111111111000000000000000001111111111111111111111111111111111000000001111111100000000000000000000000000111111111111111100000000011111111111111111111111111111111111111111111111111000000000000000000000000000000000011111111000000000000000001111111111111111111111111111111110000000000000000011111111111111111111111111111111110000000011111111000000000000000000000000001111111111111111000000000111111111111111111111111111111111111111111111111110000000000000000000000000000000000111111110000000000000000011111111111111111111111111111111100000000000000000111111111111111111111111111111111100000000111111110000000000000000000000000011111111111111110000000001111111111111111111111111111111111111111111111111100000000000000000000000000000000001111111100000000000000000111111111111111111111111111111111000000000000000001111111111111111111111111111111111000000001111111100000000000000000000000000111111111111111100000000011111111111111111111111111111111111111111111111111000000000000000000000000000000000011111111000000000000000001111111111111111111111111111111110000000000000000011111111111111111111111111111111110000000011111111000000000000000000000000001111111111111111000000000111111111111111111111111111111111111111111111111110000000000000000000000000111111111111111110000000000000000011111111000000000111111111111111111111111111111111111111111111111110000000011111111111111111000000001111111110000000000000000011111111000000000000000000000000000000000000000000000000001111111111111111100000000000000000000000001111111111111111100000000000000000111111110000000001111111111111111111111111111111111111111111111111100000000111111111111111110000000011111111100000000000000000111111110000000000000000000000000000000000000000000000000011111111111111111000000000000000000000000011111111111111111000000000000000001111111100000000011111111111111111111111111111111111111111111111111000000001111111111111111100000000111111111000000000000000001111111100000000000000000000000000000000000000000000000000111111111111111110000000000000000000000000111111111111111110000000000000000011111111000000000111111111111111111111111111111111111111111111111110000000011111111111111111000000001111111110000000000000000011111111000000000000000000000000000000000000000000000000001111111111111111100000000000000000000000001111111111111111100000000000000000111111110000000001111111111111111111111111111111111111111111111111100000000111111111111111110000000011111111100000000000000000111111110000000000000000000000000000000000000000000000000011111111111111111000000000000000000000000011111111111111111000000000000000001111111100000000011111111111111111111111111111111111111111111111111000000001111111111111111100000000111111111000000000000000001111111100000000000000000000000000000000000000000000000000111111111111111110000000000000000000000000111111111111111110000000000000000011111111000000000111111111111111111111111111111111111111111111111110000000011111111111111111000000001111111110000000000000000011111111000000000000000000000000000000000000000000000000001111111111111111100000000000000000000000001111111111111111100000000000000000111111110000000001111111111111111111111111111111111111111111111111100000000111111111111111110000000011111111100000000000000000111111110000000000000000000000000000000000000000000000000011111111111111111000000000000000001111111111111111100000000000000000000000001111111111111111111111111111111110000000001111111100000000000000000000000000000000000000000011111111111111111000000001111111111111111111111111000000000000000001111111110000000011111111000000000111111110000000000000000011111111111111111000000000000000000000000011111111111111111111111111111111100000000011111111000000000000000000000000000000000000000000111111111111111110000000011111111111111111111111110000000000000000011111111100000000111111110000000001111111100000000000000000111111111111111110000000000000000000000000111111111111111111111111111111111000000000111111110000000000000000000000000000000000000000001111111111111111100000000111111111111111111111111100000000000000000111111111000000001111111100000000011111111000000000000000001111111111111111100000000000000000000000001111111111111111111111111111111110000000001111111100000000000000000000000000000000000000000011111111111111111000000001111111111111111111111111000000000000000001111111110000000011111111000000000111111110000000000000000011111111111111111000000000000000000000000011111111111111111111111111111111100000000011111111000000000000000000000000000000000000000000111111111111111110000000011111111111111111111111110000000000000000011111111100000000111111110000000001111111100000000000000000111111111111111110000000000000000000000000111111111111111111111111111111111000000000111111110000000000000000000000000000000000000000001111111111111111100000000111111111111111111111111100000000000000000111111111000000001111111100000000011111111000000000000000001111111111111111100000000000000000000000001111111111111111111111111111111110000000001111111100000000000000000000000000000000000000000011111111111111111000000001111111111111111111111111000000000000000001111111110000000011111111000000000111111110000000000000000011111111111111111000000000000000000000000011111111111111111111111111111111100000000011111111000000000000000000000000000000000000000000111111111111111110000000011111111111111111111111110000000000000000011111111100000000111111110000000001111111100000000000000000111111111111111110000000000000000000000000111111111111111111111111111111111000000000111111110000000000000000000000000000000000000000001111111111111111100000000111111111111111111111111100000000000000000111111111000000001111111100000000011111111000000000000000000000000011111111100000000111111111111111111111111100000000000000000000000001111111110000000011111111111111111000000001111111110000000011111111000000000111111110000000001111111100000000000000000111111111111111111111111100000000111111111000000000000000000000000000000000111111111000000001111111111111111111111111000000000000000000000000011111111100000000111111111111111110000000011111111100000000111111110000000001111111100000000011111111000000000000000001111111111111111111111111000000001111111110000000000000000000000000000000001111111110000000011111111111111111111111110000000000000000000000000111111111000000001111111111111111100000000111111111000000001111111100000000011111111000000000111111110000000000000000011111111111111111111111110000000011111111100000000000000000000000000000000011111111100000000111111111111111111111111100000000000000000000000001111111110000000011111111111111111000000001111111110000000011111111000000000111111110000000001111111100000000000000000111111111111111111111111100000000111111111000000000000000000000000000000000111111111000000001111111111111111111111111000000000000000000000000011111111100000000111111111111111110000000011111111100000000111111110000000001111111100000000011111111000000000000000001111111111111111111111111000000001111111110000000000000000000000000000000001111111110000000011111111111111111111111110000000000000000000000000111111111000000001111111111111111100000000111111111000000001111111100000000011111111000000000111111110000000000000000011111111111111111111111110000000011111111100000000000000000000000000000000011111111100000000111111111111111111111111100000000000000000000000001111111110000000011111111111111111000000001111111110000000011111111000000000111111110000000001111111100000000000000000111111111111111111111111100000000111111111000000000000000000000000000000000111111111000000001111111111111111111111111000000000000000000000000011111111100000000111111111111111110000000011111111100000000111111110000000001111111100000000011111111000000000000000001111111111111111111111111000000001111111110000000000000000000000000111111111111111110000000000000000111111111111111111111111111111111111111111111111111000000001111111110000000011111111111111111000000001111111111111111111111111111111111111111111111111100000000011111111000000000000000001111111111111111111111111000000000000000001111111111111111100000000000000001111111111111111111111111111111111111111111111111110000000011111111100000000111111111111111110000000011111111111111111111111111111111111111111111111111000000000111111110000000000000000011111111111111111111111110000000000000000011111111111111111000000000000000011111111111111111111111111111111111111111111111111100000000111111111000000001111111111111111100000000111111111111111111111111111111111111111111111111110000000001111111100000000000000000111111111111111111111111100000000000000000111111111111111110000000000000000111111111111111111111111111111111111111111111111111000000001111111110000000011111111111111111000000001111111111111111111111111111111111111111111111111100000000011111111000000000000000001111111111111111111111111000000000000000001111111111111111100000000000000001111111111111111111111111111111111111111111111111110000000011111111100000000111111111111111110000000011111111111111111111111111111111111111111111111111000000000111111110000000000000000011111111111111111111111110000000000000000011111111111111111000000000000000011111111111111111111111111111111111111111111111111100000000111111111000000001111111111111111100000000111111111111111111111111111111111111111111111111110000000001111111100000000000000000111111111111111111111111100000000000000000111111111111111110000000000000000111111111111111111111111111111111111111111111111111000000001111111110000000011111111111111111000000001111111111111111111111111111111111111111111111111100000000011111111000000000000000001111111111111111111111111000000000000000001111111111111111100000000000000001111111111111111111111111111111111111111111111111110000000011111111100000000111111111111111110000000011111111111111111111111111111111111111111111111111000000000111111110000000000000000011111111111111111111111110000000000000000011111111000000000111111111111111111111111111111111000000000000000000000000000000000011111111111111111000000000000000000000000000000000111111111111111110000000011111111111111111111111110000000001111111111111111100000000000000000000000001111111100000000000000000111111110000000001111111111111111111111111111111110000000000000000000000000000000000111111111111111110000000000000000000000000000000001111111111111111100000000111111111111111111111111100000000011111111111111111000000000000000000000000011111111000000000000000001111111100000000011111111111111111111111111111111100000000000000000000000000000000001111111111111111100000000000000000000000000000000011111111111111111000000001111111111111111111111111000000000111111111111111110000000000000000000000000111111110000000000000000011111111000000000111111111111111111111111111111111000000000000000000000000000000000011111111111111111000000000000000000000000000000000111111111111111110000000011111111111111111111111110000000001111111111111111100000000000000000000000001111111100000000000000000111111110000000001111111111111111111111111111111110000000000000000000000000000000000111111111111111110000000000000000000000000000000001111111111111111100000000111111111111111111111111100000000011111111111111111000000000000000000000000011111111000000000000000001111111100000000011111111111111111111111111111111100000000000000000000000000000000001111111111111111100000000000000000000000000000000011111111111111111000000001111111111111111111111111000000000111111111111111110000000000000000000000000111111110000000000000000011111111000000000111111111111111111111111111111111000000000000000000000000000000000011111111111111111000000000000000000000000000000000111111111111111110000000011111111111111111111111110000000001111111111111111100000000000000000000000001111111100000000000000000111111110000000001111111111111111111111111111111110000000000000000000000000000000000111111111111111110000000000000000000000000000000001111111111111111100000000111111111111111111111111100000000011111111111111111000000000000000000000000011111111000000000000000001111111100000000011111111111111111111111111111111100000000000000000000000000000000001111111111111111100000000000000000000000000000000011111111111111111000000001111111111111111111111111000000000111111111111111110000000000000000000000000111111110000000000000000000000000111111111111111111111111100000000000000000111111111000000000000000011111111111111111111111111000000001111111111111111111111111111111110000000000000000011111111111111111111111111111111110000000000000000000000000111111110000000001111111100000000000000000000000001111111111111111111111111000000000000000001111111110000000000000000111111111111111111111111110000000011111111111111111111111111111111100000000000000000111111111111111111111111111111111100000000000000000000000001111111100000000011111111000000000000000000000000011111111111111111111111110000000000000000011111111100000000000000001111111111111111111111111100000000111111111111111111111111111111111000000000000000001111111111111111111111111111111111000000000000000000000000011111111000000000111111110000000000000000000000000111111111111111111111111100000000000000000111111111000000000000000011111111111111111111111111000000001111111111111111111111111111111110000000000000000011111111111111111111111111111111110000000000000000000000000111111110000000001111111100000000000000000000000001111111111111111111111111000000000000000001111111110000000000000000111111111111111111111111110000000011111111111111111111111111111111100000000000000000111111111111111111111111111111111100000000000000000000000001111111100000000011111111000000000000000000000000011111111111111111111111110000000000000000011111111100000000000000001111111111111111111111111100000000111111111111111111111111111111111000000000000000001111111111111111111111111111111111000000000000000000000000011111111000000000111111110000000000000000000000000111111111111111111111111100000000000000000111111111000000000000000011111111111111111111111111000000001111111111111111111111111111111110000000000000000011111111111111111111111111111111110000000000000000000000000111111110000000001111111100000000000000000000000001111111111111111111111111000000000000000001111111110000000000000000111111111111111111111111110000000011111111111111111111111111111111100000000000000000111111111111111111111111111111111100000000000000000000000001111111100000000011111111000000000000000001111111111111111100000000000000000000000000000000000000000000000000111111111111111111111111111111111100000000000000000000000000000000011111111111111111000000000000000001111111100000000000000000000000001111111110000000011111111000000000000000000000000000000000011111111111111111000000000000000000000000000000000000000000000000001111111111111111111111111111111111000000000000000000000000000000000111111111111111110000000000000000011111111000000000000000000000000011111111100000000111111110000000000000000000000000000000000111111111111111110000000000000000000000000000000000000000000000000011111111111111111111111111111111110000000000000000000000000000000001111111111111111100000000000000000111111110000000000000000000000000111111111000000001111111100000000000000000000000000000000001111111111111111100000000000000000000000000000000000000000000000000111111111111111111111111111111111100000000000000000000000000000000011111111111111111000000000000000001111111100000000000000000000000001111111110000000011111111000000000000000000000000000000000011111111111111111000000000000000000000000000000000000000000000000001111111111111111111111111111111111000000000000000000000000000000000111111111111111110000000000000000011111111000000000000000000000000011111111100000000111111110000000000000000000000000000000000111111111111111110000000000000000000000000000000000000000000000000011111111111111111111111111111111110000000000000000000000000000000001111111111111111100000000000000000111111110000000000000000000000000111111111000000001111111100000000000000000000000000000000001111111111111111100000000000000000000000000000000000000000000000000111111111111111111111111111111111100000000000000000000000000000000011111111111111111000000000000000001111111100000000000000000000000001111111110000000011111111000000000000000000000000000000000011111111111111111000000000000000000000000000000000000000000000000001111111111111111111111111111111111000000000000000000000000000000000111111111111111110000000000000000011111111000000000000000000000000011111111100000000111111110000000000000000000000000000000000111111111111111110000000000000000000000000000000000000000000000000011111111111111111111111111111111110000000000000000000000000000000001111111111111111100000000000000000111111110000000000000000000000000111111111000000001111111100000000000000000000000000000000001111111100000000000000000000000000000000001111111111111111100000000111111110000000000000000011111111111111111111111110000000000000000000000000111111111111111110000000001111111111111111111111111111111111111111110000000011111111000000000000000000000000000000000011111111000000000000000000000000000000000011111111111111111000000001111111100000000000000000111111111111111111111111100000000000000000000000001111111111111111100000000011111111111111111111111111111111111111111100000000111111110000000000000000000000000000000000111111110000000000000000000000000000000000111111111111111110000000011111111000000000000000001111111111111111111111111000000000000000000000000011111111111111111000000000111111111111111111111111111111111111111111000000001111111100000000000000000000000000000000001111111100000000000000000000000000000000001111111111111111100000000111111110000000000000000011111111111111111111111110000000000000000000000000111111111111111110000000001111111111111111111111111111111111111111110000000011111111000000000000000000000000000000000011111111000000000000000000000000000000000011111111111111111000000001111111100000000000000000111111111111111111111111100000000000000000000000001111111111111111100000000011111111111111111111111111111111111111111100000000111111110000000000000000000000000000000000111111110000000000000000000000000000000000111111111111111110000000011111111000000000000000001111111111111111111111111000000000000000000000000011111111111111111000000000111111111111111111111111111111111111111111000000001111111100000000000000000000000000000000001111111100000000000000000000000000000000001111111111111111100000000111111110000000000000000011111111111111111111111110000000000000000000000000111111111111111110000000001111111111111111111111111111111111111111110000000011111111000000000000000000000000000000000011111111000000000000000000000000000000000011111111111111111000000001111111100000000000000000111111111111111111111111100000000000000000000000001111111111111111100000000011111111111111111111111111111111111111111100000000111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111000000000000000011111111100000000000000000111111110000000000000000000000000111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111110000000000000000111111111000000000000000001111111100000000000000000000000001111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111100000000000000001111111110000000000000000011111111000000000000000000000000011111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111000000000000000011111111100000000000000000111111110000000000000000000000000111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111110000000000000000111111111000000000000000001111111100000000000000000000000001111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111111111111100000000000000001111111110000000000000000011111111000000000000000000000000011111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111000000000000000011111111100000000000000000111111110000000000000000000000000111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111110000000000000000111111111000000000000000001111111100000000000000000000000001111111111111111100000000000000000000000000000000000000000011111111111111111111111111111111111111111111111111111111111000000001111111100000000011111111111111111000000001111111111111111111111111000000000000000001111111100000000011111111000000001111111110000000011111111100000000111111110000000001111111100000000000000000111111111111111111111111111111111111111111111111111111111110000000011111111000000000111111111111111110000000011111111111111111111111110000000000000000011111111000000000111111110000000011111111100000000111111111000000001111111100000000011111111000000000000000001111111111111111111111111111111111111111111111111111111111100000000111111110000000001111111111111111100000000111111111111111111111111100000000000000000111111110000000001111111100000000111111111000000001111111110000000011111111000000000111111110000000000000000011111111111111111111111111111111111111111111111111111111111000000001111111100000000011111111111111111000000001111111111111111111111111000000000000000001111111100000000011111111000000001111111110000000011111111100000000111111110000000001111111100000000000000000111111111111111111111111111111111111111111111111111111111110000000011111111000000000111111111111111110000000011111111111111111111111110000000000000000011111111000000000111111110000000011111111100000000111111111000000001111111100000000011111111000000000000000001111111111111111111111111111111111111111111111111111111111100000000111111110000000001111111111111111100000000111111111111111111111111100000000000000000111111110000000001111111100000000111111111000000001111111110000000011111111000000000111111110000000000000000011111111111111111111111111111111111111111111111111111111111000000001111111100000000011111111111111111000000001111111111111111111111111000000000000000001111111100000000011111111000000001111111110000000011111111100000000111111110000000001111111100000000000000000111111111111111111111111111111111111111111111111111111111110000000011111111000000000111111111111111110000000011111111111111111111111110000000000000000011111111000000000111111110000000011111111100000000111111111000000001111111100000000011111111000000000000000001111111111111111111111111111111111111111111111111111111111100000000111111110000000001111111111111111100000000111111111111111111111111100000000000000000111111110000000001111111100000000111111111000000001111111110000000011111111000000000111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000001111111111111111111111111000000000111111111111111100000000011111111000000000000000001111111111111111111111111000000000000000000000000011111111111111111000000000000000001111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000011111111111111111111111110000000001111111111111111000000000111111110000000000000000011111111111111111111111110000000000000000000000000111111111111111110000000000000000011111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000111111111111111111111111100000000011111111111111110000000001111111100000000000000000111111111111111111111111100000000000000000000000001111111111111111100000000000000000111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000001111111111111111111111111000000000111111111111111100000000011111111000000000000000001111111111111111111111111000000000000000000000000011111111111111111000000000000000001111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000011111111111111111111111110000000001111111111111111000000000111111110000000000000000011111111111111111111111110000000000000000000000000111111111111111110000000000000000011111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000111111111111111111111111100000000011111111111111110000000001111111100000000000000000111111111111111111111111100000000000000000000000001111111111111111100000000000000000111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000001111111111111111111111111000000000111111111111111100000000011111111000000000000000001111111111111111111111111000000000000000000000000011111111111111111000000000000000001111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000011111111111111111111111110000000001111111111111111000000000111111110000000000000000011111111111111111111111110000000000000000000000000111111111111111110000000000000000011111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000000000000001111111111111111100000000111111111111111111111111111111111111111111000000001111111111111111111111111111111111111111111111111110000000000000000111111111111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000000000000011111111111111111000000001111111111111111111111111111111111111111110000000011111111111111111111111111111111111111111111111111100000000000000001111111111111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000000000000111111111111111110000000011111111111111111111111111111111111111111100000000111111111111111111111111111111111111111111111111111000000000000000011111111111111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000000000000001111111111111111100000000111111111111111111111111111111111111111111000000001111111111111111111111111111111111111111111111111110000000000000000111111111111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000000000000011111111111111111000000001111111111111111111111111111111111111111110000000011111111111111111111111111111111111111111111111111100000000000000001111111111111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000000000000111111111111111110000000011111111111111111111111111111111111111111100000000111111111111111111111111111111111111111111111111111000000000000000011111111111111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000000000000001111111111111111100000000111111111111111111111111111111111111111111000000001111111111111111111111111111111111111111111111111110000000000000000111111111111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000000000000011111111111111111000000001111111111111111111111111111111111111111110000000011111111111111111111111111111111111111111111111111100000000000000001111111111111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000000000000111111111111111110000000011111111111111111111111111111111111111111100000000111111111111111111111111111111111111111111111111111000000000000000011111111111111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000001111111110000000000000000000000000000000000000000001111111111111111111111111000000001111111110000000011111111111111111111111111111111111111111111111111111111111111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000011111111100000000000000000000000000000000000000000011111111111111111111111110000000011111111100000000111111111111111111111111111111111111111111111111111111111111111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000111111111000000000000000000000000000000000000000000111111111111111111111111100000000111111111000000001111111111111111111111111111111111111111111111111111111111111111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000001111111110000000000000000000000000000000000000000001111111111111111111111111000000001111111110000000011111111111111111111111111111111111111111111111111111111111111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000011111111100000000000000000000000000000000000000000011111111111111111111111110000000011111111100000000111111111111111111111111111111111111111111111111111111111111111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000111111111000000000000000000000000000000000000000000111111111111111111111111100000000111111111000000001111111111111111111111111111111111111111111111111111111111111111111000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000001111111110000000000000000000000000000000000000000001111111111111111111111111000000001111111110000000011111111111111111111111111111111111111111111111111111111111111111110000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000011111111100000000000000000000000000000000000000000011111111111111111111111110000000011111111100000000111111111111111111111111111111111111111111111111111111111111111111100000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000111111111000000000000000001111111100000000000000000000000000000000011111111111111111111111111000000001111111100000000000000000000000000000000001111111111111111100000000000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000001111111110000000000000000011111111000000000000000000000000000000000111111111111111111111111110000000011111111000000000000000000000000000000000011111111111111111000000000000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000011111111100000000000000000111111110000000000000000000000000000000001111111111111111111111111100000000111111110000000000000000000000000000000000111111111111111110000000000000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000111111111000000000000000001111111100000000000000000000000000000000011111111111111111111111111000000001111111100000000000000000000000000000000001111111111111111100000000000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000001111111110000000000000000011111111000000000000000000000000000000000111111111111111111111111110000000011111111000000000000000000000000000000000011111111111111111000000000000000000000000011111111000000000111111111111111111111111100000000111111111000000000000000011111111100000000000000000111111110000000000000000000000000000000001111111111111111111111111100000000111111110000000000000000000000000000000000111111111111111110000000000000000000000000111111110000000001111111111111111111111111000000001111111110000000000000000111111111000000000000000001111111100000000000000000000000000000000011111111111111111111111111000000001111111100000000000000000000000000000000001111111111111111100000000000000000000000001111111100000000011111111111111111111111110000000011111111100000000000000001111111110000000000000000011111111000000000000000000000000000000000111111111111111111111111110000000011111111000000000000000000000000000000000011111111111111111000000000000000000000000011111111000000000000000000000000000000000000000000111111111000000001111111100000000000000000111111111111111110000000011111111111111111000000000000000000000000011111111100000000111111110000000000000000000000000000000000111111111111111111111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000011111111000000000000000001111111111111111100000000111111111111111110000000000000000000000000111111111000000001111111100000000000000000000000000000000001111111111111111111111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000111111110000000000000000011111111111111111000000001111111111111111100000000000000000000000001111111110000000011111111000000000000000000000000000000000011111111111111111111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000001111111100000000000000000111111111111111110000000011111111111111111000000000000000000000000011111111100000000111111110000000000000000000000000000000000111111111111111111111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000011111111000000000000000001111111111111111100000000111111111111111110000000000000000000000000111111111000000001111111100000000000000000000000000000000001111111111111111111111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000111111110000000000000000011111111111111111000000001111111111111111100000000000000000000000001111111110000000011111111000000000000000000000000000000000011111111111111111111111110000000000000000011111111000000000000000000000000000000000000000000111111111000000001111111100000000000000000111111111111111110000000011111111111111111000000000000000000000000011111111100000000111111110000000000000000000000000000000000111111111111111111111111100000000000000000111111110000000000000000000000000000000000000000001111111110000000011111111000000000000000001111111111111111100000000111111111111111110000000000000000000000000111111111000000001111111100000000000000000000000000000000001111111111111111111111111000000000000000001111111100000000000000000000000000000000000000000011111111100000000111111110000000000000000011111111111111111000000001111111111111111100000000000000000000000001111111110000000011111111000000000000000000000000000000000011111111111111111111111110000000000000000011111111111111111111111111111111111111111111111111111111111000000000000000011111111111111111000000000000000001111111100000000011111111000000001111111111111111111111111111111111000000001111111110000000000000000000000000111111111111111110000000000000000000000000111111111111111111111111111111111111111111111111111111111110000000000000000111111111111111110000000000000000011111111000000000111111110000000011111111111111111111111111111111110000000011111111100000000000000000000000001111111111111111100000000000000000000000001111111111111111111111111111111111111111111111111111111111100000000000000001111111111111111100000000000000000111111110000000001111111100000000111111111111111111111111111111111100000000111111111000000000000000000000000011111111111111111000000000000000000000000011111111111111111111111111111111111111111111111111111111111000000000000000011111111111111111000000000000000001111111100000000011111111000000001111111111111111111111111111111111000000001111111110000000000000000000000000111111111111111110000000000000000000000000111111111111111111111111111111111111111111111111111111111110000000000000000111111111111111110000000000000000011111111000000000111111110000000011111111111111111111111111111111110000000011111111100000000000000000000000001111111111111111100000000000000000000000001111111111111111111111111111111111111111111111111111111111100000000000000001111111111111111100000000000000000111111110000000001111111100000000111111111111111111111111111111111100000000111111111000000000000000000000000011111111111111111000000000000000000000000011111111111111111111111111111111111111111111111111111111111000000000000000011111111111111111000000000000000001111111100000000011111111000000001111111111111111111111111111111111000000001111111110000000000000000000000000111111111111111110000000000000000000000000111111111111111111111111111111111111111111111111111111111110000000000000000111111111111111110000000000000000011111111000000000111111110000000011111111111111111111111111111111110000000011111111100000000000000000000000001111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    i = 0
    for y in range (0,MAX):
    
    
        for x in range (0,MAX):
    
    
            if(str[i] == '1'):
    
    
                img.putpixel([x,y],(0, 0, 0))
    
    
            else:
    
    
                img.putpixel([x,y],(255,255,255))
    
    
            i = i+1
    img.show()
    img.save("flag.png")
    
    

    然后这里需要注意
    win下的PIL并不太容易装
    而kali下集成了python环境,而且内置很多库
    所以这里需要在kali下run
    然后秒出

    在这里插入图片描述
    同时在文件夹下多了一个这玩意
    在这里插入图片描述

    展开全文
  • 就一张二维码图片,一些在线工具识别是乱码,QQ识别出来是 16进制编辑器打开发现末尾有段很突兀的数据,不属于bmp位图的内容,想必flag就在其中 观察这段数据发现只有0-7,没有8和9,很容易想到是8...

    题目地址:http://ctf.bugku.com/files/5e480ecb178711e82bc847a208e15b32/misc80.zip

     

    就一张二维码图片,用一些在线工具识别是乱码,用QQ识别出来是

     

    用16进制编辑器打开发现末尾有段很突兀的数据,不属于bmp位图的内容,想必flag就在其中

     

    观察这段数据发现只有0-7,没有8和9,很容易想到是8进制数据,可以将其转换成10进制,然后再转成ascii字符。一开始看这个数字总长126个,2的倍数,加上以前转换16进制的惯性思维,让我以为这里也是两两一对的转换,转换出来自然不正确,一堆乱码,后来发现两位的8进制数据最大077(数字前加0表示8进制),转换成10进制63也表示不完ascii码表上的字符啊,而且126刚好也是3的倍数,所以三个一组来转换,如下脚本:

    f=open("1.txt",'r')
    res=''
    for i in range(42):
        s=eval('0'+f.read(3))
        res+=chr(int(s))
    print res   
    raw_input()

     

    转载于:https://www.cnblogs.com/leixiao-/p/9825703.html

    展开全文
  • // 实现二:生成二维码图片并将图片转为二进制传递给前台 // 1、读取文件转换为字节数组 ByteArrayOutputStream out = new ByteArrayOutputStream(); BufferedImage image = toBufferedImage(bitMatrix); //// ...
  • getCode() { axios({ method: "get", url: "admin/verify", responseType: "arraybuffer", // 最为关键 }).then((res)=> { ... }, 登录验证码后端返回的二进制 进行如上操作 得到的imgUrl 直接放到img标签里面就可以了
  • <p>java 二维码图片转二进制 存进Oracle 使用什么技术呢?</p>
  • 步骤:1 :通过接口获取token,为了避免在冲突,token最好存入redis中,即即取,注意事项:获取到accessToken取出来是带双引号的,一定要代替掉"",不然返回的转化出来的二进制不对,这个地方坑了我好久,切记切记,还有就是...
  • 使用js的QRcode.js自动生成二维码,支持实现中文的转换,其中还包括在二维码中插入小图片。
  • 前提业务要求:前台页面展示数据,有下载按钮,点击下载,下载对应数据的二维码。 首先,在pom.xml文件中添加依赖 <dependency> <groupId>com.google.zxing</groupId> <artifactId>...
  • 二维码在本地可以正常的在jsp上显示,部署到服务器上,展示出来的却是二进制文件 我的思路是这样的 我刚开始觉得是二维码图片生成有问题,随后我放弃了生成二维码,随便选择了一个JPG传到前端显示,结 果还是...
  • 我可以zxing将一个Url转为一个二维码图片,可是怎么将这个图片转换成数据流呢?类似IOS里面的NSdata的数据格式?
  • 微信小程序二维码返回的二进制内容,是一个byte[] 所以直接byte[]接收即可,然后写入文件中: req – 请求的参数json字符串 byte[] bytes = new RestTemplate().postForObject(二维码接口url + accessToken, req, ...
  •  url: 'https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token='+that.data.token, //获取小程序B接口二维码    method: "POST",    responseType: 'arraybuffer', //这一行非常重要,重中之重 ...
  • URL转二维码再转二进制流图片
  • 微信小程序二维码返回的二进制上传到OSS public ResultDTO getQrCode(ReqQrCodeDTO reqQrCodeDTO) { try { //拼接URL String access_token_url = WX_APPLET_GETAT+"?appid="+WX_APPLET_ID+"&secret="+WX_APPLET...
  • 主要针对非中文字符(此程序中是矩阵)的二维码转换 并将读入的数据 进行矩阵计算
  • 每个 byte 转成 8 位二进制数据,二进制的 0、1表示像素点的黑白。测试点阵是 48*48 像素,2304个点,对应 288 个byte 数据。 搜了一下没找到现成轮子,想着难度也不大,参考 zxing 二维码的显示,顺便复习下 ...
  • 本博文模拟的简易二维码的思路很简单,即:字符转二值化图像,先将一个字符转为整数,然后将整数转为二进制数,再根据二进制数0绘制一个白块 1绘制一个黑块 就实现了一个简易的二维码 这个字符转二进制数的函数...
  • VB二维码生成与解码的源代码...输入字符串,包括中文,可生成二维码,利用扫码设备扫描二维码可显示二维码的字符,其中,中文通过unicode编码,生成二维码,通过扫码获得二维码字符串后再,再进行解码得到中文 ...
  • 二维码编码原理

    2020-02-19 16:37:51
    二维码编码原理
  • // 编码内容,编码类型(这里指定为二维码),生成图片宽度,生成图片高度,设置参数 BitMatrix bitMatrix = new MultiFormatWriter().encode(content, BarcodeFormat.QR_CODE, 400, 400, hints); //--------- 这是返回给...
  • BUUCTF 杂项——二维码

    2022-06-13 16:11:45
    杂项-二维码
  • Java生成二维码

    2021-06-14 16:07:30
    -- 生成二维码 --> <dependency> <groupId>com.google.zxing</groupId> <artifactId>core</artifactId> <version>3.2.1</version> </dependency> <...
  • 解析二维码内容

    2021-03-08 11:06:49
    解析二维码内容 ZXing是一个开源Java类库用于解析多种格式的1D/2D条形码。目标是能够对QR编码、Data Matrix、UPC的1D条形码进行解码。 其提供了多种平台下的客户端包括:J2ME、J2SE和Android。 import ...
  • 因为,项目需要支持vs2010的cpp提取二维码进制数据,原本zbar和zxing都会默认进行字符集编码转换(zxing默认utf-8),导致部分0x80等二进制数据被强制编码转换,而导致无法正确识别。现通过基于zxing源码修改默认...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 17,917
精华内容 7,166
关键字:

二维码用的是几进制

友情链接: xfbbcg.rar