29
\$\begingroup\$

Cops challenge

The Robbers' Challenge

  1. Find a vulnerable answer. That is, an answer which hasn't been cracked yet and which isn't safe yet either.
  2. Crack it by figuring out its language. That is, find any language in which the given program is a valid program (subject to the rules outlined in the Cops' Challenge above). It doesn't matter if this is the language the cop intended.

    Once you have found a working language, post an answer to the Robbers' thread and comment below the Cop's answer. If you don't have enough reputation to comment, say this in your answer and someone will comment for you.

The output format must be the same as the cop's intended solution in order to constitute a valid crack.

Every user only gets one guess per answer. This includes telling other people the answer, or hints towards your guesses. You must not crack your own answer (obviously...).

The user who cracked the largest number of answers wins the robbers' challenge. Ties are broken by the sum of bytes of cracked answers (more is better).

Good luck Robbers!

\$\endgroup\$
  • 23
    \$\begingroup\$ Important: Please be nice to TIO and don't just (write a script or manually) test all of the languages there. TIO is very busy already. \$\endgroup\$ – user202729 Feb 7 '18 at 11:37
  • 12
    \$\begingroup\$ I feel like the whole Cops/Robbers thing is backwards. Shouldn't the Robbers be hiding their programs and Cops be trying to bust them? \$\endgroup\$ – Jo King Feb 8 '18 at 6:29
  • 3
    \$\begingroup\$ @JoKing ... just PPCG terminology. There is no reason to be incompatible, and there is absolutely no reason to change all the past cops-and-robbers ---questions--- challenges. \$\endgroup\$ – user202729 Feb 8 '18 at 10:19

126 Answers 126

4
\$\begingroup\$

23, posted by jimmy23013

22,1,16,10,10,-1,1,10,2,12,27,0,211
\$\endgroup\$
1
\$\begingroup\$

dc, posted by moonheart08

0[1+pd100>a]salax

Try it online!

\$\endgroup\$
3
\$\begingroup\$

Commentator, posted by caird coinheringaahing

print "H e l l o, W o r l d!", end = 10
for i in range( 1 0 0 ):
        print i
;{-Haskell ?-}
#Python?
(({- Execute some# brainflak here#}))
;-}Perl: bvgk,l/;'juhedwsed/*{-:
05AB1E: 12DD/* Way to convert to float, nice :)

Try it online!

\$\endgroup\$
3
\$\begingroup\$

xEec, posted by totallyhuman

h#1 h#0 >a p o# h#10 o$ p h#1 ma t h#101 ms jna

Try it online!

\$\endgroup\$
1
\$\begingroup\$

Deadfish~, posted by Mr. Xcoder

{{iow}}

Try it online!

\$\endgroup\$
6
\$\begingroup\$

Milky Way, posted by tfbninja

print-ZL¡;

Try it online!

The actual code is ZL¡ which works as following:

Z      push 100 to stack
 L     inclusive range
  ¡    output ToS and exit
\$\endgroup\$
  • \$\begingroup\$ Good job! Did you brute force TIO? \$\endgroup\$ – FantaC Feb 6 '18 at 21:28
  • 1
    \$\begingroup\$ @tfbninja No, I've actually used the language before \$\endgroup\$ – ovs Feb 6 '18 at 21:30
  • \$\begingroup\$ Did the upside down excl. give it away? I didn't see another way to print out. \$\endgroup\$ – FantaC Feb 20 '18 at 19:43
  • \$\begingroup\$ @tfbninja Yes that was what reminded me of the language. ! outputs without terminating the program. Try it online!. The command is missing in the command list, but is used a lot in the examples. \$\endgroup\$ – ovs Feb 20 '18 at 19:53
  • \$\begingroup\$ I see, thanks for the tip \$\endgroup\$ – FantaC Feb 20 '18 at 19:54
5
\$\begingroup\$

Befunge-98, posted by ovs

"0" < q <= s' * 1e' * g * 1061 * 19 * 77

Try it online!

\$\endgroup\$
3
\$\begingroup\$

brainfuck, posted by internet_user

c="[,]"[1];f=[eval("str.format")][0];p="1+1"
late=eval(p)+sum([((-1)>1)+0+(0>1)+0+1<<4]);ml=160>>2
ml*=([(7-1)<7+1+1+3*(9>1)]<[(5-1>1+1+1>2)+2+1<<2]);xn=42>>1;ss=sum(eval(f("[10-5{}(4<7)+7+8{}(6>8)]>>>["[:24],c,c)))#]<<<
lol=(7<42)+late+ml+xn+ss#[
m=-9;g=(str((2>m)+x) for x in range(lol));print("\n".join(g));1 < 2 or e#]

Try it online!

\$\endgroup\$
1
\$\begingroup\$

Java, posted by wvdz

\u0070\u0075\u0062\u006c\u0069\u0063\u0020\u0063\u006c\u0061\u0073\u0073\u0020\u0058\u0020\u007b\u0070\u0075\u0062\u006c\u0069\u0063\u0020\u0073\u0074\u0061\u0074\u0069\u0063\u0020\u0076\u006f\u0069\u0064\u0020\u006d\u0061\u0069\u006e\u0028\u0053\u0074\u0072\u0069\u006e\u0067\u005b\u005d\u0061\u0029\u007b\u0066\u006f\u0072\u0028\u0069\u006e\u0074\u0020\u0069\u003d\u0031\u003b\u0069\u003c\u003d\u0031\u0030\u0030\u003b\u0069\u002b\u002b\u0029\u007b\u0053\u0079\u0073\u0074\u0065\u006d\u002e\u006f\u0075\u0074\u002e\u0070\u0072\u0069\u006e\u0074\u006c\u006e\u0028\u0069\u0029\u003b\u007d\u007d\u007d 
\$\endgroup\$
  • \$\begingroup\$ dammit, was just working on writing this same answer \$\endgroup\$ – ETHproductions Feb 6 '18 at 23:06
1
\$\begingroup\$

Labyrinth, posted by Martin Ender

[##!]
[\X_]
@-99@

Try it online!

\$\endgroup\$
1
\$\begingroup\$

foo, posted by DLosc

@10+10*+10(10@1>+$i<$c10-1)+@0

Try it online!

\$\endgroup\$
5
\$\begingroup\$

Huginn, posted by Mr. Xcoder

main(){i=1;while(i<101){print("{} ".format(i));i+=1;}}

Try it online!

\$\endgroup\$
1
\$\begingroup\$

ELVM-IR, posted by MD XF


	.text
main:
	mov D, SP
	add D, -1
	store BP, D
	mov SP, D
	mov BP, SP
	.file 1 "-"
	.loc 1 2 0
	mov A, 1
	mov B, BP
	add B, 2
	store A, B
	.L0:
	mov B, BP
	add B, 2
	load A, B
	mov D, SP
	add D, -1
	store A, D
	mov SP, D
	mov A, 101
	mov B, A
	load A, SP
	add SP, 1
	lt A, B
	jeq .L3, A, 0
	jmp .L4
	.L3:
	jmp .L2
	.L4:
	mov B, BP
	add B, 2
	load A, B
	mov D, SP
	add D, -1
	store A, D
	mov SP, D
	putc A
	add SP, 1
	.L1:
	mov B, BP
	add B, 2
	load A, B
	mov D, SP
	add D, -1
	store A, D
	mov SP, D
	add A, 1
	mov B, BP
	add B, 2
	store A, B
	load A, SP
	add SP, 1
	jmp .L0
	.L2:
	exit

Try it online!

\$\endgroup\$
1
\$\begingroup\$

foo, posted by NoOneIsHere

(100+1$c)

Try it online!

\$\endgroup\$
2
\$\begingroup\$

Locksmith, posted by Conor O'Brien

import java.util.Random;
interface Main{
  public	static void  main(String[]args){
for(int	i  	=0; i  <		90*  11; i ++)
System. out.println(i);
f(   	 	7);
g();
}
public static 	int f(int n){System.out.println(n);if(n<=0)return+n&3;
else return f(	n/7)*6	+7*f(n-5)+7;
}
public static void g(){
Random k=new Random(45);
String j="YmlULmxZXERFZmNvbg==";
int m;
for(int i=m=0;i<121;i++){
m+=j.charAt(0)+j.	charAt(i&1)+k.nextInt();
}
System.out.println(k.nextInt((int)Math.pow(7201,19))^6^m);
}
}

Try it online!

\$\endgroup\$
4
\$\begingroup\$

Fortress, posted by Zachary

export Executable
run(args) = do
for i<-seq(1#100) do
println(i)
end
end
\$\endgroup\$
4
\$\begingroup\$

???, posted by Unihedron

......";........-,'";'";.;;.---,'"....'"-........;,'".........'";.!--!;,'".........'";;;.--,,,,,,,,,,;..........";!--.!--!;;;,'"--,";,,,,,,,,!,!!

Try it online!

\$\endgroup\$
  • 1
    \$\begingroup\$ HA! A language called ??? how ironic that he told you the language in the cops thread initially. \$\endgroup\$ – Magic Octopus Urn Feb 8 '18 at 15:13
5
\$\begingroup\$

Golunar, Posted by Esolanging Fruit

814918243305927192311963944207

Translates to the brainfuck program:

++++++++++[->++++++++++<]>[->+.<]
\$\endgroup\$
  • \$\begingroup\$ Do you have a Golunar interpreter handy? \$\endgroup\$ – MD XF Feb 13 '18 at 5:19
  • \$\begingroup\$ @MDXF, no interpreter, but a translator from a previous PPCG question \$\endgroup\$ – Jo King Feb 13 '18 at 5:35
  • \$\begingroup\$ If you want to check this answer, I've already done so, and it's not Golunar (and I don't think Esolanging Fruit would use the same language twice) \$\endgroup\$ – Jo King Feb 13 '18 at 5:52
  • \$\begingroup\$ Thanks for the link but I guess I won't need it based on ^ :P \$\endgroup\$ – MD XF Feb 13 '18 at 5:53
7
\$\begingroup\$

COM file, posted by NieDzejkob

huCX5DBP^h~0_GG1<h32X542P[18F18h42X%AAP[h!.X%OOS`M a@<euws
  • Download DOSBox (if you are not working on 32 bit windows / dos)
  • save the content as 1.com
  • execute it

btw, I know nothing about COM file. The code looks similar to EICAR-STANDARD-ANTIVIRUS-TEST-FILE for me. So I just tried to download DOSBox and run it.

\$\endgroup\$
5
\$\begingroup\$

Attache, posted by Conor O'Brien

??MultivariateHypergeometricDistribution
Map[Print,1..100]

Try it online!

\$\endgroup\$
3
\$\begingroup\$

brainfuck, posted by user71546

// Calculate the digit sum of 2^64
var sum = 1 + 8 + 4 + 4 + 6 + 7 + 4 + 4 + 0 + 7 + 3;
var b = " "[2 > 1 && (sum = sum + 7 + 0 + 9 + 5 + 5 + 1 + 6 + 1 + 6) + 0 < -88];
var c = "a" > [2 < +3 ? console.log(sum) > -1 : 0];

Try it online!

\$\endgroup\$
4
\$\begingroup\$

Hexagony, posted by Adyrem

i=100 while(i>0){p(100-i+"d")!}i=%<>--1;if(_@==0){_@=-100}end; 

Try it online!

\$\endgroup\$
5
\$\begingroup\$

Unbalanced, posted by Wheat Wizard

I can't write any program in this language, just that there are a lot of unbalanced parentheses. Which reminds me of this language.

Try it online!

The language seems to be not on TIO, so I just run the Haskell interpreter.

\$\endgroup\$
12
\$\begingroup\$

Element, posted by NoOneIsHere

1 100'[2:`1+a`]

Try it online!

Don't have enough rep to comment.

\$\endgroup\$
4
\$\begingroup\$

MiLambda, posted by Esolanging Fruit

v
E
Ξ
ς
v<
E`A:*[>+.<]
υ^
ε
Ξ
ς
v<
Δ
Θ
>σλ

Online interpreter

I just remembered this language exists, so I searched up for its name. The [>+.<] part made it look an awful lot like brainfuck.

\$\endgroup\$
  • \$\begingroup\$ I was relying on no one knowing what this language was... \$\endgroup\$ – Esolanging Fruit Feb 7 '18 at 15:22
  • 4
    \$\begingroup\$ @EsolangingFruit Reminder: You're on PPCG. \$\endgroup\$ – totallyhuman Feb 7 '18 at 15:52
17
\$\begingroup\$

Game save of the Powder Toy, posted by moonheart08

xxd dump:

00000000: 4f50 5331 5c04 9960 961c 0c00 425a 6839  OPS1\..`....BZh9
00000010: 3141 5926 5359 b855 1468 00c2 eaff f6ff  1AY&SY.U.h......
00000020: 5446 0c4a 01ef 403f 2f5f 74bf f7df f040  TF.J..@?/_t....@
00000030: 0203 0000 4050 8000 1002 0840 01bc 16a5  ....@P.....@....
00000040: 61a2 6909 18c1 4c64 4f22 7a83 4030 08c9  a.i...LdO"z.@0..
00000050: a323 6932 0c8f 536a 0d0a 34f4 a635 31aa  .#i2..Sj..4..51.
00000060: 7a4d 0c8f 5000 0006 4681 ea00 3469 e90e  zM..P...F...4i..
00000070: 1a69 8219 0d34 c8c9 8403 4d00 6134 6993  .i...4....M.a4i.
00000080: 0008 1a09 1453 4ca0 311a 7a9a 68d3 468d  .....SL.1.z.h.F.
00000090: 0003 d4c8 000d 000d 0f98 debe 75b8 487f  ............u.H.
000000a0: 2256 900d a121 2107 bb12 1208 4409 e89e  "V...!!.....D...
000000b0: ddeb 1f17 e331 5ead 7cec db16 65d5 6090  .....1^.|...e.`.
000000c0: 2422 b0ca cc2a 5585 c9c9 dc44 4ac0 f14d  $"...*U....DJ..M
000000d0: 6076 5a40 8484 536a 953b b44b 190a 90f0  `vZ@..Sj.;.K....
000000e0: 8a20 310e 95ad ca24 2d4b 0097 1a69 a919  . 1....$-K...i..
000000f0: 8d5b 0010 0242 1c59 8981 409a ec10 9024  .[...B.Y..@....$    
00000100: 2369 e1d8 a222 53dc 8231 dc4f a891 4b0b  #i..."S..1.O..K.
00000110: cf61 20d8 c1b4 4269 e25b 072d 5fb4 f1c4  .a ...Bi.[.-_...
00000120: a66b 62c8 069c ebc6 0225 9900 9852 21e9  .kb......%...R!.
00000130: d2e3 63d8 069a 7a69 124e eafc 3c5d 4028  ..c...zi.N..<]@(
00000140: dd15 6f81 0d2b 8007 816d f581 36f9 e58f  ..o..+...m..6...
00000150: 8cec 30e0 0378 40f9 b52c 4a17 b999 808d  ..0..x@..,J.....
00000160: d583 106f fd5e aaf5 ea8f a01b f5fc 9be5  ...o.^..........
00000170: 8e40 e05d 3a0a 2470 964d ef31 4c17 45da  .@.]:.$p.M.1L.E.
00000180: 3242 6692 251a aacc 6523 220c 73a7 7e3b  2Bf.%...e#".s.~;
00000190: cecf 635d 3cb6 08a0 7930 9566 0833 1d90  ..c]<...y0.f.3..
000001a0: 993a 5b8a e548 b34c 3fa8 0cbe 84aa d23e  .:[..H.L?......>
000001b0: 0129 c73b 1859 afa8 a984 990d cb0c db77  .).;.Y.........w
000001c0: 8fa8 df2f eda2 b779 72a7 4333 9382 0794  .../...yr.C3....
000001d0: 1f14 2340 c199 344a 48e1 6214 85a8 82a9  ..#@..4JH.b.....
000001e0: 5f6a 5a55 6993 6395 4350 41a2 396f 3613  _jZUi.c.CPA.9o6.
000001f0: 20f1 4d52 d289 b60f 2ea1 0040 8009 08ea   .MR.......@....
00000200: e782 4084 847f 8bb9 229c 2848 5c2a 8a34  ..@.....".(H\*.4
00000210: 00            
  • First, de-compress it with 7zip
  • Then, run strings on it, you will find some strings like "gravityEnable", "aheat_enable"
  • Google these magic words, and you will got this game's source code page
\$\endgroup\$
  • 4
    \$\begingroup\$ Well done! To note, The Powder Toy actually counts as a language. It is capable of everything that specifies a language on this site (Yes, someone built a computer in it), and is also within the rules of this cop&robbers (It has a wikipedia page, in the form of a redirect to falling sand games) It was fun to come up with an answer like this, and i congratulate @tsh on figuring it out. \$\endgroup\$ – moonheart08 Feb 7 '18 at 13:52
5
\$\begingroup\$

Hexagony, posted by boboquack

#define ss "/}O'=){/'HI}-){"
+1<2+3
"}@"$>!'d'/1
> ss ss {<}
1/1=2-1;

Try it online!

\$\endgroup\$
2
\$\begingroup\$

APL (Dyalog Unicode), posted by Uriel

+\100\1

Try it online!

\$\endgroup\$
2
\$\begingroup\$

MATL, posted by Stewie Griffin

False T
For nnz(100) T+1 
'cout <<' T
)o:
bux bux Q
hu

Try it online!

\$\endgroup\$
  • 1
    \$\begingroup\$ I'm, curious... Do you know how it works? \$\endgroup\$ – Stewie Griffin Feb 7 '18 at 19:42
  • \$\begingroup\$ @StewieGriffin I'm not really familiar with MATL, but parts of the code, i.e. nnz and T, reminded me of MATL programs I've seen on PPCG. \$\endgroup\$ – ovs Feb 8 '18 at 10:23
  • 1
    \$\begingroup\$ I guess nnz has been in explanations. z alone is equivalent to nnz(x) in octave. \$\endgroup\$ – Stewie Griffin Feb 8 '18 at 10:36
1
\$\begingroup\$

Cubically, posted by MD XF

Try it online!

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.