> For the complete documentation index, see [llms.txt](https://lanzt.gitbook.io/cheatsheet-pentest/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lanzt.gitbook.io/cheatsheet-pentest/pivoting/transfer-files.md).

# Transfer files

If we have a big file and the victim machine has an external connection (to internet), we could create our public server to share that file.

## ngrok

From here <https://ngrok.com/docs/getting-started/>

```bash
python3 -m http.server 8000
```

```bash
ngrok http 8000
```

It will generate a link like this:

```
https://58f1-121-21-165-169.ngrok-free.app
```

And we can access to it (and its files) from any machine.
