精华内容
下载资源
问答
  • 二进制转二维码
    2020-06-22 09:50:20

    为了以后方便
    小程序request请求中添加responseType: ‘arraybuffer’,

    更多相关内容
  • 小程序生成二维码并且把二进制流转换图片
  • getCode() { axios({ method: "get", url: "admin/verify", responseType: "arraybuffer", // 最为关键 }).then((res)=> { ... }, 登录验证码后端返回的二进制 进行如上操作 得到的imgUrl 直接放到img标签里面就可以了
    getCode() {
       axios({
            method: "get",
            url: "admin/verify",
            responseType: "arraybuffer", // 最为关键
        }).then((res)=> {
            this.imgUrl =
            "data:image/jpeg;base64," + this.arrayBufferToBase64(res.data);
            console.log(this.imgUrl)
        });
    },
    arrayBufferToBase64(buffer) {
         var binary = "";
         var bytes = new Uint8Array(buffer);
         var len = bytes.byteLength;
         for (var i = 0; i < len; i++) {
             binary += String.fromCharCode(bytes[i]);
         }
         return window.btoa(binary);
     },
    

    登录验证码后端返回的二进制 进行如上操作
    得到的imgUrl 直接放到img标签里面就可以了

    展开全文
  • 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
    然后秒出

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

    展开全文
  • ctf,二维码二进制

    2022-09-14 16:06:27
    左右拉一拉能看到二维码,用fastone capture滚动截图然后调整颜色,亮度拉倒最低,对比度拉到最高,python脚本或者工具都行。我用的二维码批量扫描工具1.1。100个png,111.txt是提取的每个图片的二维码

    100个png,111.txt是提取的每个图片的二维码的数据,都是01的字符串。

    python脚本或者工具都行。我用的二维码批量扫描工具1.1 。

    左右拉一拉,缩放能看到二维码,用fastone capture滚动截图然后调整颜色,亮度拉倒最低,对比度拉到最高,

     

     然后用windows画图打开,ctrl+a全选然后右键图片,反色,软件扫描即可。之后一大堆01 cyberchef可破。

     

    flag{atmb_netcenter_great.28391} 

    展开全文
  • 每个 byte 成 8 位二进制数据,二进制的 0、1表示像素点的黑白。测试点阵是 48*48 像素,2304个点,对应 288 个byte 数据。 搜了一下没找到现成轮子,想着难度也不大,参考 zxing 二维码的显示,顺便复习下 ...
  • 二进制数字串生成二维码图片

    千次阅读 2019-04-20 16:09:44
    二进制数字生成二维码代码细节 打CTF比赛时,遇到题目将flag隐藏到二进制数中,数字的长度为一个整数的平方,以01表示黑白,利用Python3的PIL中的Image库,用二进制生成一个二维码。 找了我半天,主要是写个备忘。...
  • 、小程序前端js   js源码: wx.request({    url: app.globalData.url + "getCodeAccessToken.do", //请求服务器后台获取accessToken    data: {  },    method: 'POST',    ...
  • 本文实例讲述了PHP实现接收二进制流转换成图片的方法。分享给大家供大家参考,具体如下: 这里实现php 接收二进制流转换成图片,所使用的图片类imageUpload.php如下: <?php /** * 图片类 * @version 1.0 * * PHP...
  • 本文自:https://www.cnblogs.com/jpfss/p/9518327.html 引用jar包: zxing的core包,下载路径可参考:http://download.csdn.net/detail/sxg0205/9461106   java代码: 引用包: import java.awt.image....
  • URL转二维码转二进制流图片
  • misc2-数据编码

    2021-10-21 18:33:00
    3.二进制转二维码(绘图) 1是一个黑点,0是一个白点,跑出来就是一个二维码的形状 4.二进制转16进制然后成图片(hex) 可以用在线转换网站,如果觉得太卡了就可以用它转换网站下面给的脚本自己跑一下。 二进制...
  • 十进制转二进制

    千次阅读 2019-08-31 00:00:56
    由于十进制存在整数和小数的情况,在转二进制时,一般是先计算整数部分,再计算小数部分,再加以合并。 二)十进制转二进制 整数位转换原理:十进制转二进制采用“除2取余,逆序排列”法。 例如:把十进制11...
  • 步骤:1 :通过接口获取token,为了避免在冲突,token最好存入redis中,即用即取,注意事项:获取到accessToken取出来是带双引号的,一定要代替掉"",不然返回的转化出来的二进制不对,这个地方坑了我好久,切记切记,还有就是...
  • 微信小程序二维码返回的二进制内容,是一个byte[] 所以直接用byte[]接收即可,然后写入文件中: req – 请求的参数json字符串 byte[] bytes = new RestTemplate().postForObject(二维码接口url + accessToken, req, ...
  • 巧用Python的Qrcode库生成二维码大全

    千次阅读 2019-08-10 22:30:36
    为 (n-1)*4+21,每个码元模块存储一个二进制0或者1。 黑色模块 代表二进制 “1” , 白色模块 代表二进制 “0” ,例如 version1 表示每一行有21个码元模块。 格式信息 存储容错级别L(7%),M(15%),Q(25%),R...
  • 因为,项目需要支持vs2010的cpp提取二维码二进制数据,原本zbar和zxing都会默认进行字符集编码转换(zxing默认utf-8),导致部分0x80等二进制数据被强制编码转换,而导致无法正确识别。现通过基于zxing源码修改默认...
  • 二维码在本地可以正常的在jsp上显示,部署到服务器上,展示出来的却是二进制文件 我的思路是这样的 我刚开始觉得是二维码图片生成有问题,随后我放弃了生成二维码,随便选择了一个JPG传到前端显示,结 果还是...
  • 一、实现原理:将网址看做字符串后用二进制转化成0与1来表示,在用0表示黑色,1表示白色,再在绘图界面上将每一个黑白像素点扩大成小矩形绘制出来,得到上述图片。 二、代码 1、将网址转化为2位二进制存进数组中 ...
  • 10进制、36进制转换演示 简单的C#打印控制 代码均做详细注释,适合初学者学习并应用在自己的项目中,内含免费可用的条码控件,可运行DEBUG\TEST_APP.EXE观看演示,控件库也在DEBUG文件夹内,控件库版权归原作者所有...
  • public String qrCodeInfo(String contents) throws Exception {... //二进制 data:image/jpg;base64, } com.google.zxing javase ${com.google.zxing.version} cn.hutool hutool-all 5.0.6
  • Python实现十进制和二进制、八进制、十六进制的相互转换1. 前言2. 实现思想2.1 十进制转换为其他进制2.2 其他进制转换为十进制3. 参考资料 1. 前言 此文方便后期的复习,如果有问题,欢迎批评指正。 2. 实现思想 2.1...
  • <Button type="danger" style={{float:"right",background:"rgba(247,136,2,1)",color:"#fff",border:"none",marginLeft:"20px"}} icon="upload" onClick={()=>this.Downloader()}>...
  • 但是今天发现jquery的ajax不支持二进制,只能搞纯文本 于是百度之后手动实现这一功能 function getBinary(url, args, success) { var xmlhttp = new XMLHttpRequest(); var data = eval(args); var i = ...
  • canvas--二进制转换问题

    千次阅读 2018-06-05 20:22:58
    var img = new Image(); img.src = canvas.... //转换为图片形式 打印出二进制数据rotateimg= convertBase64UrlToBlob(img.src); //打印Bob对象 可用于图片上传function convertBase64UrlToBlob(urlData){ ...
  • 字符串形式的二维码转换为二维码图片-附件资源
  • 听说99%的同学都来这里充电吖 本系列为线下学员学习笔记整理分享,如有想要报名参加线下培训,可以点击以下超链接文章了解,购买开发板可以到叁...本篇文章,记录BCD转二进制二进制转BCD的原理,及verilog...
  • 在数字电路中数据都是用二进制的形式存储,要想显示就需要进行转换,对于一个两位的数值,对10取除可以得到其十位的数值,对10取余可以得到个位的数值。对于Verilog来说它的标准是支持除法和取余运算的,综合器也会...
  • 为了使用二维码传输文件,上一篇文章已经实现了获取信息存入二维码并打印。由于单个二维码存储的信息量是有限的,而且文件一般也比较大,所以必须把文件先进行拆分,拆分后一块一块信息存入多张二维码中,最后通过...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 16,255
精华内容 6,502
关键字:

二进制转二维码