Serving Files with NetCat
Learn NetCat combined with shell scripting.
We'll cover the following...
We'll cover the following...
Using NetCat with scripting
We can use netcat to serve files if we combine it with a little bit of shell scripting. Let’s create a file called hello.txt with some text:
$ echo "This is a text file served from netcat" > hello.txt
Now, we execute this command to make netcat listen for connections on port 8000 and serve ...