Centos7 system security and application (iv) detecting weak password and NMAP scan

I. Detection weak password

1. The host of tools to mount to the virtual machine


image.png


2. Extract

QQ picture 20190827165203.png


3. Check the contents of the file decompression

QQ picture 20190827165613.png

4. Installation C C ++ Compiler

yum install gcc gcc-c++ -y

image.png


5. Compile

make linux-x84-64

image.png


6. Go to the folder will run a script john

image.png

7. execution of the script 

./john /etc/passwd /etc/shadow

image.png


8. the outcome

image.png


Two .NMAP scan

1. Install nmap

yum install nmap

image.png



2. Detection

nmap -sT 127.0.0.1

image.png


3. Add httpd service

image.png

Opening function, turn off the firewall

image.png


4. Use nmap scanning

image.png




Guess you like

Origin blog.51cto.com/14469918/2433034