post20190428进度

20190428进度

练习了六个python编程题目,继续读python核心编程

Pkcrake

利用advanced zip password recovered 中plain-text模式,

Imgur

在解出的Encrypted.zip文件中secrect.txt即得flag Imgur

Babybase

利用request和 base 对txt文件进行解码,因为不确定为base64或base32或16 ,利用脚本:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import base64
import requests

def download(url):
return requests.get(url).text

steps = []
url = "https://oj.blue-whale.me/files/static/uploads/bbb45d3f0b5da971903660c57ac8780f/base.txt"

print "[+] Downloading encrypted file..."
p = download(url)
n = ""

while True:
# Base16
try:
print "[?] using base16 deocde"
n = base64.b16decode(p)
print "[+] %s" % (n)
steps.append(16)
p = n
continue
except:
pass
# Base32
try:
print "[?] using base32 deocde"
n = base64.b32decode(p)
print "[+] %s" % (n)
steps.append(32)
p = n
continue
except:
pass
# Base64
try:
print "[?] using base64 deocde"
n = base64.b64decode(p)
print "[+] %s" % (n)
steps.append(64)
p = n
continue
except:
pass
break

print "[+] flag found : %s" % (n)
print "[+] steps : %s" % (steps)

解得flag Imgur