List of questions
Related questions
Question 401 - PT0-002 discussion
After obtaining a reverse shell connection, a penetration tester runs the following command: www-data@server!2:sudo -1
User www-data may run the following commands on serverl2: (root) NOPASSWD: /usr/bin/vi
Which of the following is the fastest way to escalate privileges on this server?
A.
Editing the file /etc/passwd to add a new user with uid 0
B.
Creating a Bash script, saving it on the /tmp folder, and then running it
C.
Executing the command sudo vi -c ' Jbash'
D.
Editing the file/etc/sudoers to allow any command
Your answer:
0 comments
Sorted by
Leave a comment first