wm: doc

ref: 00ea80883d0fefb10dd0d6b3b7f31003f1a98b3f
dir: /netcat.ms/

View raw version
.TL
Replacing Netcat
.AU
jrmu (jrmu@cloud9p.org)
.AI
Cloud9p
.AB
9front alternatives to netcat for Unix users
.AE

.SH
trampoline(8)
.LP
One substitute for
.HTML <a href="https://wiki.ircnow.org/?n=Netcat.Usage">
netcat
.HTML </a>
is 
.HTML <a href="http://man.9front.org/8/trampoline">
trampoline(8)
.HTML </a>
.

.P1
; aux/trampoline $proto!$hostname!$port
.P2

Replace
.CW $proto
,
.CW $hostname
,
and
.CW $port
.

For example, to connect in plaintext to the IRC server
.CW irc.ircnow.org
on port 6667:

.P1
; aux/trampoline tcp!irc.ircnow.org!6667
.P2

.SH
telnet(1)
.LP
Another substitute is
.HTML <a href="http://man.9front.org/1/con">
telnet(1)
.HTML </a>
.

To create a
.CW $proto
netcat connection to
.CW $hostname
and
.CW $port:
.P1
; telnet $proto!$hostname!$port
.P2
To create a netcat connection to use paste.ircnow.org: 
.P1
; telnet -n tcp!paste.ircnow.org!7777 < /path/to/file
.P2  
To upload a file to tcp.st: 
.P1
; telnet -n tcp!tcp.st!7777 < /path/to/file
.P2