编程语言
首页 > 编程语言> > pythonchallenge Level 13

pythonchallenge Level 13

作者:互联网

第13关地址:http://www.pythonchallenge.com/pc/return/disproportional.html

账号:huge 密码:file

提示:phone that evil

点击按键5,打开 http://www.pythonchallenge.com/pc/phonebook.php

 也就是给了一个电话本,需要打电话被evil

import xmlrpc.client

with xmlrpc.client.ServerProxy("http://www.pythonchallenge.com/pc/phonebook.php") as pb:
    print(pb.system.listMethods())
    print(pb.system.methodHelp('phone'))
    print(pb.phone("eval"))

得到提示:

['phone', 'system.listMethods', 'system.methodHelp', 'system.methodSignature', 'system.multicall', 'system.getCapabilities']
Returns the phone of a person
He is not the evil

那谁是evil?想起12关第四张图的返回信息 Bert is evil! 

http://www.pythonchallenge.com/pc/return/evil4.jpg

修改脚本,打电话给Bert

import xmlrpc.client

with xmlrpc.client.ServerProxy("http://www.pythonchallenge.com/pc/phonebook.php") as pb:
    print(pb.system.listMethods())
    print(pb.system.methodHelp('phone'))
    print(pb.phone("eval"))
    # 要用IE打开 http://www.pythonchallenge.com/pc/return/evil4.jpg
    # 得到提示 Bert is evil! go back!
    print(pb.phone("Bert"))

得到信息:555-ITALY

获得下一关地址:http://www.pythonchallenge.com/pc/return/italy.html

标签:13,pythonchallenge,Level,system,pb,phone,www,pc
来源: https://www.cnblogs.com/nicole-zhang/p/15557527.html