# Bringing Internet Access

## Internet Access for Machine B Through A using Rinetd

### Scenario/Goal

Machine A and B are compromised to the levels indicated. We require internet access on machine B to elevate privilege and further penetration into the network.

| Machine A           | Requirements       |
| ------------------- | ------------------ |
| Level of Compromise | Elevated Privilege |
| Internet Access     | Yes                |
| Software Required   | Rinetd Service     |

| Machine B           | Requirements   |
| ------------------- | -------------- |
| Level of Compromise | User Privilege |
| Internet Access     | No             |
| Softwares           |                |

{% hint style="warning" %}
Firewall stops machine B from accessing the internet. There is no restriction between A & B
{% endhint %}

#### Machine A

```
sudo apt update && sudo apt install rinetd
vim /etc/rinetd.conf
0.0.0.0 80 <IP of maching to be accessed> 80 #Include this line in the conf 
sudo service rinetd restart
```

#### Machine B

```
nc -nvv <IP of Machine running Rinetd> 80
GET / HTTP/1.0 #URL to be accessed
```


---

# 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://docs.particle42.com/pivoting/bringing-internet-access.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.
