Results 1 to 6 of 6

Thread: Port redirection with Netcat

  1. #1
    Join Date
    Apr 2008
    Posts
    264

    Port redirection with Netcat

    I am having some problem regrading the phases of the redirection of ports.I have two communications've been having a look at port redirection with netcat and detecting some problem getting duplex communication accross the link.

    The transformation of the contents are going as -

    source box nc -nvv 192.168.1.111 80
    redirector box nc -lvvp 80|nc -vv 192.168.1.222 555
    target box - nc -lvvp 555

    I can send text one way i.e. The target successfully but not back from the target but the result is not getting back from the target box.Can you provide me some suggestion regarding this then please tell me the solution for it.

  2. #2
    Join Date
    May 2008
    Posts
    2,945

    Port redirection with Netcat

    You need to use a backpipe to communicate and get the required result from the target server.The following command can help you to create this-

    Code:
    mknod backpipe p
    nc -l -p 80 0<backpipe | tee -a inflow | nc localhost 81 | tee -a outflow 1>backpipe
    The mknode will create a back-pipe and attatch the appropriate port number of every phases and deliver it on the prompt.

  3. #3
    Join Date
    Feb 2008
    Posts
    2,635

    Port redirection with Netcat

    The Netcat is one of the Linux command line tools which is used to perform not only for scanning the ports of the network node,it can be used for many purposes.

    The netcat creates a TCP socket (it's an automatic behavior of this command)either in listening mode or a socket that is used in order to connect to a server. The netcat command does not perform different function for server and a client. It captures the data from stdin and send back to the request node in the network.

    There are so many task can be performed using the netcat command which are as follows -

    • Transferring Files
    • Security purpose
    • Telnet-like Usage
    • used to scan the Port

  4. #4
    Join Date
    Apr 2008
    Posts
    3,424

    Linux port scanning with netcat (nc) command

    If the nmap is currently not installed in the system then you can use another network level command which is very useful for different purposes.You can issue the nc / netcat command to check the status of the port.

    The -z option specifies that report the status of open ports.One of the example is given below to find out the same,execute the nc command associated with -z flag and the host name or ip address along with the port range.

    Code:
    $ nc -z www.techarena.in 1-1023

  5. #5
    Join Date
    May 2008
    Posts
    3,516

    Transferring Files using netcat command

    Transferring Files using netcat command

    The necat command can be used to Transferring Files in the network.The same method would be used to transfer the files between two computers. You have to specify a server that available the file with the following manner:

    $ cat bkup.iso | nc -l 3333


    Receive the iso file from the client side machine using -

    $ nc 192.168.0.1 3333 > bkup.iso

  6. #6
    Join Date
    Apr 2008
    Posts
    3,339

    Port redirection with nmap

    Another command provided by the Linux library named nmap command.In case,when you not installed the netcat command in the linux registry,you can use it very successfully.The network user can scan the whole network or specific host or single server.

    TCP Connected scanning for localhost and network 192.168.0.0/24 and the command would be issued as -

    Code:
    # nmap -v -sT localhost
    # nmap -v -sT 192.168.0.0/24

Similar Threads

  1. Backtrack 5- netcat/backdoor
    By Edi in forum Operating Systems
    Replies: 7
    Last Post: 21-06-2011, 06:43 AM
  2. OWA url redirection is wrong
    By Mr.ken in forum Windows Software
    Replies: 3
    Last Post: 21-07-2009, 10:09 PM
  3. SysWow64 Redirection for cmd.exe
    By Q Jones in forum Windows x64 Edition
    Replies: 3
    Last Post: 01-06-2009, 02:25 AM
  4. Replies: 1
    Last Post: 02-03-2009, 11:15 PM
  5. Missing port types : local port and Standard TCP/IP port
    By NIcaBoy in forum Windows XP Support
    Replies: 3
    Last Post: 28-12-2006, 07:38 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,722,853.29264 seconds with 17 queries