Skip to content

windows version netcat support sha1 for file transfer checking , multithread , UDP and OTP

Notifications You must be signed in to change notification settings

terrylao/WinCat

Repository files navigation

my version of netcat, not unix version port. this means some anti virus program will not block it.

WinCat

Usage

wc [-laksfwechvmFTUBD] [host] [port]

l      Listen TCP for incoming connections. It is an error to use this option with a host specified.

a      combine with l , can accept only connection which came from. use this option restrict access ip.

D      combine with l , Daemon processed.

m      client mode send this message and then "m"

f/F  filename      clinet mode same as -m but message read "f" line by line/"F" Block by Block from file max 8KB. and receive once only e.g.wnc -t 10 -f c:\foo.txt 127.0.0.1 2222

t      combine with -m/-f to send times of message.

T      combine with -t to with multithreaded send times of message.

k      Keep listening. Forces wc to stay listening for another connection after its current connection is completed. It is an error to use this option without -l.

e  filename      Specify a filename to execute after connecting (use with caution). See -c for enhanced functionality. It is an error to use this option with -c, -s, or -z. e.g. host A (10.0.0.2)> wnc -l -k -e "cmd" 8118 host B (10.0.0.3)> wnc 10.0.0.2 8118

c  command      Specify a command to pass to "cmd /c" for execution after connecting. It is an error to use this option with -e, -s, or -z. e.g. host A (10.0.0.2)> wnc -l -c "dir" 8118 host B (10.0.0.3)> wnc 10.0.0.2 8118

U      udp Mode : wnc -U 10.0.0.2 8118

B      udp Mode BroadCast : wnc -B 172.30.255.255 8118

M      udp Mode MultiCast : wnc -M 239.255.255.250 8118

w  n      client Mode Connect Send and Receive will: 0:close immediatly greater than wait for timeout, F:will wait forever until peer disconnect. O:will receive once and then disconnect. R:receive only and only receive once.

h      Print this help page.

oe  filename      client mode output to file.

pe  n      port scan,timeout n = 1~5 in seconds.

se  filename      SHA1_HASH a file.

v      verbose.

host      Can be a numerical address or a symbolic hostname. If the -s option is specified, CIDR notation (IPv4 only) can be used to specify a range of hosts.

port      Must be single integer. If the -z option is specified, a range of ports can be used instead.

Building on Windows

Microsoft's Visual C++ Build Tools (vcvarsall/cl/nmake) are assumed to be installed and added to PATH.

  1. Open the command prompt and navigate to the WinCat directory.
  2. Type vcvarsall x86 to load the windows development environment.
  3. Type nmake.

Usage: with OTP with key "KKK"
open TCP server on port 8118
wnc -l -k -P KKK -e "cmd" 8118
open a UDP server on port 8118
wnc -l -k -U -P KKK -e "cmd" 8118

then use: otpgenerator.exe KKK to generate OTP(6 digits) and put OTP into -P
for TCP
wnc -P 802163 127.0.0.1 8118
for UDP
wnc -U -P 802163 127.0.0.1 8118

About

windows version netcat support sha1 for file transfer checking , multithread , UDP and OTP

Resources

Stars

Watchers

Forks

Packages

No packages published