프로젝트
GitHub에서 보기
mhmdiaa/second-order
소개
Second-order subdomain takeover scanner
보안 및 개인정보 보호측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSecond Order
Scans web applications for second-order subdomain takeover by crawling the app, and collecting URLs (and other data) that match certain rules, or respond in a certain way.
Installation
From binary
Download a prebuilt binary from the releases page and unzip it.
From source
Go version 1.17 is recommended.
go install -v github.com/mhmdiaa/second-order@latest
Docker
docker pull mhmdiaa/second-order
Command line options
-target string
Target URL
-config string
Configuration file (default "config.json")
-depth int
Depth to crawl (default 1)
-header value
Header name and value separated by a colon 'Name: Value' (can be used more than once)
-insecure
Accept untrusted SSL/TLS certificates
-output string
Directory to save results in (default "output")
-threads int
Number of threads (default 10)
Configuration File
Example configuration files are in config
LogQueries: A map of tag-attribute queries that will be searched for in crawled pages. For example,"a": "href"means log everyhrefattribute of everyatag.LogNon200Queries: A map of tag-attribute queries that will be searched for in crawled pages, and logged only if they contain a valid URL that doesn't return a200status code.LogInline: A list of tags whose inline content (between the opening and closing tags) will be logged, liketitleandscript
Output
All results are saved in JSON files that specify what and where data was found
- The results of
LogQueriesare saved inattributes.json
{
"https://example.com/": {
"input[name]": [
"user",
"id",
"debug"
]
}
}
- The results of
LogNon200Queriesare saved innon-200-url-attributes.json
{
"https://example.com/": {
"script[src]": [
"https://cdn.old_abandoned_domain.com/app.js",
]
}
}
- The results of
LogInlineare saved ininline.json
{
"https://example.com/": {
"title": [
"Example - Home"
]
},
"https://example.com/login": {
"title": [
"Example - login"
]
}
}
Usage Ideas
This is a list of tips and ideas (not necessarily related to second-order subdomain takeover) on what to use Second Order for.
- Check for second-order subdomain takeover: takeover.json. (Duh!)
- Collect inline and imported JS code: javascript.json.
- Find where a target hosts static files cdn.json. (S3 buckets, anyone?)
- Collect
<input>names to build a tailored parameter bruteforcing wordlist: parameters.json. - Feel free to contribute more ideas!
References
https://shubs.io/high-frequency-security-bug-hunting-120-days-120-bugs/#secondorder
관련 프로젝트 살펴보기
불러오는 중…