Conflict Crusher

Original Writeup on seall.dev
We need to combine two dictβs, when conflicting keys occur overwrite the value in the first dict with the one from the second. We are given them in strings.
String Dict input: {βaβ: 1, βbβ: 2, βcβ: 3}, {βbβ: 4, βdβ: 5}
Merged Output: {βaβ: 1, βbβ: 4, βcβ: 3, βdβ: 5}
# Input two dictionaries as strings
dict1_str = input()
dict2_str = input()
# Write your solution below and make sure to print the dictionary
from json import loads
d1 = loads(dict1_str.replace("'", "\""))
d2 = loads(dict2_str.replace("'", "\""))
dout = d1
for k in d2.keys():
dout[k] = d2[k]
print(dout)
Flag: HTB{n0w_1m_0ff1c4lly_4_c0nfl1ct_crunch3r_y4y!_4050aff36d539d4441180a9616746b56}
Related Writeups
Energy Crystals
The ancient Starry Spur has been recovered, but its energy matrix remains dormant. As Space Cowboy, your task is to awak ...
Exclusivity
Welcome back, Space Cowboy. The Minutemen have intercepted a corrupted data stream from the Frontier Board. Hidden withi ...
Weighted Starfield
The Frontier Starfield signals are destabilized by weighted anomalies. As Space Cowboy, your mission is to restore stabi ...