All Projects → boy-hack → ksubdomain

boy-hack / ksubdomain

Licence: MIT license
Subdomain enumeration tool, asynchronous dns packets, use pcap to scan 1600,000 subdomains in 1 second

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to ksubdomain

Sonarsearch
A MongoDB importer and API for Project Sonars DNS datasets
Stars: ✭ 297 (-7.19%)
Mutual labels:  subdomain, bugbounty
Reconftw
reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities
Stars: ✭ 974 (+204.38%)
Mutual labels:  subdomain, bugbounty
Oneforall
OneForAll是一款功能强大的子域收集工具
Stars: ✭ 4,202 (+1213.13%)
Mutual labels:  subdomain, bugbounty
Domainker
BugBounty Tool
Stars: ✭ 40 (-87.5%)
Mutual labels:  subdomain, bugbounty
Dnsprobe
DNSProb is a tool built on top of retryabledns that allows you to perform multiple dns queries of your choice with a list of user supplied resolvers.
Stars: ✭ 221 (-30.94%)
Mutual labels:  subdomain, bugbounty
Osmedeus
Fully automated offensive security framework for reconnaissance and vulnerability scanning
Stars: ✭ 3,391 (+959.69%)
Mutual labels:  subdomain, bugbounty
Subover
A Powerful Subdomain Takeover Tool
Stars: ✭ 607 (+89.69%)
Mutual labels:  subdomain, bugbounty
sub404
A python tool to check subdomain takeover vulnerability
Stars: ✭ 205 (-35.94%)
Mutual labels:  subdomain, bugbounty
Can I Take Over Xyz
"Can I take over XYZ?" — a list of services and how to claim (sub)domains with dangling DNS records.
Stars: ✭ 2,808 (+777.5%)
Mutual labels:  subdomain, bugbounty
Acamar
A Python3 based single-file subdomain enumerator
Stars: ✭ 89 (-72.19%)
Mutual labels:  subdomain, bugbounty
Dictionary Of Pentesting
Dictionary collection project such as Pentesing, Fuzzing, Bruteforce and BugBounty. 渗透测试、SRC漏洞挖掘、爆破、Fuzzing等字典收集项目。
Stars: ✭ 492 (+53.75%)
Mutual labels:  subdomain, bugbounty
magicRecon
MagicRecon is a powerful shell script to maximize the recon and data collection process of an objective and finding common vulnerabilities, all this saving the results obtained in an organized way in directories and with various formats.
Stars: ✭ 478 (+49.38%)
Mutual labels:  subdomain, bugbounty
Subjack
Subdomain Takeover tool written in Go
Stars: ✭ 1,194 (+273.13%)
Mutual labels:  subdomain, bugbounty
ras-fuzzer
RAS(RAndom Subdomain) Fuzzer
Stars: ✭ 42 (-86.87%)
Mutual labels:  subdomain, bugbounty
Sub-Drill
A very (very) FAST and simple subdomain finder based on online & free services. Without any configuration requirements.
Stars: ✭ 70 (-78.12%)
Mutual labels:  subdomain, bugbounty
requests-ip-rotator
A Python library to utilize AWS API Gateway's large IP pool as a proxy to generate pseudo-infinite IPs for web scraping and brute forcing.
Stars: ✭ 323 (+0.94%)
Mutual labels:  bugbounty
Galaxy-Bugbounty-Checklist
Tips and Tutorials for Bug Bounty and also Penetration Tests.
Stars: ✭ 34 (-89.37%)
Mutual labels:  bugbounty
ldap2json
The ldap2json script allows you to extract the whole LDAP content of a Windows domain into a JSON file.
Stars: ✭ 56 (-82.5%)
Mutual labels:  bugbounty
spellbook
Framework for rapid development and reusable of security tools
Stars: ✭ 67 (-79.06%)
Mutual labels:  bugbounty
Laravel-Tongue
🎉 Finally a subdomain localization that works how you want it to work. 🌐
Stars: ✭ 28 (-91.25%)
Mutual labels:  subdomain

ksubdomain是一款基于无状态的子域名爆破工具,类似无状态端口扫描,支持在Windows/Linux/Mac上进行快速的DNS爆破,拥有重发机制不用担心漏包。

hacking8信息流的src资产收集 https://i.hacking8.com/src/ 用的是ksubdomain

安装

  1. 下载二进制 https://github.com/boy-hack/ksubdomain/releases
  2. 安装libpcap环境
    • Windows 下载npcap驱动,winpcap驱动有人反馈无效
    • Linux 已经静态编译打包libpcap,无需其他操作
    • MacOS 自带libpcap,无需其他操作
  3. 执行!

快速安装

需要go 1.17以上版本并安装libpcap环境,运行以下命令

go install -v github.com/boy-hack/ksubdomain/cmd/ksubdomain@latest

Useage

