Inspired by this challenge, which got closed. This is meant to be an easier, but no less interesting version of that.

This is the robbers thread of a challenge. For the cops thread, see here.

Cops will provide a program/function and a flag. Robbers will guess a password. When the password is given to the cop's program, the flag should be outputted.

## Robber rules

• When the cop's program is given the password you guess, it should output the flag.
• You are allowed to take advantage of ambiguous descriptions of the flag by cops.

Cop answers will be safe if they haven't been cracked for two weeks.

Cop:

## Scala, 4 bytes

x=>x


Flag: Yay, you cracked it! (an object of type String is returned from the lambda above)

Try it online!

Robber:

Password: the string "Yay, you cracked it!"

Try it online!

• Chat for robbers to discuss answers. – user Oct 22 '20 at 18:40

# Dorian, dotcomma

[49375, -1]


Of course, the cryptic response in the comments turned out to mean "no, it's not a string". I think it's a big problem with the answer if "it would become too easy" if you told me what IO format I must use.

I noticed that the code seems to ignore all the input except for the first number until it finds a negative number. Then I noticed that it subtracts something from 49375. I don't know how does the code work, though.

Try it online!

• Good job. The intended solution is only the number 49375. I had the idea to use the decimal value of 0xC0DE, but somehow messed things up and ended one number to high. I will write a detailed solution when I'm back from my vacation next Monday. – Dorian Nov 2 '20 at 8:29

@print
@int.__invert__
@len
@ascii
@ascii
@ascii
@ascii
@ascii
@ascii
@ascii
@ascii
@ascii
@ascii
@str.lstrip
@min
@ascii
class a:
pass


Try it online!

I used a brute force program to find the solution, although in the end it ends up being quite nice: Try it online!

Initially I found one with __sizeof__, but it doesn't work on TIO (being implementation-specific).

I had to made quite a few tweaks for it to fork (disable open and id, as the former will read from stdin with list(open(1)) or something similar)

It's also possible to get import inspect and quite a few other modules, but I didn't consider that possibility.

In retrospect, repr would work as well, but ascii comes before repr in my generator program.

• My intended solution used __sizeof__ and there was @print @len @str class aaa ... aaa:pass, but this works as well :) – ovs Feb 17 at 10:52
• @ovs Good point, I didn't think about changing the class name. tio.run/##7dNBDsIgEIXhPadoV0BjiEl3VQwHMSE4HWNNHQhgozY9OzZew36Lf/… – user202729 Feb 17 at 10:56

# pxeger, Python 3.8

• A = eval
• B = print("the_flag")

Try it online!

Output: the_flag

• Nice! I was thinking about using the thing where print is considered the same as print in other Unicode letters – user Oct 22 '20 at 20:42
• This was not my intended solution and I realised it as I was sleeping! But well done! – pxeger Oct 23 '20 at 5:38

Password: fine

Try it online!

• Nice! How about trying to crack my second vault? I tried to make this one a tad harder :) – Aryan Beezadhur Oct 23 '20 at 18:43

# Python 3, ovs

[x for x in ().__class__.__base__.__subclasses__() if x.__name__ == "Quitter"][0]("a",True)()


Try it online!

# SuperPizz, BrainF***

Password: ejaH`

Try it online!

Python script used