Skip to content

Commit

Permalink
chore: update leet table
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Oct 27, 2024
1 parent 30b3601 commit 652df44
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 138 deletions.
76 changes: 32 additions & 44 deletions docs/en/guide/features/dynamic-flag.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,55 +33,43 @@ In dynamic challenge's flag and attachment management page, the flag template wi
Leet String is a method of replacing characters in a string with numbers or symbols. For example, replacing `a` with `4`, `e` with `3`, and so on. GZCTF follows the following Leet String rules:

```txt
+-------------+---------------+-------------+---------------+
| Characters | Replaced with | Characters | Replaced with |
+-------------+---------------+-------------+---------------+
| A | Aa4 | B | Bb68 |
| C | Cc | D | Dd |
| E | Ee3 | F | Ff1 |
| G | Gg69 | H | Hh |
| I | Ii1l | J | Jj |
| K | Kk | L | Ll1I |
| M | Mm | N | Nn |
| O | Oo0 | P | Pp |
| Q | Qq9 | R | Rr |
| S | Ss5 | T | Tt7 |
| U | Uu | V | Vv |
| W | Ww | X | Xx |
| Y | Yy | Z | Zz2 |
| 0 | 0oO | 1 | 1lI |
| 2 | 2zZ | 3 | 3eE |
| 4 | 4aA | 5 | 5Ss |
| 6 | 6Gb | 7 | 7T |
| 8 | 8bB | 9 | 9g |
+-------------+---------------+-------------+---------------+
+-------------+---------------+-------------+---------------+-------------+---------------+
| Characters | Replaced with | Characters | Replaced with | Characters | Replaced with |
+-------------+---------------+-------------+---------------+-------------+---------------+
| A | Aa4 | B | Bb68 | C | Cc |
| D | Dd | E | Ee3 | F | Ff1 |
| G | Gg69 | H | Hh | I | Ii1l |
| J | Jj | K | Kk | L | Ll1I |
| M | Mm | N | Nn | O | Oo0 |
| P | Pp | Q | Qq9 | R | Rr |
| S | Ss5 | T | Tt7 | U | Uu |
| V | Vv | W | Ww | X | Xx |
| Y | Yy | Z | Zz2 | 0 | 0oO |
| 1 | 1lI | 2 | 2zZ | 3 | 3eE |
| 4 | 4aA | 5 | 5Ss | 6 | 6Gb |
| 7 | 7T | 8 | 8bB | 9 | 9g |
+-------------+---------------+-------------+---------------+-------------+---------------+
```

When enabling complex Leet strings, please pay attention to character injection issues. It follows the rules below, as there are more possibilities, the length required to reach the specified entropy will be shorter:

```txt
+-------------+----------------+-------------+----------------+
| Characters | Replaced with | Characters | Replaced with |
+-------------+----------------+-------------+----------------+
| A | Aa4@ | B | Bb68 |
| C | Cc( | D | Dd |
| E | Ee3 | F | Ff1 |
| G | Gg69 | H | Hh |
| I | Ii1l! | J | Jj |
| K | Kk | L | Ll1I! |
| M | Mm | N | Nn |
| O | Oo0# | P | Pp |
| Q | Qq9 | R | Rr |
| S | Ss5$ | T | Tt7 |
| U | Uu | V | Vv |
| W | Ww | X | Xx |
| Y | Yy | Z | Zz2? |
| 0 | 0oO# | 1 | 1lI |
| 2 | 2zZ? | 3 | 3eE |
| 4 | 4aA | 5 | 5Ss |
| 6 | 6Gb | 7 | 7T |
| 8 | 8B& | 9 | 9g |
+-------------+----------------+-------------+----------------+
+-------------+----------------+-------------+----------------+-------------+----------------+
| Characters | Replaced with | Characters | Replaced with | Characters | Replaced with |
+-------------+----------------+-------------+----------------+-------------+----------------+
| A | Aa4@ | B | Bb68 | C | Cc( |
| D | Dd | E | Ee3 | F | Ff1 |
| G | Gg69 | H | Hh | I | Ii1l! |
| J | Jj | K | Kk | L | Ll1I! |
| M | Mm | N | Nn | O | Oo0# |
| P | Pp | Q | Qq9 | R | Rr |
| S | Ss5$ | T | Tt7 | U | Uu |
| V | Vv | W | Ww | X | Xx |
| Y | Yy | Z | Zz2? | 0 | 0oO# |
| 1 | 1lI | 2 | 2zZ? | 3 | 3eE |
| 4 | 4aA | 5 | 5Ss | 6 | 6Gb |
| 7 | 7T | 8 | 8B& | 9 | 9g |
+-------------+----------------+-------------+----------------+-------------+----------------+
```

### Security
Expand Down
76 changes: 32 additions & 44 deletions docs/ja/guide/features/dynamic-flag.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,55 +33,43 @@ GZCTFには動的フラッグの配布をサポートする機能が組み込ま
リート文字列は、文字列中の文字を数字や記号に置き換える方法で、例えば`a``4`に、`e``3`に置き換えるなど、GZCTFでは以下のリート文字列のルールを採用しています:

```txt
+-------------+---------------+-------------+---------------+
| Characters | Replaced with | Characters | Replaced with |
+-------------+---------------+-------------+---------------+
| A | Aa4 | B | Bb68 |
| C | Cc | D | Dd |
| E | Ee3 | F | Ff1 |
| G | Gg69 | H | Hh |
| I | Ii1l | J | Jj |
| K | Kk | L | Ll1I |
| M | Mm | N | Nn |
| O | Oo0 | P | Pp |
| Q | Qq9 | R | Rr |
| S | Ss5 | T | Tt7 |
| U | Uu | V | Vv |
| W | Ww | X | Xx |
| Y | Yy | Z | Zz2 |
| 0 | 0oO | 1 | 1lI |
| 2 | 2zZ | 3 | 3eE |
| 4 | 4aA | 5 | 5Ss |
| 6 | 6Gb | 7 | 7T |
| 8 | 8bB | 9 | 9g |
+-------------+---------------+-------------+---------------+
+-------------+---------------+-------------+---------------+-------------+---------------+
| Characters | Replaced with | Characters | Replaced with | Characters | Replaced with |
+-------------+---------------+-------------+---------------+-------------+---------------+
| A | Aa4 | B | Bb68 | C | Cc |
| D | Dd | E | Ee3 | F | Ff1 |
| G | Gg69 | H | Hh | I | Ii1l |
| J | Jj | K | Kk | L | Ll1I |
| M | Mm | N | Nn | O | Oo0 |
| P | Pp | Q | Qq9 | R | Rr |
| S | Ss5 | T | Tt7 | U | Uu |
| V | Vv | W | Ww | X | Xx |
| Y | Yy | Z | Zz2 | 0 | 0oO |
| 1 | 1lI | 2 | 2zZ | 3 | 3eE |
| 4 | 4aA | 5 | 5Ss | 6 | 6Gb |
| 7 | 7T | 8 | 8bB | 9 | 9g |
+-------------+---------------+-------------+---------------+-------------+---------------+
```

启用複雑なLeet文字列の場合、文字の注入に注意してください。それは以下のルールに従います。可能性がより多いため、指定されたエントロピーに到達するために必要な長さが短くなります:

```txt
+-------------+----------------+-------------+----------------+
| Characters | Replaced with | Characters | Replaced with |
+-------------+----------------+-------------+----------------+
| A | Aa4@ | B | Bb68 |
| C | Cc( | D | Dd |
| E | Ee3 | F | Ff1 |
| G | Gg69 | H | Hh |
| I | Ii1l! | J | Jj |
| K | Kk | L | Ll1I! |
| M | Mm | N | Nn |
| O | Oo0# | P | Pp |
| Q | Qq9 | R | Rr |
| S | Ss5$ | T | Tt7 |
| U | Uu | V | Vv |
| W | Ww | X | Xx |
| Y | Yy | Z | Zz2? |
| 0 | 0oO# | 1 | 1lI |
| 2 | 2zZ? | 3 | 3eE |
| 4 | 4aA | 5 | 5Ss |
| 6 | 6Gb | 7 | 7T |
| 8 | 8B& | 9 | 9g |
+-------------+----------------+-------------+----------------+
+-------------+----------------+-------------+----------------+-------------+----------------+
| Characters | Replaced with | Characters | Replaced with | Characters | Replaced with |
+-------------+----------------+-------------+----------------+-------------+----------------+
| A | Aa4@ | B | Bb68 | C | Cc( |
| D | Dd | E | Ee3 | F | Ff1 |
| G | Gg69 | H | Hh | I | Ii1l! |
| J | Jj | K | Kk | L | Ll1I! |
| M | Mm | N | Nn | O | Oo0# |
| P | Pp | Q | Qq9 | R | Rr |
| S | Ss5$ | T | Tt7 | U | Uu |
| V | Vv | W | Ww | X | Xx |
| Y | Yy | Z | Zz2? | 0 | 0oO# |
| 1 | 1lI | 2 | 2zZ? | 3 | 3eE |
| 4 | 4aA | 5 | 5Ss | 6 | 6Gb |
| 7 | 7T | 8 | 8B& | 9 | 9g |
+-------------+----------------+-------------+----------------+-------------+----------------+
```

