Skip to content

8dcc/snc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snc

Simple port of the NetCat command in C using sockets.

Building

$ git clone https://github.com/8dcc/snc
$ cd snc
$ make
...

Usage

$ ./snc h
Usage:
    ./snc h       - Show this help
    ./snc l       - Start in listen mode
    ./snc c <IP>  - Connect to specified IP address

In a terminal:

$ ./snc l  # Start to listen. It will print received data.

$ ./snc l > output.txt

In another terminal:

$ ./snc c IP
Type stuff here!
It will send it to the listening session.

$ ./snc c IP < input.txt