Skip to content

Commit

Permalink
add new tables style to old writeups
Browse files Browse the repository at this point in the history
  • Loading branch information
beryxz committed Dec 12, 2023
1 parent dfeeceb commit 23a70de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions _posts/2019-03-04-pwnable-kr-1-4.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ In Unix systems FDs are incremental, and the first three are defined as follows:
| 0 | STDIN |
| 1 | STDOUT |
| 2 | STDERR |
{:.inner-borders}

Since `fd.c` shows that it'll be reading from an already open FD of its own process, a simple solution would be to pipe something into it: using the already available STDIN FD can be a good choice, but there's a catch: `fd` processes the FD number to read as `atoi(argv[1]) - 0x1234`, so we need to account for that offset when specifying its 1st parameter.

Expand Down
3 changes: 3 additions & 0 deletions _posts/2019-04-20-AngstromCTF.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ GCLSGCLSGCLS...
| **C** | Sets register 3 to the value of register 1 |
| **L** | Outputs a character to the screen |
| **S** | Adds 1 to the register |
{:.inner-borders}

### (Bonus) Hacky way:

Expand All @@ -211,6 +212,7 @@ KGCLShxZYSZOZUSSSS
| **Y** | Sets the register to 0 |
| **O** | If register 1 does not equal register 2, goto the position at the position register |
| **U** | Adds 10 to the register |
{:.inner-borders}

### Right way:

Expand All @@ -225,6 +227,7 @@ GCLShyZYZOZUSSS
| Instruction | Description |
| ----------- | ----------------- |
| **y** | Clears register 2 |
{:.inner-borders}

🏁 _actf{esolangs_sure_are_fun!}_{: .spoiler}

Expand Down

0 comments on commit 23a70de

Please sign in to comment.