Summer Certification Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

CompTIA PenTest+ Exam PT0-003 Question # 6 Topic 1 Discussion

CompTIA PenTest+ Exam PT0-003 Question # 6 Topic 1 Discussion

PT0-003 Exam Topic 1 Question 6 Discussion:
Question #: 6
Topic #: 1

A penetration tester cannot use Nmap and must perform port discovery and banner grabbing for potential vulnerable SSH services. Given the following script:

#!/usr/bin/bash

ip_address = " 192.168.5. "

...

for i in {1..254}

do

--missing command--

done

...

Which of the following commands will best help the tester achieve this objective?


A.

ping -c 22 " $ip_address$i "


B.

nc " $ip_address$i " " :22 "


C.

arp " $ip_address$i " " :22 "


D.

curl scp:// " $ip_address$i " " :22 "


Get Premium PT0-003 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.