https://app.hackthebox.com/challenges/816

Description

A cursed spell has altered a scroll, changing key letters. Replace the haunted letter with a random one to break the curse!

Replacement

TODO

Example

Input

Test me

e

K

Output

TKst mK

Exploitation

input_string = input()
char_to_replace = input()
replacement_char = input()
modified_string = input_string.replace(char_to_replace, replacement_char)
print(modified_string)

Summary

Replacement: reduce the custom rules to a scriptable check and use the smallest reliable path to the flag.