# Task 2 - Installing RustScan

## Task 2 - Installing RustScan

{% hint style="danger" %}
This task is woefully out-of-date so just ignore the installation steps in each THM question and submit all the flags as no answer is needed. Follow the installation steps in this guide instead to obtain the tool.
{% endhint %}

{% embed url="<https://hub.docker.com/r/rustscan/rustscan/>" %}
<https://hub.docker.com/r/rustscan/rustscan/>
{% endembed %}

#### RustScan Installation

1. Install docker:\
   `sudo apt install docker.io`
2. Enable docker:\
   `sudo systemctl enable docker --now`
3. Download rustscan from dockerhub:\
   `sudo docker pull rustscan/rustscan`
4. Add an alias to run the docker command for rustscan:\
   `alias rustscan='sudo docker run -it --rm --name rustscan rustscan/rustscan:latest'`

### Go to RustScan Repo.

{% hint style="success" %}
No answer needed
{% endhint %}

### Download the .deb file for Kali Linux. (rustscan\_1.8.0\_amd64.deb)

{% hint style="success" %}
No answer needed
{% endhint %}

### In terminal type:- dpkg -i

{% hint style="success" %}
No answer needed
{% endhint %}

### Try running rustscan in terminal.

{% hint style="success" %}
No answer needed
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://thmflags.gitbook.io/thm-walkthroughs/difficulty-easy/rustscan/task-2-installing-rustscan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
