Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 931 Bytes

File metadata and controls

27 lines (18 loc) · 931 Bytes

TCP Command-Line Tool

After becoming aware of the <BASH stack /> I also learned about tcpserver, which is a command-line tool for TCP client and server programs.

I have used Netcat and Ncat but was unaware of tcpserver. 😲

In the case of bash-stack tcpserver is used to invoke the core script.

PORT=${PORT:-3000}
echo -n "Listening on port "
tcpserver -1 -o -l 0 -H -R -c 1000 0 $PORT ./core.sh

Install tcpserver using apt.

sudo apt install ucspi-tcp

In terms of classification, I chose Linux over Bash since I used a Linux package manager to obtain tcpserver.

References

  1. The tcpserver program
  2. Netcat
  3. Ncat