Skip to content

Commit

Permalink
Merge pull request #94 from projectdiscovery/wappalyzer-more-enhancem…
Browse files Browse the repository at this point in the history
…ents

New ParsedPattern for better pattern parsing + tests + bug fixes
  • Loading branch information
Ice3man543 committed Jun 20, 2024
2 parents b3e57fe + 4ca4b49 commit 215e963
Show file tree
Hide file tree
Showing 10 changed files with 463 additions and 186 deletions.
4 changes: 2 additions & 2 deletions fingerprint_body.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
)

// checkBody checks for fingerprints in the HTML body
func (s *Wappalyze) checkBody(body []byte) []string {
var technologies []string
func (s *Wappalyze) checkBody(body []byte) []matchPartResult {
var technologies []matchPartResult

bodyString := unsafeToString(body)

Expand Down
2 changes: 1 addition & 1 deletion fingerprint_cookies.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

// checkCookies checks if the cookies for a target match the fingerprints
// and returns the matched IDs if any.
func (s *Wappalyze) checkCookies(cookies []string) []string {
func (s *Wappalyze) checkCookies(cookies []string) []matchPartResult {
// Normalize the cookies for further processing
normalized := s.normalizeCookies(cookies)

Expand Down
2 changes: 1 addition & 1 deletion fingerprint_headers.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

// checkHeaders checks if the headers for a target match the fingerprints
// and returns the matched IDs if any.
func (s *Wappalyze) checkHeaders(headers map[string]string) []string {
func (s *Wappalyze) checkHeaders(headers map[string]string) []matchPartResult {
technologies := s.fingerprints.matchMapString(headers, headersPart)
return technologies
}
Expand Down
Loading

0 comments on commit 215e963

Please sign in to comment.