Skip to content

Commit

Permalink
improve detection message
Browse files Browse the repository at this point in the history
  • Loading branch information
nl5887 committed Dec 15, 2021
1 parent de7e28b commit a15df79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/app.go
Expand Up @@ -832,7 +832,7 @@ func (b *fuzzer) RecursivePatch(w []string, h []byte, r ArchiveReader, aw Archiv

if !b.IsAllowList(h) {
b.stats.IncVulnerableFile()
fmt.Fprintln(b.writer.Bypass(), color.RedString("[!][%s] found JndiLookup.class with hash %x (version: %s) \u001b[0K", strings.Join(append(w, f.Name()), " -> "), h, version))
fmt.Fprintln(b.writer.Bypass(), color.RedString("[!][%s] found JndiLookup class file with hash %x (version: %s) \u001b[0K", strings.Join(append(w, f.Name()), " -> "), h, version))

if _, ok := v.(*DirectoryFile); ok {
return true, os.Rename(f.Name(), fmt.Sprintf("%s.vulnerable", f.Name()))
Expand Down Expand Up @@ -980,7 +980,7 @@ func (b *fuzzer) RecursiveFind(w []string, h []byte, r ArchiveReader) error {
if !b.IsAllowList(h) {
b.stats.IncVulnerableFile()
// TODO(REMCO) : improve message!
fmt.Fprintln(b.writer.Bypass(), color.RedString("[!][%s] found JndiLookup.class with hash %x (version: %s) \u001b[0K", strings.Join(append(w, f.Name()), " -> "), h, version))
fmt.Fprintln(b.writer.Bypass(), color.RedString("[!][%s] found JndiLookup class file with hash %x (version: %s) \u001b[0K", strings.Join(append(w, f.Name()), " -> "), h, version))
}
}

Expand Down

0 comments on commit a15df79

Please sign in to comment.