美文网首页
dalfox自动化XSS检测

dalfox自动化XSS检测

作者: Sp0n | 来源:发表于2021-04-04 22:04 被阅读0次

需要用到的工具

工具的各种参数请自行了解。

go环境搭建

# 安装go
sudo apt update
sudo apt install golang
# 找到根目录
sudo find / -name go-*
# 添加环境变量
sudo vim /etc/profile
# 使环境变量生效
source /etc/profile
  • profile文件内容如下(请根据自己实际情况修改)

export GOROOT=/usr/lib/go-1.10
export GOPATH=/root/goProject
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
export PATH=$PATH:$GOPATH/bin


go安装gf、waybackurls和dalfox

go get -u github.com/tomnomnom/waybackurls
go get -u github.com/tomnomnom/gf
GO111MODULE=on go get -v github.com/hahwul/dalfox/v2

添加环境变量

echo 'source $GOPATH/src/github.com/tomnomnom/gf/gf-completion.bash' >> ~/.bashrc
source ~/.bashrc

构建gf规则库

mkdir ~/.gf
cp -r $GOPATH/src/github.com/tomnomnom/gf/examples/* ~/.gf
git clone https://github.com/1ndianl33t/Gf-Patterns
mv ~/Gf-Patterns/*.json ~/.gf

使用

  • waybackurls获取目标urls
echo “testphp.vulnweb.com” | waybackurls | tee urls
也可以传入文件
cat domains.txt | waybackurls |tee urls
  • gf通过规则找到可能存在xss的url,用sed进行处理
cat urls | gf xss | sed ‘s/=.*/=/’ | sed ‘s/URL: //’ | tee testxss.txt
  • 使用dalfox进行自动化xss漏洞挖掘
dalfox file testxss.txt -b tigv2.xss.ht pipe

我的配置文件

笔者这里直接使用了root进行配置(生产环境不推荐直接使用root用户)

/etc/profile ~/.bashrc

总结

测试了一下,,个人感觉:waybackurls收集的urls不够多,没有好的规则库用起来很鸡肋,希望有大佬私聊py一下规则库。

还是xray+burpsuite比较香

相关文章

  • dalfox自动化XSS检测

    需要用到的工具 https://github.com/tomnomnom/gf[https://github.co...

  • XSS漏洞挖掘与利用

    XSS的检测 检测XSS一般分两种方法:一种是手工检测、一种是软件自动检测手工检测:检测结果准确,但对于大型web...

  • BruteXss工具介绍及源码解读

    最近在学xss,碰巧在github上发现了这个xss注入检测工具. github地址:https://github...

  • BurpSuit之XSS检测

    跨站脚本攻击(Cross Site Scripting)是一种将恶意Javascript代码插入到其他Web用户页...

  • 网站漏洞处理总结

    最近实验室网站检测出了漏洞,需要修复,以下对修复内容给做点总结 1. XSS 攻击 XSS 攻击全称跨站脚本攻击,...

  • 橡胶圈自动化检测设备破损自动化检测

    橡胶圈自动化检测设备破损自动化检测, 自动化检测设备深圳市思普泰克科技有限公司成立16年来,一直致力于图像技术及机...

  • App卡顿优化

    自动化卡顿检测方案及优化

  • 跨站攻击脚本-XSS

    XSS: Cross Site Scripting XSS 概念 XSS 分类 反射型xss攻击图示 XSS 攻击...

  • XSS payload.

    alert('XSS') alert("XSS") alert('XSS') alert("XSS") S...

  • test

    alert('xss')alert('xss') alert('xss')

网友评论

      本文标题:dalfox自动化XSS检测

      本文链接:https://www.haomeiwen.com/subject/xqblkltx.html