Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to use netcat(nc) ?

Posted on 2009-04-12
2
617 Views
Last Modified: 2012-05-06
Hi, I am seeing these options to use in netcat(nc) command, Can someone explain me how to use this option and under which condition. Please show me some example, if possible. Thanks!

      -b                  allow broadcasts
      -g gateway            source-routing hop point[s], up to 8
      -G num                  source-routing pointer: 4, 8, 12, ...
        -T tos                        set Type Of Service

I am using gnu netcat(nc) in ubuntu.
0
Comment
Question by:beer9
2 Comments
 
LVL 40

Accepted Solution

by:
omarfarid earned 250 total points
ID: 24127767
I could not find any useful documentation on netcat, but I can tell you that source routing is a feature in the IP packet that let the source specify the routers across which the packets should pass to test the network routes between two points. This can be done by specifying exactly the routers or by specifying the at least routers.

Source routing could be dangerous since it can be used along with IP spoofing to attack / hack others. To be able to carry source routing the routers in the network should support it and allow it.

http://en.wikipedia.org/wiki/Source_routing
http://en.wikipedia.org/wiki/Loose_Source_Routing
http://en.wikipedia.org/wiki/Dynamic_Source_Routing
0
 

Author Closing Comment

by:beer9
ID: 31569290
Thanks Omar! :-)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question