Git Product home page Git Product logo

wincat's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.