### セキュリティ
Expand Down
76 changes: 32 additions & 44 deletions docs/zh/guide/features/dynamic-flag.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,55 +33,43 @@ GZCTF 自带对于动态 flag 分发的支持,将会在容器启用时采用 `
Leet 字符串是一种将字符串中的字符替换为数字或符号的方法,例如将 `a` 替换为 `4`,将 `e` 替换为 `3` 等,GZCTF 采用的 Leet 字符串规则如下:

```txt
+-------------+---------------+-------------+---------------+
| Characters | Replaced with | Characters | Replaced with |
+-------------+---------------+-------------+---------------+
| A | Aa4 | B | Bb68 |
| C | Cc | D | Dd |
| E | Ee3 | F | Ff1 |
| G | Gg69 | H | Hh |
| I | Ii1l | J | Jj |
| K | Kk | L | Ll1I |
| M | Mm | N | Nn |
| O | Oo0 | P | Pp |
| Q | Qq9 | R | Rr |
| S | Ss5 | T | Tt7 |
| U | Uu | V | Vv |
| W | Ww | X | Xx |
| Y | Yy | Z | Zz2 |
| 0 | 0oO | 1 | 1lI |
| 2 | 2zZ | 3 | 3eE |
| 4 | 4aA | 5 | 5Ss |
| 6 | 6Gb | 7 | 7T |
| 8 | 8bB | 9 | 9g |
+-------------+---------------+-------------+---------------+
+-------------+---------------+-------------+---------------+-------------+---------------+
| Characters | Replaced with | Characters | Replaced with | Characters | Replaced with |
+-------------+---------------+-------------+---------------+-------------+---------------+
| A | Aa4 | B | Bb68 | C | Cc |
| D | Dd | E | Ee3 | F | Ff1 |
| G | Gg69 | H | Hh | I | Ii1l |
| J | Jj | K | Kk | L | Ll1I |
| M | Mm | N | Nn | O | Oo0 |
| P | Pp | Q | Qq9 | R | Rr |
| S | Ss5 | T | Tt7 | U | Uu |
| V | Vv | W | Ww | X | Xx |
| Y | Yy | Z | Zz2 | 0 | 0oO |
| 1 | 1lI | 2 | 2zZ | 3 | 3eE |
| 4 | 4aA | 5 | 5Ss | 6 | 6Gb |
| 7 | 7T | 8 | 8bB | 9 | 9g |
+-------------+---------------+-------------+---------------+-------------+---------------+
```

启用复杂 Leet 字符串时,请注意字符注入问题,它采用的规则如下,由于可能性更多,达到指定的熵所需的长度会更短:

```txt
+-------------+----------------+-------------+----------------+
| Characters | Replaced with | Characters | Replaced with |
+-------------+----------------+-------------+----------------+
| A | Aa4@ | B | Bb68 |
| C | Cc( | D | Dd |
| E | Ee3 | F | Ff1 |
| G | Gg69 | H | Hh |
| I | Ii1l! | J | Jj |
| K | Kk | L | Ll1I! |
| M | Mm | N | Nn |
| O | Oo0# | P | Pp |
| Q | Qq9 | R | Rr |
| S | Ss5$ | T | Tt7 |
| U | Uu | V | Vv |
| W | Ww | X | Xx |
| Y | Yy | Z | Zz2? |
| 0 | 0oO# | 1 | 1lI |
| 2 | 2zZ? | 3 | 3eE |
| 4 | 4aA | 5 | 5Ss |
| 6 | 6Gb | 7 | 7T |
| 8 | 8B& | 9 | 9g |
+-------------+----------------+-------------+----------------+
+-------------+----------------+-------------+----------------+-------------+----------------+
| Characters | Replaced with | Characters | Replaced with | Characters | Replaced with |
+-------------+----------------+-------------+----------------+-------------+----------------+
| A | Aa4@ | B | Bb68 | C | Cc( |
| D | Dd | E | Ee3 | F | Ff1 |
| G | Gg69 | H | Hh | I | Ii1l! |
| J | Jj | K | Kk | L | Ll1I! |
| M | Mm | N | Nn | O | Oo0# |
| P | Pp | Q | Qq9 | R | Rr |
| S | Ss5$ | T | Tt7 | U | Uu |
| V | Vv | W | Ww | X | Xx |
| Y | Yy | Z | Zz2? | 0 | 0oO# |
| 1 | 1lI | 2 | 2zZ? | 3 | 3eE |
| 4 | 4aA | 5 | 5Ss | 6 | 6Gb |
| 7 | 7T | 8 | 8B& | 9 | 9g |
+-------------+----------------+-------------+----------------+-------------+----------------+
```

### 安全性
Expand Down
Loading

0 comments on commit 652df44

Please sign in to comment.