diff --git a/examples/nullify.yaml b/examples/nullify.yaml index aa7039b..51ae6ef 100644 --- a/examples/nullify.yaml +++ b/examples/nullify.yaml @@ -112,6 +112,6 @@ integrations: name: John Smith attack_surface: enable: true - enable_dns_traversal: false + enable_dns_enumeration: false domain_names: [172.36.255.7,example.com] ignore_domain_names: [] diff --git a/pkg/merger/merger_test.go b/pkg/merger/merger_test.go index 0517775..f7cc0e8 100644 --- a/pkg/merger/merger_test.go +++ b/pkg/merger/merger_test.go @@ -339,7 +339,7 @@ func TestMergeConfigFiles(t *testing.T) { globalConfig: &models.Configuration{ AttackSurface: &models.AttackSurface{ Enable: true, - EnableDNSTraversal: true, + EnableDNSEnumeration: true, DomainNames: []string{"example.com"}, IgnoreDomainNames: []string{"example2.com"}, }, @@ -352,7 +352,7 @@ func TestMergeConfigFiles(t *testing.T) { PriorityThreshold: parser.DefaultPriorityThreshold, AttackSurface: &models.AttackSurface{ Enable: true, - EnableDNSTraversal: true, + EnableDNSEnumeration: true, DomainNames: []string{"example.com"}, IgnoreDomainNames: []string{"example2.com"}, }, diff --git a/pkg/models/attack_surface.go b/pkg/models/attack_surface.go index 4e3989a..d55b2b5 100644 --- a/pkg/models/attack_surface.go +++ b/pkg/models/attack_surface.go @@ -2,8 +2,8 @@ package models type AttackSurface struct { // global only - Enable bool `yaml:"enable"` - EnableDNSTraversal bool `yaml:"enable_dns_traversal"` - DomainNames []string `yaml:"domain_names,omitempty"` - IgnoreDomainNames []string `yaml:"ignore_domain_names,omitempty"` + Enable bool `yaml:"enable"` + EnableDNSEnumeration bool `yaml:"enable_dns_enumeration"` + DomainNames []string `yaml:"domain_names,omitempty"` + IgnoreDomainNames []string `yaml:"ignore_domain_names,omitempty"` } diff --git a/tests/integration_test.go b/tests/integration_test.go index 22f69e1..437037b 100644 --- a/tests/integration_test.go +++ b/tests/integration_test.go @@ -154,10 +154,10 @@ func TestIntegration(t *testing.T) { }, }, AttackSurface: &models.AttackSurface{ - Enable: true, - EnableDNSTraversal: true, - DomainNames: []string{"172.36.255.7", "example.com"}, - IgnoreDomainNames: []string{"jira.example.com"}, + Enable: true, + EnableDNSEnumeration: true, + DomainNames: []string{"172.36.255.7", "example.com"}, + IgnoreDomainNames: []string{"jira.example.com"}, }, } diff --git a/tests/nullify.yaml b/tests/nullify.yaml index 9cf401d..8f5c1e4 100644 --- a/tests/nullify.yaml +++ b/tests/nullify.yaml @@ -96,6 +96,6 @@ integrations: on_fix_transition: Done attack_surface: enable: true - enable_dns_traversal: true + enable_dns_enumeration: true domain_names: [172.36.255.7,example.com] ignore_domain_names: [jira.example.com]