Rating:

## Rev/Open Sesame

Whisper the phrase, unveil with 'Open Sesame

Attachment: https://staticbckdr.infoseciitr.in/opensesame.zip

![image](https://github.com/zer00d4y/writeups/assets/128820441/d6ef115f-692d-4d9c-8d0a-6f41bdf3a845)

![image](https://github.com/zer00d4y/writeups/assets/128820441/32bc7936-ad23-417d-ad71-6e357336fd56)

class Main{
public static void main(String[] args){
String str2 = "U|]rURuoU^PoR_FDMo@X]uBUg";
StringBuilder sb = new StringBuilder();
String str = "40";
for (int i = 0; i < str2.length(); i++) {
sb.append((char) (str2.charAt(i) ^ str.charAt(i % str.length())));
}
System.out.println(sb.toString());
}
}

FLag: `flag{aLiBabA_and_forty_thiEveS}`

Original writeup (https://github.com/zer00d4y/writeups/blob/main/CTF%20events/BackdoorCTF/BackdoorCTF_2023.md).