# XPath

XSL/Xpath: extensible stylesheet langauge\
Xpath is the xml search and display tool used similar to SQL querying technology.\
\
We test xpath vulns in a verry similar way to sql injection. Then we can automate the fuzzing with **xcat** which is similar in nature to sqlmap.\
\
Testing a true false:

![note the keyword Italy which we can use later for our script search value.](/files/eQvrbnqYUzksrj6knhyX)

![](/files/kelRoVgJZX0JTJoPb9P4)

Then now that we know we are able to run logic commands. Then we test the following to see if we can bleed out the first letter of the node in the xml document.

![](/files/okASBzLSkJ7AGlJ55hIf)

Once we confirm a letter works then we can utilize xcat to automate the full xml document leak.

![](/files/0gyQsR6fTNIbiLAfMQeA)


---

# 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://www.hackbook.io/web-application-hacking/web-techniques/xpath.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.
