hacktricks/pentesting-web/xss-cross-site-scripting/xss-tools.md

75 lines
4.4 KiB
Markdown
Raw Normal View History

2023-08-03 19:12:22 +00:00
# XSS工具
2022-04-28 16:01:33 +00:00
<details>
2023-08-03 19:12:22 +00:00
<summary><a href="https://cloud.hacktricks.xyz/pentesting-cloud/pentesting-cloud-methodology"><strong>☁️ HackTricks云平台 ☁️</strong></a> -<a href="https://twitter.com/hacktricks_live"><strong>🐦 Twitter 🐦</strong></a> - <a href="https://www.twitch.tv/hacktricks_live/schedule"><strong>🎙️ Twitch 🎙️</strong></a> - <a href="https://www.youtube.com/@hacktricks_LIVE"><strong>🎥 Youtube 🎥</strong></a></summary>
2022-04-28 16:01:33 +00:00
2023-08-03 19:12:22 +00:00
* 你在一家**网络安全公司**工作吗你想在HackTricks中看到你的**公司广告**吗?或者你想获得**PEASS的最新版本或下载HackTricks的PDF**吗?请查看[**订阅计划**](https://github.com/sponsors/carlospolop)
* 发现我们的独家[**NFTs**](https://opensea.io/collection/the-peass-family)收藏品[**The PEASS Family**](https://opensea.io/collection/the-peass-family)
* 获得[**官方PEASS和HackTricks周边产品**](https://peass.creator-spring.com)
* **加入** [**💬**](https://emojipedia.org/speech-balloon/) [**Discord群组**](https://discord.gg/hRep4RUj7f) 或 [**Telegram群组**](https://t.me/peass) 或 **关注**我在**Twitter**上的[**🐦**](https://github.com/carlospolop/hacktricks/tree/7af18b62b3bdc423e11444677a6a73d4043511e9/\[https:/emojipedia.org/bird/README.md)[**@carlospolopm**](https://twitter.com/hacktricks_live)**。**
* **通过向[hacktricks repo](https://github.com/carlospolop/hacktricks)和[hacktricks-cloud repo](https://github.com/carlospolop/hacktricks-cloud)提交PR来分享你的黑客技巧**。
2022-04-28 16:01:33 +00:00
</details>
2022-10-03 09:49:04 +00:00
## XSStrike
```bash
git clone https://github.com/s0md3v/XSStrike.git
2022-10-03 09:49:04 +00:00
cd XSStrike
pip install -r requirements.txt
python xsstrike.py
2023-08-03 19:12:22 +00:00
python xsstrike.py -u "http://SERVER_IP:PORT/index.php?task=test"
```
2023-08-03 19:12:22 +00:00
**基本用法Get**\
2022-10-03 09:49:04 +00:00
python3 xsstrike.py --headers -u "http://localhost/vulnerabilities/xss\_r/?name=asd"\
2023-08-03 19:12:22 +00:00
**基本用法Post**\
python xsstrike.py -u "http://example.com/search.php" --data "q=query"\
2023-08-03 19:12:22 +00:00
**爬行默认深度为2**\
python xsstrike.py -u "http://example.com/page.php" --crawl -l 3\
2023-08-03 19:12:22 +00:00
**查找隐藏参数:**\
python xsstrike.py -u "http://example.com/page.php" --params\
2023-08-03 19:12:22 +00:00
**额外选项:**\
\--headers #设置自定义头部如cookies。每次都需要设置\
\--skip-poc\
2023-08-03 19:12:22 +00:00
\--skip-dom #跳过DOM XSS扫描
2022-10-03 09:49:04 +00:00
## BruteXSS
```
git clone https://github.com/rajeshmajumdar/BruteXSS
```
2023-08-03 19:12:22 +00:00
用于使用负载列表和图形用户界面查找易受攻击的GET或POST参数的XSS工具。\
无法配置自定义标头如cookie
2022-10-03 09:49:04 +00:00
## XSSer
[https://github.com/epsylon/xsser](https://github.com/epsylon/xsser)\
2023-08-03 19:12:22 +00:00
已在Kali中安装。\
完整的用于查找XSS的工具。
2023-08-03 19:12:22 +00:00
**基本用法GET**\
\
2023-08-03 19:12:22 +00:00
该工具不发送负载:(
2022-10-03 09:49:04 +00:00
## XSSCrapy
```
git clone https://github.com/DanMcInerney/xsscrapy
```
2023-08-03 19:12:22 +00:00
不推荐使用。输出过多且无效。
2022-10-03 09:49:04 +00:00
## Dalfox
[https://github.com/hahwul/dalfox](https://github.com/hahwul/dalfox)
2022-04-28 16:01:33 +00:00
<details>
2023-04-25 18:35:28 +00:00
<summary><a href="https://cloud.hacktricks.xyz/pentesting-cloud/pentesting-cloud-methodology"><strong>☁️ HackTricks Cloud ☁️</strong></a> -<a href="https://twitter.com/hacktricks_live"><strong>🐦 Twitter 🐦</strong></a> - <a href="https://www.twitch.tv/hacktricks_live/schedule"><strong>🎙️ Twitch 🎙️</strong></a> - <a href="https://www.youtube.com/@hacktricks_LIVE"><strong>🎥 Youtube 🎥</strong></a></summary>
2022-04-28 16:01:33 +00:00
2023-08-03 19:12:22 +00:00
* 你在一家**网络安全公司**工作吗想要在HackTricks中看到你的**公司广告**吗?或者想要获取**PEASS的最新版本或下载PDF格式的HackTricks**吗?请查看[**订阅计划**](https://github.com/sponsors/carlospolop)
* 发现我们的独家[**NFTs**](https://opensea.io/collection/the-peass-family)收藏品——[**The PEASS Family**](https://opensea.io/collection/the-peass-family)
* 获取[**官方PEASS和HackTricks周边产品**](https://peass.creator-spring.com)
* **加入**[**💬**](https://emojipedia.org/speech-balloon/) [**Discord群组**](https://discord.gg/hRep4RUj7f)或[**电报群组**](https://t.me/peass),或者**关注**我在**Twitter**上的[**🐦**](https://github.com/carlospolop/hacktricks/tree/7af18b62b3bdc423e11444677a6a73d4043511e9/\[https:/emojipedia.org/bird/README.md)[**@carlospolopm**](https://twitter.com/hacktricks_live)**。**
* **通过向[hacktricks repo](https://github.com/carlospolop/hacktricks)和[hacktricks-cloud repo](https://github.com/carlospolop/hacktricks-cloud)提交PR来分享你的黑客技巧**。
2022-04-28 16:01:33 +00:00
</details>