🔥 40% Off Crucial Exams Memberships — Deal ends today!

1 hour, 27 minutes remaining!

Certified Ethical Hacker (CEH) Practice Question

While pivoting in a segmented network, you land in a restricted shell on an Ubuntu server where id returns uid=33(www-data). A quick enumeration shows /usr/bin/nmap has the SUID bit set and reports version 2.02 when run. What is the fastest way to escalate privileges on this host?

  • Invoke "nmap --privileged --script-upgrade" to append your account to /etc/sudoers.

  • Create a malicious NSE Lua script that spawns /bin/bash and execute it using "nmap --script".

  • Run "nmap -e eth0 --privileged" to open port 4444 and receive a reverse root shell.

  • Launch Nmap with "nmap --interactive" and type "!sh" inside the prompt to obtain a root shell.

Certified Ethical Hacker (CEH)
System Hacking Phases and Attack Techniques
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot