PythonChallenge 挑战之路 Level-18
来源:互联网 发布:hive sql 进制转换 编辑:程序博客网 时间:2024/06/07 02:44
这一关的提示就是:
<!-- it is more obvious that what you might think -->而这两幅图显然只有亮度有区别,一开始联想到是鸭子,所以尝试用darkness去替换,不对,尝试用brightness,对了
然后按照提示,下载deltas.gz
看来下一步就是处理这个压缩文件了。稍微研究了一下这个文件,发现是类似一开始图片的两片数据。那么应该就是把数据进行分割。
import gzip,difflibff = gzip.open('deltas.gz','r')deltas = ff.read()ff.close()deltas = deltas.splitlines()left,right = [],[]for row in deltas: left.append(row[:53]) right.append(row[56:])diff = list(difflib.ndiff(left,right))png = ['','','']for row in diff: bytes = [chr(int(byte,16)) for byte in row[2:].split()] if row[0]=='-': png[0]+=''.join(bytes) elif row[0]=='+': png[1]+=''.join(bytes) elif row[0]==' ': png[2]+=''.join(bytes)for i in range(3): open('out18_%d.png' %i,'wb').write(png[i])答案是:
所以用hex/bin.html替换网页,butter,fly作为口令,就可以过关了
- PythonChallenge 挑战之路 Level-18
- PythonChallenge 挑战之路 Level-0
- PythonChallenge 挑战之路 Level-1
- PythonChallenge 挑战之路 Level-2
- PythonChallenge 挑战之路 Level-3
- PythonChallenge 挑战之路 Level-4
- PythonChallenge 挑战之路 Level-5
- PythonChallenge 挑战之路 Level-6
- PythonChallenge 挑战之路 Level-7
- PythonChallenge 挑战之路 Level-8
- PythonChallenge 挑战之路 Level-9
- PythonChallenge 挑战之路 Level-10
- PythonChallenge 挑战之路 Level-11
- PythonChallenge 挑战之路 Level-12
- PythonChallenge 挑战之路 Level-13
- PythonChallenge 挑战之路 Level-14
- PythonChallenge 挑战之路 Level-15
- PythonChallenge 挑战之路 Level-16
- 关于VMWARE虚拟机安装GHOST版XP后不能硬盘启动问题
- MFC 设置启动画面
- oracle检查点checkpoint信息
- HttpClient的3种超时
- HDU1077---Catching Fish HDU(85)
- PythonChallenge 挑战之路 Level-18
- MDK4.71A等新版中调试STM32F103等问题解决方法
- [LeetCode] Length of Last Word
- Delphi7 编程环境 技巧记录
- 淘宝详情页推广告定投功能 优化关联推荐
- jQuery动画效果笔记
- java.lang.RuntimeException: Canvas: trying to use a recycled bitmap
- Namespace 介绍
- UVa:10034 Freckles