Share your repls and programming experiences

← Back to all posts
Calculator CTF
sugarfi (486)

This is a simple CTF I made. The goal is to find the flag, which is hidden in the file flag.txt. The program runs a vulnerable web app. This CTF will test your skills in basic JS and XSS. No cheating and looking at the source code!

Commentshotnewtop
AmazingMech2418 (463)

I think someone changed the flag to a rickroll video... By the way, if it actually saves in the repl, please read my question where the flag once was. I want to know if I'm looking in the right place. I already tried the .env file and I could only find the password and some system-based stuff (like file paths)...

roylatgnail (842)

goddammit. Rickrolled

Also, yay, figured it out

AmazingMech2418 (463)

@roylatgnail Wait, so the rickroll video was the flag? Oops. I accidentally deleted it because I thought the flag was actually something you could just copy and paste into the comments or something, not a rickroll video.

MrEconomical (2128)

incredible idea! however, I couldn't solve it because I just shut down the repl xd but I figured out how to

sugarfi (486)

@MrEconomical oof, i should probably add a try-catch or something

sugarfi (486)

@MrEconomical now you can't do that anymore

sugarfi (486)

@MrEconomical how? i wrapped it in a try-catch block.

sugarfi (486)

@MrEconomical that's cheating! ok. Did you manage to get the flag?

sugarfi (486)

@MrEconomical but it takes literally one line...

AmazingMech2418 (463)

@MrEconomical Wow! It really does work! By the way @sugarfi , I broke the repl... Don't worry though, I didn't change the contents of it besides the flag.txt file...