<< Prev Question Next Question >>

Question 32/55

Given the following Python script:
#1/usr/bin/python
import socket as skt
for port in range (1,1024):
try:
sox=skt.socket(skt.AF.INET,skt.SOCK_STREAM)
sox.settimeout(1000)
sox.connect (('127.0.0.1', port))
print '%d:OPEN' % (port)
sox.close
except: continue
Which of the following is where the output will go?

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (55q)
Question 1: A penetration tester is designing a phishing campaign and wa...
Question 2: A penetration tester is performing a code review. Which of t...
Question 3: A penetration tester has been asked to conduct a penetration...
Question 4: A tester has captured a NetNTLMv2 hash using Responder Which...
Question 5: While monitoring WAF logs, a security analyst discovers a su...
Question 6: A consultant is performing a social engineering attack again...
Question 7: The following line was found in an exploited machine's histo...
Question 8: A client requests that a penetration tester emulate a help d...
Question 9: When performing compliance-based assessments, which of the f...
Question 10: A penetration tester reviews the scan results of a web appli...
Question 11: Joe, a penetration tester, is asked to assess a company's ph...
Question 12: An attacker uses SET to make a copy of a company's cloud-hos...
Question 13: An energy company contracted a security firm to perform a pe...
Question 14: A penetration tester has performed a vulnerability scan of a...
Question 15: Black box penetration testing strategy provides the tester w...
Question 16: An email sent from the Chief Executive Officer (CEO) to the ...
Question 17: A security assessor completed a comprehensive penetration te...
Question 18: A client has requested an external network penetration test ...
Question 19: After successfully capturing administrator credentials to a ...
Question 20: During a full-scope security assessment, which of the follow...
Question 21: A penetration tester successfully exploits a DM2 server that...
Question 22: A penetration tester identifies the following findings durin...
Question 23: A penetration tester is able to move laterally throughout a ...
Question 24: A penetration tester has compromised a host. Which of the fo...
Question 25: Joe, an attacker, intends to transfer funds discreetly from ...
Question 26: A tester intends to run the following command on a target sy...
Question 27: A software development team recently migrated to new applica...
Question 28: Which of the following tools would a penetration tester leve...
Question 29: A penetration tester is attempting to capture a handshake be...
Question 30: A penetration tester is in the process of writing a report t...
Question 31: A penetration tester runs the following from a compromised b...
Question 32: Given the following Python script: #1/usr/bin/python import ...
1 commentQuestion 33: Joe, a penetration tester, has received basic account creden...
Question 34: Which of the following is the reason why a penetration teste...
1 commentQuestion 35: A manager calls upon a tester to assist with diagnosing an i...
Question 36: A company planned for and secured the budget to hire a consu...
Question 37: A penetration tester is testing a banking application and un...
Question 38: Which of the following BEST explains why it is important to ...
Question 39: A penetration tester is performing initial intelligence gath...
Question 40: During an internal penetration test, several multicast and b...
Question 41: A penetration tester observes that the content security poli...
Question 42: Which of the following commands will allow a tester to enume...
Question 43: A tester has determined that null sessions are enabled on a ...
Question 44: A penetration tester wants to check manually if a "ghost" vu...
Question 45: A penetration tester has been asked to conduct OS fingering ...
Question 46: While prioritizing findings and recommendations for an execu...
Question 47: The following command is run on a Linux file system: Chmod 4...
Question 48: A client has voiced concern about the number of companies be...
Question 49: A vulnerability scan identifies that an SSL certificate does...
Question 50: A penetration test was performed by an on-staff junior techn...
Question 51: Consider the following PowerShell command: powershell.exe IE...
Question 52: During a penetration test, a tester runs a phishing campaign...
Question 53: After performing a security assessment for a firm, the clien...
Question 54: An assessor begins an internal security test of the Windows ...
Question 55: Given the following Python script: (Exhibit) Which of the fo...