Skip to content

VY-netcat is a network tool written based on vlang language, which is mainly used for building CTF problem environment, and will be integrated into the VTF competition platform, compared with other tools of the same type

License

Notifications You must be signed in to change notification settings

CryingN/VY-netcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VY-netcat logo

VY-netcat

Language

中文|English

Introduction

VY-netcat is a network tool written in the vlang language, primarily used for setting up CTF challenge environments. It will be integrated into the VTF competition platform. Compared to other similar tools, it mainly focuses on the following optimizations:

  • gnu-netcat: Solves the issue of not being able to maintain the connection after listening ends.
  • openbsd-netcat: Addresses the issue of sending commands for execution.
  • Support Vim interaction ideas: :q exit; And continue to improve :wq afterwards, exit and save the data, :![local sh] Do not output and execute local instructions.
  • Support Linux interaction: Memory history instruction

Development Status

Requirement Status Developer
Basic Connection Solved sudopacman
Command Execution Solved sudopacman
Keep Connection Resolve basic connections on instructions, but server functionality has not yet been implemented sudopacman
Security Mode Unsolved sudopacman

Usage

You can directly use our compiled binary files, or compile them yourself using vlang or gcc. For detailed configuration methods of vlang, refer to vdoc.

Direct Download

wget https://github.com/CryingN/VY-netcat/releases/download/[version]]/nc
./nc -h

Compile Yourself

Linux

Detailed compilation rules are written in the makefile. The system defaults to compiling with vlang, and automatically switches to gcc if vlang compilation fails.

git clone https://github.com/CryingN/VY-netcat.git  
cd VY-netcat  
make  
cd bin  
./nc -h

Windows

VY-netcat minimally supports usage in a Windows environment. Considering the inconvenience of using make, a separate make.bat file is provided for compilation:

git clone https://github.com/CryingN/VY-netcat.git  
cd VY-netcat  
./make  
cd bin  
./nc -h

Help

Below is the description from the help menu.

[root_cn@archlinux bin]$ ./nc -h
VY-netcat v1.0.2, the network tools suitable for CTF.
Basic usages:
 connect to somewhere:  nc [addr] [port]
                        nc [addr]:[port]
 listen to somewhere:   nc -lp [port]
 keep to listen:        nc -klp [port]
CmdOptions:
 -h, --help                             display this help and exit.
 -e, --exec [shell]                     program to exec after connect.
 -lp, --listen_port [int]               listen the local port number.
 -klp, --keep_listen_port [int]         keep to listen the local port number.
 -s, --security {0, 1}                  set the security mode.

Contributing

We recommend contributing directly in vlang. Before submitting, please ensure that the files have been compiled to C (in a Linux environment). We provide a convenient method for checking:

make c

If there is no warning message like:

[warn] Unable to make to src/netcat.c

it means the vlang files have been successfully compiled to C.

VY License Explanation

Without personal additions, the VY license is also known as the VY General License. For public use, simply annotate the VYCMa logo or declare that the source code is from VYCMa, and you can freely modify and use the materials for commercial purposes.

Regarding distribution, to facilitate understanding, the concept of "copyright transfer" is redefined in the VY license: After modifying the source code, others can close the source. Each modified file must include a copyright notice. If it is to be publicly displayed, the author's personal logo must be annotated. If the author has no special instructions, the VYCMa logo (VYCMa.png) or a declaration that the source code is from VYCMa must be included.

About

VY-netcat is a network tool written based on vlang language, which is mainly used for building CTF problem environment, and will be integrated into the VTF competition platform, compared with other tools of the same type

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages