data2=data2.decode() lists=data2.split() lists=map(int,lists) data3=''.join(chr(num)for num in lists) s.send(data3.encode())
x23
和前几题一样,只不过变成了5个像素和多了转ascii码的步骤
import base64 from io import BytesIO from PIL import Image
data2=base64.b64decode(data2) Bimage=Image.open(BytesIO(data2)) data3=''.join(str(chr(Bimage.getdata()[i][-1]))for i in range(5)) print(data3) s.send(data3.encode())
import requests data2=data2.decode() response=requests.get(data2) content=response.text lines=content.splitlines() for line in lines: if 'proxy' in line: content=line break data3=content.split(':')[2] print(data3) s.send(data3.encode())
hash,string=data2.decode().split() permutations=itertools.permutations(string) for perm in permutations: perm_str=''.join(perm) string_md5=hashlib.md5(perm_str.encode()).hexdigest() if string_md5==hash: break data3=perm_str s.send(data3.encode())