wm: doc

ref: 2cef664b94c297917db9e41fc7cfdaeee6df55c9
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

.PP
To connect to a webserver, use 
 (carriage return C-m).