Results 1 to 6 of 6

Thread: netcat relay question

  1. #1
    Just burned his ISO
    Join Date
    Aug 2010
    Posts
    4

    Default netcat relay question

    hi,

    i can relay between two port in linux as using nc

    -->mknode backpipe p
    --->nc -lv 192.168.0.125 -p 12346 0<backpipe |nc -v 192.168.0.225 3389 |tee backpipe

    basically what i do here i'm relay remote desktop port to local port then i can connect

    rdesktop 192.168.0.125:12346 thats work fine for me.


    my question is how can i do same thing in windows??


    i'm try several way mention in following cheat sheet nothing is work for me.

    netcat

  2. #2
    Senior Member
    Join Date
    Jul 2009
    Posts
    135

    Default Re: netcat relay question

    Alternatively, you can use rinetd for windows to do this. If you must use netcat in Windows, then i cant help you. Haven't tried it, nor researched the relevant information.

  3. #3
    Just burned his ISO
    Join Date
    Aug 2010
    Posts
    4

    Default Re: netcat relay question

    my basic requirement is connecting two listening port when each client will come....

    in Linux lets say two port are listening separate port

    [HOST A]
    nc -lv 192.168.0.125 -p 5555
    nc -lvp 6666
    so if i make a pipe like this
    mknod p
    nc -lv 192.168.0.125 -p 5555 0<backpipe |nc -v 192.168.0.125 6666 |tee backpipe

    if any client come is port 5555 and in 6666
    [Client B]
    nc -v 192.168.0.125 5555
    [Client C]
    nc -v 192.168.0.125 6666

    so [Client B] and [Client C] they can talk to each other

    how can i do this is a windows machine ?? any idea ....

  4. #4
    Just burned his ISO
    Join Date
    Jan 2010
    Posts
    5

    Default Re: netcat relay question

    Quote Originally Posted by x8631p View Post
    how can i do this is a windows machine ?? any idea ....
    Netcat Cheat Sheet.

  5. #5
    Just burned his ISO
    Join Date
    Aug 2010
    Posts
    4

    Default Re: netcat relay question

    i have tried every option mentioned in that cheat but the relay goes to one way ...
    lets say if i relay 12345 port to 12346 the if i say hi from 12345>12346 possible but the 12346>12345 port no data relay..its goes to one way relay..
    i need two way communication

    i'm try following way

    [A listen on port 12345 and relay to 12346]
    echo nc -v 192.168.0.225 12346 > relay.bat
    nc -lvp 12345 -e relay.bat

    [B listen on port 12346]
    nc -lvp 12346

    [C connect to port 12345 ]
    nc -v 192.168.0.225 12345

    now C can send data to B, But B can't send data to C

    but as the cheat sheet say it should be what i'm missing


    Quote Originally Posted by 55Rh7 View Post

  6. #6
    Just burned his ISO
    Join Date
    Feb 2006
    Posts
    5

    Default Re: netcat relay question

    Quote Originally Posted by x8631p View Post
    i have tried every option mentioned in that cheat but the relay goes to one way ...
    lets say if i relay 12345 port to 12346 the if i say hi from 12345>12346 possible but the 12346>12345 port no data relay..its goes to one way relay..
    i need two way communication

    i'm try following way

    [A listen on port 12345 and relay to 12346]
    echo nc -v 192.168.0.225 12346 > relay.bat
    nc -lvp 12345 -e relay.bat

    [B listen on port 12346]
    nc -lvp 12346

    [C connect to port 12345 ]
    nc -v 192.168.0.225 12345

    now C can send data to B, But B can't send data to C

    but as the cheat sheet say it should be what i'm missing
    Did you try B | C? You don't say, but from what I see that's the only way it can work. Somehow you have to get stdout from B to stdin on C. (nc -l -p 12345 | nc -v ).

Similar Threads

  1. SendEmail relay server
    By foster in forum Beginners Forum
    Replies: 9
    Last Post: 05-29-2010, 09:54 AM
  2. Smtp open relay server
    By Henrik in forum Tool Requests
    Replies: 0
    Last Post: 05-20-2010, 12:55 AM
  3. Packet Relay Problem
    By Blind-Summit in forum OLD BackTrack 4 General Support
    Replies: 4
    Last Post: 01-20-2010, 01:02 AM
  4. SMB relay help
    By enigma7 in forum OLD Newbie Area
    Replies: 1
    Last Post: 01-04-2010, 02:46 PM
  5. Dhcp relay
    By icedark in forum OLD Newbie Area
    Replies: 2
    Last Post: 11-23-2009, 10:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •