3 # 5. Use nmap with a parameter to scan ports with Version detection. You may consider 3 # using the pipe operator to g

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

3 # 5. Use nmap with a parameter to scan ports with Version detection. You may consider 3 # using the pipe operator to g

Post by answerhappygod »

3 5 Use Nmap With A Parameter To Scan Ports With Version Detection You May Consider 3 Using The Pipe Operator To G 1
3 5 Use Nmap With A Parameter To Scan Ports With Version Detection You May Consider 3 Using The Pipe Operator To G 1 (65.18 KiB) Viewed 94 times
3 # 5. Use nmap with a parameter to scan ports with Version detection. You may consider 3 # using the pipe operator to grep the nmap results for the lines that contain open ports only. 1 # https://nmap.org/book/man-version-detection.html 2 function target_ports_open() 3 { 4 # Runs only if host is up 75 up="$(target_ping | grep '4 received')" 76 if [ "$up'==' ); then 77 echo "<h2>Ports open</h2>" 78 echo "<pre>" 79 # YOUR CODE HERE 80 81 echo "</pre>" 82 fi 83 84 } end of target_ports open 85 86 # Function: exploit_vsftpd 87 # Purpose: This function will use Metasploit to execute an exploit on our target system 88 # 6. The Metasploit framework allows for scripted attacks via Resource Script 89 # HINT: https://www.offensive-security.com/meta ... r-scripts/ 90 . Example Resource Script 91 use exploit/unix/irc/unreal_ircd_3281_backdoor 92 set RHOST 10.0.2.4 exploit -2 94 95 96 function exploit_vsftpd() 97 { 98 # Build our metasploit attack Resrouce Script 99 # Find a vsftpd exploit in the Metasploit library 100 # Specify the expoit you want to use on the target system 101 • Output the command to create a new resource script file 102 • called vsftpd.rc using either > or >> 103 104 # YOUR CODE HERE 105 • Next, append to the resource file vsftpd. re setting the RHOST 107 . to your target IP variable : 93 exit -y 1 106
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply