Skip to content

Commit

Permalink
[fix] 修复泛解析时 map 没有初始化的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yhy0 committed Apr 13, 2022
1 parent a20114e commit 4385f82
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v0.0.9
- [fix] 修复泛解析时 map 没有初始化的 bug

## v0.0.8
- [feat] 优化泛解析,添加参数 mI, 爆破时如果超出一定数量的域名指向同一个 ip,则认为是泛解析(默认 100)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: "", // 爆破子域的域名字典,不填则使用内置的
Expand Down
6 changes: 3 additions & 3 deletions pkg/active/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pkg/active/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion pkg/runner/banner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 4385f82

Please sign in to comment.