总结红队作战工具流程

admin 2022年6月18日23:02:30评论30 views字数 2735阅读9分7秒阅读模式

本列表,收集一些在服务器上运行的一些工具,组建自动化,服务器长期挂跑项目 欢迎提issues,来丰富工作流程,比如自己挖洞时候的一些简易流程,工具+调用命令, 在我的日常渗透中,我发现我重复调用几个工具,但是不同的调用组合渗透的工作流程,有时候调用命令会忘记,所以有了这个列表,来达到帮助我记忆一些流程命令的文档,未来还会细化过程,脚本小子福音了


//子域名获取

subdomain3 

https://github.com/yanxiu0614/subdomain3/blob/master/README_ZH.md

subfinder 

 https://github.com/projectdiscovery/subfinder

DNS枚举

https://github.com/projectdiscovery/dnsx

端口扫描


https://github.com/projectdiscovery/naabu


//存活验证

httpx  https://github.com/projectdiscovery/httpx

批量目录扫描https://github.com/H4ckForJob/dirmap

命令行调用命令

subfinder -silent -dL domain.txt | dnsx -silent | naabu -top-ports 1000 -silent| httpx -title -tech-detect -status-code
subfinder -d domain.net -silent | ksubdomain e --stdin --silent | naabu -top-ports 1000 -silent
subfinder -silent -dL domain.txt | dnsx -silent | httpx -o output.txt
subfinder -d domain.com -silent
subfinder -silent -dL domain.txt | dnsx -silent | httpx -mc 200 -timeout 30 -o output.txt


//去重对比

anew   https://github.com/tomnomnom/anew

//获取子域名,对比文件,验证存活,达到监听新资产的目的

subfinder -silent -dL domain.txt | anew domians.txt | httpx -title -tech-detect -status-code

视觉侦查https://github.com/sensepost/gowitness

gowitness file <urlslist.txt>

网站历史URL获取

gau   https://github.com/lc/gau

hakrawler https://github.com/hakluke/hakrawler

waybackurls https://github.com/tomnomnom/waybackurls

gospider https://github.com/jaeles-project/gospider

爬虫获取链接,运行20个站点每个站点10个爬虫gospider -S domain.txt -o output.txt -c 10 -d 1 -t 20
通过爬虫获取链接包含子域名gospider -s "https://google.com/" -o output -c 10 -d 1 --other-source --include-subs
对文件进行处理过滤出js文件gospider -S urls.txt | grep js | tee -a js-urls.txt

针对单一网站与文件,调用命令进行打点


echo domain.com  | gau  --blacklist  png,jpg,gif,html,eot,svg,woff,woff2  | httpx -title -tech-detect -status-code
cat domian.txt | gau --blacklist png,jpg,gif,html,eot,svg,woff,woff2 | httpx -title -tech-detect -status-code
此命令也获取了标题,直接操作httpx即可衔接下一个命令运行工具

针对JS进行提取敏感字段https://github.com/machinexa2/Nemesis

或许你需要一些命令

cat livejs.txt | grep devcat livejs.txt | grep appcat livejs.txt | grep static

提取器

提取JS命令  https://github.com/tomnomnom/fff

cat jslist.txt | fff | grep 200 | cut -d “ “ -f1 | tee livejs.txt

目录FUZZ扫描https://github.com/ffuf/ffuf

对UEL进行提取https://github.com/tomnomnom/gf

cat subdomains.txt | waybackurls | gf xss | qsreplace | tee xss.txt

XRAY 命令行批量扫描

针对单个域名进行子域名爆破,使用GAU提取链接,httpx验证存活,推送到XRAY进行爬虫扫描。

subfinder -d domain.com -silent | gau  --blacklist  png,jpg,gif,html,eot,svg,woff,woff2  | httpx -o 200.txt
for i in $(cat 200.txt);do echo "xray scanning $i" ; ./xray webscan --browser-crawler $i --html-output vuln.html; done

XSS扫描

https://github.com/hahwul/dalfox

 cat url.txt | hakrawler -subs |grep -v key | grep key |grep -v google | grep = | dalfox pipe --silence --skip-bav

隐藏参数枚举https://github.com/s0md3v/Arjun

单目标扫描arjun -u https://api.example.com/endpoint单目标扫描输出arjun -u https://api.example.com/endpoint -oJ result.json多目标扫描arjun -i targets.txt
指定方法arjun -u https://api.example.com/endpoint -m POST



持续更新中

原文地址;https://github.com/s7safe/Rad-Team-tools

原文始发于微信公众号(渗透云笔记):总结红队作战工具流程

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2022年6月18日23:02:30
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   总结红队作战工具流程http://cn-sec.com/archives/1127160.html

发表评论

匿名网友 填写信息