Skip to content

Commit a9d58ee

Browse files
H4rryp0tt3rmathiasbynens
authored andcommitted
Hack.lu CTF 2014: add yet another way to solve “Gunslinger Joe’s private Terminal”
Closes ctfs#202.
1 parent 095e4b6 commit a9d58ee

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • hack-lu-ctf-2014/gunslinger-joes-private-terminal

‎hack-lu-ctf-2014/gunslinger-joes-private-terminal/README.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,15 @@ It’s still an error, but at least it delivers.
139139
140140
### Alternate solution #2
141141
142+
Encode the file name `FLAG` in octal and pass it as an argument to `.`:
143+
144+
```bash
145+
. $'\106\114\101\107'
146+
./FLAG: line 1: flag{joe_thought_youd_suck_at_bash}: command not found
147+
```
148+
149+
### Alternate solution #3
150+
142151
Encode `cat` in octal and pass the `FLAG` file to stdin:
143152
144153
```bash

0 commit comments

Comments
 (0)