Python challeng 第17关挑战 eat?

Python challeng 第17关挑战

  • 16到17关隔得时间有点长,一是有点顾不上,二是这关实在是有点变态,主要是想不到,串联了以前好多关的隐藏东西,可能是以后解题都得看看之前的信息了。
  • 地址是: http://www.pythonchallenge.com/pc/return/romance.html
  • 照例 ‘huge’ 'file’进入
  • 源代码没有任何有用信息,只有个图片,主图为饼,附图……很多天后才发现,这就是第四章的图……
  • 饼 = cookie,于是收集一下第四关的cookie
import requestsurl = 'http://www.pythonchallenge.com/pc/def/linkedlist.php'response = requests.get(url)
cookies = requests.utils.dict_from_cookiejar(response.cookies)
print(cookies)

结果是: {‘info’: ‘you+should+have+followed+busynothing…’}

  • 第四关是我们依次循环nothing, 这里让我们循环busynothing,
import requestsurl = 'http://www.pythonchallenge.com/pc/def/linkedlist.php?busynothing='
t = '12345'
count = 0
for i in range(400):response = requests.get(url + t).textif response == '':breakt = response.split()[-1]count += 1print(count, t, sep=': ')

跑到114时出来:

114: 36383
115: 68548
116: 96070
117: 83051
118: it.
119: 72758
120: 71301
121: 55577

果然有异常,将117的83051写入url,显示 that’s it, 到此为止了,所以只收集117以前的信息。这里又卡住了很久,后来想想主题思想还是cookie,于是查看117之前的cookie,发现都有这样的

td_cookie=2284417052; info&


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部