Forrest logo
back to context overview

nc

List of commands for nc:

  • nc:tldr:1a731 nc: Act as proxy and forward data from a local TCP port to the given remote host.
    $ nc -l ${local_port} | nc ${hostname} ${remote_port}
    try on your machine
    explain this command
  • nc:tldr:6bde5 nc: Set a timeout.
    $ nc -w ${timeout_in_seconds} ${ipaddress} ${port}
    try on your machine
    explain this command
  • nc:tldr:8297e nc: Establish a TCP connection.
    $ nc ${ip_address} ${port}
    try on your machine
    explain this command
  • nc:tldr:9a1f1 nc: Send a HTTP request.
    $ echo -e "GET / HTTP/1.1\nHost: ${hostname}\n\n" | nc ${hostname} 80
    try on your machine
    explain this command
  • nc:tldr:9c6b5 nc: Scan the open TCP ports of a specified host.
    $ nc -v -z ${ip_address} ${port}
    try on your machine
    explain this command
  • nc:tldr:b5025 nc: Keep the server up after the client detaches.
    $ nc -k -l ${port}
    try on your machine
    explain this command
  • nc:tldr:d7be0 nc: Listen on a specified UDP port and print connection details and any data received.
    $ nc -u -l ${port}
    try on your machine
    explain this command
  • nc:tldr:ea999 nc: Listen on a specified TCP port and print any data received.
    $ nc -l ${port}
    try on your machine
    explain this command
back to context overview