diff --git a/CHANGELOG.md b/CHANGELOG.md index 08ff9a8..7e9cc12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## v0.0.9 +- [fix] 修复泛解析时 map 没有初始化的 bug + ## v0.0.8 - [feat] 优化泛解析,添加参数 mI, 爆破时如果超出一定数量的域名指向同一个 ip,则认为是泛解析(默认 100) diff --git a/README.md b/README.md index 4a83eff..256b0b7 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ func main() { Brute: true, Verify: true, // 验证找到的域名 RemoveWildcard: true, // 泛解析过滤 - MaxIPs: 100, // 爆破时如果超出一定数量的域名指向同一个 ip,则认为是泛解析 + MaxIps: 100, // 爆破时如果超出一定数量的域名指向同一个 ip,则认为是泛解析 Silent: false, // 是否为静默模式,只输出找到的域名 DNS: "cn", // dns 服务器区域选择,根据目标选择不同区域得到的结果不同,国内网站的话,选择 cn,dns 爆破结果比较多 BruteWordlist: "", // 爆破子域的域名字典,不填则使用内置的 diff --git a/pkg/active/options.go b/pkg/active/options.go index 7fa9a66..1a154d8 100644 --- a/pkg/active/options.go +++ b/pkg/active/options.go @@ -12,9 +12,9 @@ type Options struct { FileName string // 字典文件名 Resolvers []string Output string // 输出文件名 - Silent bool - WildcardIPs map[string]struct{} - WildcardIPsAc map[string]struct{} + Silent bool + WildcardIPs map[string]struct{} + WildcardIPsAc map[string]struct{} MaxIPs int TimeOut int Retry int diff --git a/pkg/active/runner.go b/pkg/active/runner.go index e2b1b17..b533f8b 100644 --- a/pkg/active/runner.go +++ b/pkg/active/runner.go @@ -45,6 +45,7 @@ func New(options *Options) (*runner, error) { r := new(runner) r.options = options + r.options.WildcardIPsAc = make(map[string]struct{}) r.ether = device.AutoGetDevices() r.hm = statusdb.CreateMemoryDB() diff --git a/pkg/runner/banner.go b/pkg/runner/banner.go index e7749b4..d6c5425 100644 --- a/pkg/runner/banner.go +++ b/pkg/runner/banner.go @@ -17,7 +17,7 @@ const banner = ` ` // Version is the current version of Starmap -const Version = `v0.0.8` +const Version = `v0.0.9` // showBanner is used to show the banner to the user func showBanner() {