2

I have been looking at different ways to gain shell access to a Linux machine and came across this article.

Under point #2, there is an slightly different way of using netcat to gain shell. here it is:

enter image description here

According to man pages,

The system call mknod() creates a filesystem node (file, device, special file, or named pipe) named pathname, with attributes specified by mode and dev.

But I still don't understand what is happening and couldn't find an explanation for it online. Can someone please help explain the command in the Target console?

Many thanks!

closed as off-topic by schroeder Dec 3 '18 at 14:13

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be about Information security within the scope defined in the help center." – schroeder
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    please do not post images of text – schroeder Dec 3 '18 at 14:08
  • How mknod works is not really a security question but a Linux question. Everything you need to understand about how to use it for a remote shell is all in your question. If you do not understand the concepts or terms used in relation to mknod, FIFO, or pipes, then you might need to ask at SuperUser or Unix StackExchange. – schroeder Dec 3 '18 at 14:11
  • If it helps, the name backpipe is just arbitrary text and not a configuration option. It could just as easily be named foobar. the rest of the command is just run-of-the-mill bash piping – schroeder Dec 3 '18 at 14:15
  • Thank you @schroeder, i shall approach one of the other forums. :) – Izy- Dec 6 '18 at 4:41

Browse other questions tagged or ask your own question.