MCPcopy Create free account
hub / github.com/qilingframework/qiling / solve

Function solve

tests/test_windows_stdio.py:37–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36
37def solve():
38 # BJWXB_CTF{C5307D46-E70E-4038-B6F9-8C3F698B7C53}
39 prefix = list("BJWXB_CTF{C5307D46-E70E-4038-B6F9-8C3F698B7C")
40 flag = list("\x00" * 100)
41 base = get_count(prefix + flag)
42 i = 0
43
44 try:
45 for i in range(len(flag)):
46 for j in "}5353535353":
47 flag[i] = j
48 data = get_count(prefix + flag)
49 if data > base:
50 base = data
51 print("\n\n\n>>> FLAG: " + "".join(prefix + flag) + "\n\n\n")
52 break
53 if flag[i] == "}":
54 break
55 print("SOLVED!!!")
56 except KeyboardInterrupt:
57 print("STOP: KeyboardInterrupt")
58
59
60if __name__ == "__main__":

Callers 2

Calls 1

get_countFunction · 0.85

Tested by

no test coverage detected