0

How can I use the file command on an output from netcat?

For example:

nc 192.168.1.1 1234 dGhpcyBpcyBhIHNhbXBsZSBzdHJpbmc= 

dGhpcyBpcyBhIHNhbXBsZSBzdHJpbmc= being the output, (sample base64 for the purpose of the example).

How can this be done?

    1 Answer 1

    1

    Pipe the result through file -. Like most programs, - can be used to refer to stdin.

    But do note that base64 is just "ascii text".

      You must log in to answer this question.

      Start asking to get answers

      Find the answer to your question by asking.

      Ask question

      Explore related questions

      See similar questions with these tags.