# ping6.py

[ping6.py](https://github.com/fortra/impacket/blob/master/examples/ping6.py) allows to do an ICMP6 ping to an IPv6 address from the specified IPv6 interface. Sufficient rights are needed on the machine to open a raw socket.

## Specificities

This script requires the following positional commands line arguments to work:

* required positional argument 1: `<src ip>`: the IPv6 address of the interface to use to send the ping request.
* required positional argument 2: `<dst ip>`: the IPv6 address of the target machine to ping.

```bash
# Send ping requests from "2001:861:4001:14f0:d7cd:f2cc:9344:a13a" to "2001:861:4001:14f0::2791:ec35"
sudo ping6.py "2001:861:4001:14f0:d7cd:f2cc:9344:a13a" "2001:861:4001:14f0::2791:ec35"
```


---

# 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://tools.thehacker.recipes/impacket/examples/ping6.py.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.
