PT0-002 Exam Question 106

Given the following code:
$p = (80, 110, 25)
$network = (192.168.0)
$range = 1 .. 254
$ErrorActionPreference = 'silentlycontinue'
$Foreach ($add in $range)
$Foreach ($x in $p)
{ {$ip = "{0} . {1} -F $network, $add"
If (Test-Connection -BufferSize 32 -Count 1 -quiet -ComputerName $ip)
{$socket = new-object System.Net. Sockets. TcpClient (&ip, $x)
If ($socket. Connected) { $ip $p open"
$socket. Close () }
}
}}
Which of the following tasks could be accomplished with the script?
  • PT0-002 Exam Question 107

    A penetration tester initiated the transfer of a large data set to verify a proof-of-concept attack as permitted by the ROE. The tester noticed the client's data included PII, which is out of scope, and immediately stopped the transfer. Which of the following MOST likely explains the penetration tester's decision?
  • PT0-002 Exam Question 108

    Which of the following is the MOST important information to have on a penetration testing report that is written for the developers?
  • PT0-002 Exam Question 109

    A penetration tester logs in as a user in the cloud environment of a company. Which of the following Pacu modules will enable the tester to determine the level of access of the existing user?
  • PT0-002 Exam Question 110

    A penetration tester has been provided with only the public domain name and must enumerate additional information for the public-facing assets.
    INSTRUCTIONS
    Select the appropriate answer(s), given the output from each section.
    Output 1