EH-Net
May 22, 2013, 05:23:32 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: What is a TCP/IP relay?  (Read 6091 times)
0 Members and 1 Guest are viewing this topic.
Manu Zacharia (-M-)
Sr. Member
****
Offline Offline

Posts: 393


c0c0n Hacking Conference - where hackers unite


View Profile WWW
« on: January 31, 2008, 09:21:24 PM »

I was just googling for netcat, tcpxd etc and came across this line that made me write this:

Quote
txpxd is a general purpose TCP/IP relay program....

and

Quote
Jonama is a piece of software acting as a relay between a client over the Net and your internal systems

Can we have a definition or explanation for "what is a tcp/ip relay"? Is it simply another jargon for a daemon service?
Logged

Manu Zacharia
MVP (Enterprise Security), ISLA-2010 (ISC)², C|EH, C|HFI, CCNA, MCP,
Certified ISO 27001:2005 Lead Auditor

There are 3 roads to spoil; women, gambling & hacking. The most pleasant with women, the quickest with gambling, but the surest is hacking - c0c0n
jimbob
Guest
« Reply #1 on: February 01, 2008, 05:45:44 AM »

Sounds like a TCP forwarding. Programs like datapipe allow you to start a service on a port which simple forwards traffic to another port on the same system or a remote one. The host of the services effectively bridges the TCP traffic between the source and destination.

Jim
Logged
pseud0
Recruiters
Full Member
*
Offline Offline

Posts: 208



View Profile
« Reply #2 on: February 01, 2008, 08:04:01 AM »

jimbob got it.  You can use this little widget a couple of different ways, the most popular being having it accept traffic on port X and send it out on port Y therefore acting as a relay/redirect.  The traffic doesn't have to come from a different system, meaning you can redirect traffic that never actually leaves your system.  This is useful if case you needed to maybe reroute your winamp traffic to an another port so that it can pass through the corporate firewall because the Technology Services guys are a bunch of Nazi Commies that can't seem to understand why you need your techno trance while you're getting your pen test on...
Logged

CISSP, CISM, CISA, GCIH, GREM, CEH, HMFIC, KTHXBIROFLCOPTER
dean
Guest
« Reply #3 on: February 01, 2008, 08:36:41 AM »

Manu, you mentioned netcat in your post. here's a quick way to create a relay using netcat with named pipes:

Run 'mknod backpipe p' on the box you want for your relay.

then run:

nc –l -p 4321 0<backpipe | nc <target> 2222 1>backpipe

Set up a netcat listener that pipes the incoming data to a netcat client that will forward the data to the target machine. Any data that is received by the netcat client is sent to the named pipe and from there is redirected back to the netcat listener. The listener will then send the data back to the Attacker.

Attacker <--> Relay <--> Target


dean
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.106 seconds with 20 queries.