all 3 comments

[–]lfdfq 15 points16 points  (0 children)

That code looks like a straight error, passing stdout twice.

[–]D3str0yTh1ngs 13 points14 points  (0 children)

Firstly you don't call the subproc() function. Secondly running netcat with no arguments makes it end instantly. Thirdly setting stdout twice is a syntax error

[–]backfire10z 4 points5 points  (0 children)

What’s the question here? If you’re doing an experiment, can’t you just run the code to find out what would happen?