> For the complete documentation index, see [llms.txt](https://docs.particle42.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.particle42.com/pivoting/bringing-internet-access.md).

# 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
```
