exam questions

Exam PT0-002 All Questions

View all questions & answers for the PT0-002 exam

Exam PT0-002 topic 1 question 48 discussion

Actual exam question from CompTIA's PT0-002
Question #: 48
Topic #: 1
[All PT0-002 Questions]

DRAG DROP -
During a penetration test, you gain access to a system with a limited user interface. This machine appears to have access to an isolated network that you would like to port scan.

INSTRUCTIONS -
Analyze the code segments to determine which sections are needed to complete a port scanning script.
Drag the appropriate elements into the correct locations to complete the script.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Kmelaun
9 months ago
1 - #!/usr/bin/python 2- ports - [21,22] 3- for port in ports: ... finally: s.close() 4- run_scan(sys.argv[1], ports) Y'all were right the first time besides 2.
upvoted 1 times
...
MeisAdriano
9 months ago
1 - #!/usr/bin/python 2- ports = [21,22] 3- for port in ports: ... finally: s.close() 4- run_scan(sys.argv[1], ports)
upvoted 1 times
MeisAdriano
9 months ago
my mistake, the last one is port_scan(sys.argv[1], ports)
upvoted 2 times
...
...
2Fish
2 years, 2 months ago
More context and better Visuals located here: https://www.examtopics.com/discussions/comptia/view/18378-exam-pt0-001-topic-1-question-69-discussion/
upvoted 4 times
2Fish
2 years, 2 months ago
1 - #!/usr/bin/python 2- ports = [21,22] 3- for port in ports: ... finally: s.close() 4- run_scan(sys.argv[1], ports)
upvoted 7 times
[Removed]
2 years, 2 months ago
4- last is: port _scan(sys.argv [1], ports)
upvoted 17 times
KingIT_ENG
2 years, 1 month ago
Your right answer
upvoted 1 times
...
...
KeToopStudy
1 year, 4 months ago
First 3 are on point. The 4th one should be port_scan instead of run_scan. You can see how it's defined in the black screen
upvoted 1 times
...
[Removed]
2 years, 2 months ago
Check this link: https://www.google.com/url?sa=t&source=web&rct=j&url=https://www.examtopics.com/discussions/comptia/view/53260-exam-pt0-001-topic-1-question-143-discussion/&ved=2ahUKEwipiYS1jYn9AhWD8jgGHdYJB4AQFnoECBMQAQ&usg=AOvVaw0nLRPqgv5OHI1MYw2A_xEn
upvoted 6 times
...
...
...
zimuz
2 years, 4 months ago
can anyone help to clarify this please
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago