blob: 838dc6d3630ae120829174159de200cfdf4f003f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Overview
* Q1: An Art of Computer Programming
* Q2: The False Awakens
* Q3:
* La
* ra
* ve
* l
* Q4: Quadrilingual PHPer
* Q5: Are You a Coffee Pot?
Note that they may not work on Windows.
# License
MIT
# Acknowledgement
Q5 is inspired by https://github.com/tric/trick2022/tree/master/02-tompng by tompng.
# Do you want more hints?
*!!SPOILER!!*
## Q1
<details>
<summary>What is "password?"</summary>
It starts with `i` and ends with `g`. PHPerKaigi system is case-insensitive but the Q1 program does *not* accept uppercase.
</details>
## Q2
<details>
<summary>Which "false" should I replace?</summary>
Write a small script for brute <del>false</del> force.
</details>
## Q3
<details>
<summary>It does not work for me.</summary>
The Q3 program highly depends on PHP internals. If it does not work, read the source code to find the token.
</details>
## Q4
<details>
<summary>How can I get correct keys?</summary>
First, install PHP, Ruby, Perl and Bash interpreter. Second, run the Q4 program on each interpreter.
</details>
## Q5
<details>
<summary>Where is token?</summary>
Look at the bottom of the teapot.
</details>
<details>
<summary>Too slow!</summary>
Enable fast mode by changing `FAST_MODE` constant.
</details>
|