Skip to content

Commit

Permalink
tweak to the cumulative comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
caffix committed Feb 25, 2019
1 parent 507fa68 commit 2282893
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion amass/resolvers.go
Expand Up @@ -256,7 +256,9 @@ func (r *resolver) processMessage(msg *dns.Msg) {
// Check that the query was successful
if msg.Rcode != dns.RcodeSuccess {
var again bool
if msg.Rcode == dns.RcodeRefused || msg.Rcode == dns.RcodeServerFailure {
if msg.Rcode == dns.RcodeRefused ||
msg.Rcode == dns.RcodeServerFailure ||
msg.Rcode == dns.RcodeNotImplemented {
again = true
}
r.returnRequest(req, &resolveResult{
Expand Down
4 changes: 2 additions & 2 deletions cmd/amass.tracker/main.go
Expand Up @@ -168,8 +168,8 @@ func cumulativeOutput(domain string, enums []string, ea, la []time.Time, h handl
filter := utils.NewStringFilter()

var cum []*core.Output
for _, enum := range enums[:idx] {
for _, out := range getEnumDataInScope(domain, enum, h) {
for i := idx - 1; i >= 0; i-- {
for _, out := range getEnumDataInScope(domain, enums[i], h) {
if !filter.Duplicate(out.Name) {
cum = append(cum, out)
}
Expand Down

0 comments on commit 2282893

Please sign in to comment.