Skip to content

Commit a0abb17

Browse files
rename enable_dns_traversal to enable_dns_enumeration
1 parent 734f3cf commit a0abb17

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

examples/nullify.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,6 @@ integrations:
112112
name: John Smith
113113
attack_surface:
114114
enable: true
115-
enable_dns_traversal: false
115+
enable_dns_enumeration: false
116116
domain_names: [172.36.255.7,example.com]
117117
ignore_domain_names: []

pkg/merger/merger_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ func TestMergeConfigFiles(t *testing.T) {
339339
globalConfig: &models.Configuration{
340340
AttackSurface: &models.AttackSurface{
341341
Enable: true,
342-
EnableDNSTraversal: true,
342+
EnableDNSEnumeration: true,
343343
DomainNames: []string{"example.com"},
344344
IgnoreDomainNames: []string{"example2.com"},
345345
},
@@ -352,7 +352,7 @@ func TestMergeConfigFiles(t *testing.T) {
352352
PriorityThreshold: parser.DefaultPriorityThreshold,
353353
AttackSurface: &models.AttackSurface{
354354
Enable: true,
355-
EnableDNSTraversal: true,
355+
EnableDNSEnumeration: true,
356356
DomainNames: []string{"example.com"},
357357
IgnoreDomainNames: []string{"example2.com"},
358358
},

pkg/models/attack_surface.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package models
22

33
type AttackSurface struct {
44
// global only
5-
Enable bool `yaml:"enable"`
6-
EnableDNSTraversal bool `yaml:"enable_dns_traversal"`
7-
DomainNames []string `yaml:"domain_names,omitempty"`
8-
IgnoreDomainNames []string `yaml:"ignore_domain_names,omitempty"`
5+
Enable bool `yaml:"enable"`
6+
EnableDNSEnumeration bool `yaml:"enable_dns_enumeration"`
7+
DomainNames []string `yaml:"domain_names,omitempty"`
8+
IgnoreDomainNames []string `yaml:"ignore_domain_names,omitempty"`
99
}

tests/integration_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ func TestIntegration(t *testing.T) {
154154
},
155155
},
156156
AttackSurface: &models.AttackSurface{
157-
Enable: true,
158-
EnableDNSTraversal: true,
159-
DomainNames: []string{"172.36.255.7", "example.com"},
160-
IgnoreDomainNames: []string{"jira.example.com"},
157+
Enable: true,
158+
EnableDNSEnumeration: true,
159+
DomainNames: []string{"172.36.255.7", "example.com"},
160+
IgnoreDomainNames: []string{"jira.example.com"},
161161
},
162162
}
163163

tests/nullify.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,6 @@ integrations:
9696
on_fix_transition: Done
9797
attack_surface:
9898
enable: true
99-
enable_dns_traversal: true
99+
enable_dns_enumeration: true
100100
domain_names: [172.36.255.7,example.com]
101101
ignore_domain_names: [jira.example.com]

0 commit comments

Comments
 (0)