Nessus - TryHackMe

5 min read

Published at: May 17, 2024

Nessus logo

Learn how to set up and use Nessus, a popular vulnerability scanner.

Metadata

Meta

Goal

Learn how to set up and use Nessus, a popular vulnerability scanner.

Cheat Sheet

Before we begin, as always there is a generic Cheat Sheet for this room which could be integrated in your own notes. You find it at at the bottom of this write-up. You can also find all of my notes at https://hailstormsec.com/posts/categories/notes.

Tasks

Installation

Use Google Chrome

When using FireFox, you may get an error stating Error: Invalid 'code' field: bad format when creating your account later. This will also invalid the activation code so you have to request for a new one. Therefore I suggest using Google Chrome for this process.

  1. Register at: https://www.tenable.com/products/nessus/nessus-essentials
  2. Choose platform and download either via curl or direct.
Download via curl or direct
Kali: Linux, Debian - amd64
  1. Download using apt or appropriet packet manager on your system.
Installing via apt
sudo apt install ./Nessus-10.7.0-debian10_amd64.deb
  1. Start the nessus service: sudo systemctl start nessusd.service
  2. Navigate to https://localhost:8834 and click 'Accept the Risk and Continue'.
Accet the risk and continue
https://localhost:8834
  1. Click 'Continue' and select 'Register for Nessus Essentials'.
Nessus essentials
Thereafter click continue again.
  1. Now click 'Skip' and thereafter input your activation code.
  2. Now you can create your account, make sure to use a strong password.
  3. It will now install all plugins required for using Nessus. After you can simply login and you will be met by the dashboard.
Nessus dashboard

Questions(s)

What is the name of the button which is used to launch a scan?

New scan
Under the sidemenu "My Scans"

Answers(s)

New Scan


Questions(s)

What side menu option allows us to create custom templates?

Custom templates can be found under Policies

Answers(s)

Policies


Questions(s)

What menu allows us to change plugin properties such as hiding them or changing their severity?

Plugin Rules

Answers(s)

Plugin Rules


Questions(s)

In the 'Scan Templates' section after clicking on 'New Scan', what scan allows us to see simply what hosts are alive?

Host Discovery

Answers(s)

Host Discovery


Questions(s)

One of the most useful scan types, which is considered to be 'suitable for any host'?

Basic Network Scan

Answers(s)

Basic Network Scan


Questions(s)

What scan allows you to 'Authenticate to hosts and enumerate missing updates'?

Credentialed Patch Audit

Answers(s)

Credentialed Patch Audit


Questions(s)

What scan is specifically used for scanning Web Applications?

Web application tests

Answers(s)

Web Application Tests


Scanning

By following the directions given by the task we can easily answer the three first questions:

Questions(s)

  1. Create a new 'Basic Network Scan' targeting the deployed VM. What option can we set under 'BASIC' (on the left) to set a time for this scan to run? This can be very useful when network congestion is an issue.
  2. Under 'DISCOVERY' (on the left) set the 'Scan Type' to cover ports 1-65535. What is this type called?
  3. What 'Scan Type' can we change to under 'ADVANCED' for lower bandwidth connection?

Answers(s)

  1. Schedule
  2. Port scan (all ports)
  3. Scan low bandwidth links

Make sure to configure these settings and launch the scan.

launch-scan.png

Now let the scanner run for a while and then answer the two last questions.

Question

After the scan completes, which 'Vulnerability' in the 'Port scanners' family can we view the details of to see the open ports on this host?

Navigating to the vulnerability tab

Answer

Nessus SYN scanner


Question

What Apache HTTP Server Version is reported by Nessus?

Version 2.4.99
Version: 2.4.99

Answer

2.4.99


Scanning a Web Application

Create a 'New Scan' and fill out the basic information once again. To avoid scanning more ports than we have to, navigate to 'Discovery' and set it to custom. Thereafter go to 'Port Scanning' and choose 80 as the scanning range.

Change to only port 80

Now launch the scan and go grab a coffee (or a cuppa for the brits).

Question

What is the plugin id of the plugin that determines the HTTP server type and version?

The name of the plugin you are looking for is HTTP Server Type and Version. The id is indicated by the hashtag.

Answer

10107


Question

What authentication page is discovered by the scanner that transmits credentials in cleartext?

Transmissions in clear text

Answer

login.php


Question

What is the file extension of the config backup?

Backup files

Answer

.bak


Question

Which directory contains example documents? (This will be in a php directory)

Examples page

Answer

/external/phpids/0.6/docs/examples/


Question

What vulnerability is this application susceptible to that is associated with X-Frame-Options?

Clickjacking vulnerability

Answer

Clickjacking


Support me

Thank you so much for reading and I hope you found it inspirational or helpful! You can best support me by doing any of the following bellow!

  • Turn off Adblocker: A simple yet impactful way to support me for free.
  • Sign Up: If you haven't already, consider signing up to get access to more content and receive optional newsletters.
  • Buy Premium: Explore the Premium option for additional perks and exclusive content.
  • Give a Tip: Your generosity is always very appreciated.

You can read more about the perks of being a Member or Subscriber here.

Additionally, you can stay updated and engage with me on social media:

  • Twitter: Follow for real-time updates and insights.
  • LinkedIn: Connect with me on a professional platform.

Contact me here: [email protected]

Discussion

Become a member and never miss a post!

By signing up you have read and agree to the Privacy Policy.

Newsletter

Bonus content

Learn more...

Continue reading

Continue reading

Continue reading