lab 32 Flashcards

1
Q

How many “change to parent” operations are needed to create a relative URL reference to view the passwd file?

3
4
5
6
7

A

6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the result of the whoami command injected in this step?

jaime
localhost
172.16.0.201
www-data

A

www-data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the point of the string “../../../../../../” used in an attack?

Use command obfuscation to avoid keyword filters

Use special characters to avoid metacharacter escaping

Use directory traversal to reach the root directory

Trick the system into granting access to the file using root privileges

A

Use directory traversal to reach the root directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Score: 1
Which of the following characters can be used to stack commands in a command injection attack? (Select all that apply)

?
/
;
&&
^
|
+

A

;
&&
|

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the most significant concern of a file upload vulnerability?

An attacker’s ability to change user passwords.

An attacker learning the OS and software identities.

An attacker changing website contents (i.e., defacement)

An attacker being able to run malicious code on the web server.

A

An attacker being able to run malicious code on the web server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Exploiting systems using directory traversal, command injection, file upload, and web shell injection technique is typically performed during what phase of penetration testing?

Reconnaissance
Scanning
Vulnerability detection,
Gaining access
Post-exploit activities

A

Gaining access

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Injecting a web shell can be accomplished by taking advantage of what discovered vulnerability?

File upload
Adversary in the middle (AitM)
Brute force password cracking
Directory traversal

A

File upload

How well did you know this?
1
Not at all
2
3
4
5
Perfectly