NAME:
   KSubdomain - 无状态子域名爆破工具

USAGE:
   ksubdomain [global options] command [command options] [arguments...]

VERSION:
   1.8.6

COMMANDS:
   enum, e    枚举域名
   verify, v  验证模式
   test       测试本地网卡的最大发送速度
   help, h    Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help (default: false)
   --version, -v  print the version (default: false)

模式

验证模式 提供完整的域名列表,ksubdomain负责快速获取结果

./ksubdomain verify -h

NAME:
   ksubdomain verify - 验证模式

USAGE:
   ksubdomain verify [command options] [arguments...]

OPTIONS:
   --filename value, -f value   验证域名文件路径
   --band value, -b value       宽带的下行速度,可以5M,5K,5G (default: "2m")
   --resolvers value, -r value  dns服务器文件路径,一行一个dns地址
   --output value, -o value     输出文件名
   --silent                     使用后屏幕将仅输出域名 (default: false)
   --retry value                重试次数,当为-1时将一直重试 (default: 3)
   --timeout value              超时时间 (default: 6)
   --stdin                      接受stdin输入 (default: false)
   --only-domain, --od          只打印域名,不显示ip (default: false)
   --not-print, --np            不打印域名结果 (default: false)
   --dns-type value             dns类型 1为a记录 2为ns记录 5为cname记录 16为txt (default: 1)
   --help, -h                   show help (default: false)
从文件读取 
./ksubdomain v -f dict.txt

从stdin读取
echo "www.hacking8.com"|./ksubdomain v --stdin

读取ns记录
echo "hacking8.com" | ./ksubdomain v --stdin --dns-type 2

枚举模式 只提供一级域名,指定域名字典或使用ksubdomain内置字典,枚举所有二级域名

./ksubdomain enum -h

NAME:
   ksubdomain enum - 枚举域名

USAGE:
   ksubdomain enum [command options] [arguments...]

OPTIONS:
   --band value, -b value          宽带的下行速度,可以5M,5K,5G (default: "2m")
   --resolvers value, -r value     dns服务器文件路径,一行一个dns地址
   --output value, -o value        输出文件名
   --silent                        使用后屏幕将仅输出域名 (default: false)
   --retry value                   重试次数,当为-1时将一直重试 (default: 3)
   --timeout value                 超时时间 (default: 6)
   --stdin                         接受stdin输入 (default: false)
   --only-domain, --od             只打印域名,不显示ip (default: false)
   --not-print, --np               不打印域名结果 (default: false)
   --dns-type value                dns类型 1为a记录 2为ns记录 5为cname记录 16为txt (default: 1)
   --domain value, -d value        爆破的域名
   --domainList value, --dl value  从文件中指定域名
   --filename value, -f value      字典路径
   --skip-wild                     跳过泛解析域名 (default: false)
   --level value, -l value         枚举几级域名,默认为2,二级域名 (default: 2)
   --level-dict value, --ld value  枚举多级域名的字典文件,当level大于2时候使用,不填则会默认
   --help, -h                      show help (default: false)
./ksubdomain e -d baidu.com

从stdin获取
echo "baidu.com"|./ksubdomain e --stdin

特性和Tips

  • 无状态爆破,有失败重发机制,速度极快
  • 中文帮助,-h会看到中文帮助
  • 两种模式,枚举模式和验证模式,枚举模式内置10w字典
  • 将网络参数简化为了-b参数,输入你的网络下载速度如-b 5m,将会自动限制网卡发包速度。
  • 可以使用./ksubdomain test来测试本地最大发包数
  • 获取网卡改为了全自动并可以根据配置文件读取。
  • 会有一个时时的进度条,依次显示成功/发送/队列/接收/失败/耗时 信息。
  • 不同规模的数据,调整 --retry --timeout参数即可获得最优效果
  • 当--retry为-1,将会一直重试直到所有成功。
  • 支持爆破ns记录

与massdns、dnsx对比

使用100w字典,在4H5M的网络环境下测试

ksubdomain massdns dnsx
支持系统 Windows/Linux/Darwin Windows/Linux/Darwin Windows/Linux/Darwin
功能 支持验证和枚举 只能验证 只能验证
发包方式 pcap网卡发包 epoll,pcap,socket socket
命令行 time ./ksubdomain v -b 5m -f d2.txt -o ksubdomain.txt -r dns.txt --retry 3 --np time ./massdns -r dns.txt -t AAAA -w massdns.txt d2.txt --root -o L time ./dnsx -a -o dnsx.txt -r dns.txt -l d2.txt -retry 3 -t 5000
备注 加了--np 防止打印过多
结果 耗时:1m28.273s
成功个数:1397
耗时:3m29.337s
成功个数:1396
耗时:5m26.780s
成功个数:1396

ksubdomain只需要1分半,速度远远比massdns、dnsx快~

参考

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].