Home PicoCTF 2018 GEneral Skills 110: pipe
Writeup
Cancel

GEneral Skills 110: pipe

Challenge

During your dventure, you will likely encounter a situation where you need to process
data that you receive over the network rather than through a file. Can you find a way
to save the output from this program and search for the flag?
Connect with 2018shell1.picoctf.com 34532.

Solution

We connect via netcat and are flooded with messages

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$ nc 2018shell1.picoctf.com 34532
Unfortunately this is also not a flag
This is not a flag
This is not a flag
I'm sorry you're going to have to look at another line
I'm sorry you're going to have to look at another line
I'm sorry you're going to have to look at another line
Unfortunately this is also not a flag
I'm sorry you're going to have to look at another line
I'm sorry you're going to have to look at another line
I'm sorry you're going to have to look at another line
Unfortunately this is also not a flag
I'm sorry you're going to have to look at another line
Unfortunately this is also not a flag
This is not a flag
[..]

So we do a grep:

1
2
$ nc 2018shell1.picoctf.com 34532 | grep picoCTF
picoCTF{almost_like_mario_b797f2b3}

Flag

picoCTF{almost_like_mario_b797f2b3}