PT0-002 practice questions, page 19 of 22, with answer review and explanations.
Question 91
A CentOS computer was exploited during a penetration test. During initial reconnaissance, the penetration tester discovered that port 25 was open on an internal Sendmail server. To remain stealthy, the tester ran the following command from the attack machine: Which of the following would be the BEST command to use for further progress into the targeted network?
nc 10.10.1.2
ssh 10.10.1.2
nc 127.0.0.1 5555
ssh 127.0.0.1 5555
Question 92
A penetration tester utilized Nmap to scan host 64.13.134.52 and received the following results: Based on the output, which of the following services are MOST likely to be exploited? (Choose two.)
Telnet
HTTP
SMTP
DNS
NTP
SNMP
Question 93
Which of the following expressions in Python increase a variable val by one? (Choose two.)
val++
+val
val=(val+1)
++val
val=val++
val+=1
Question 94
An assessor wants to run an Nmap scan as quietly as possible. Which of the following commands will give the LEAST chance of detection?
nmap ג€"T3 192.168.0.1
nmap ג€"P0 192.168.0.1
nmap ג€"T0 192.168.0.1
nmap ג€"A 192.168.0.1
Question 95
A penetration tester wrote the following script to be used in one engagement: Which of the following actions will this script perform?