Skip to content

Commit

Permalink
Update loadFinger.go
Browse files Browse the repository at this point in the history
  • Loading branch information
youki992 authored Aug 13, 2024
1 parent a769c4a commit 17059ab
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion pkg/fingerprint/loadFinger.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,28 @@ type Packjson struct {
Fingerprint []Fingerprint
}

type PackjsonSubdomain struct {
Fingerprint []FingerprintRecord
}

type Fingerprint struct {
Cms string
Method string
Location string
Keyword []string
}

type FingerprintRecord struct {
Cname []string
Discussion string
Fingerprint string
Service string
Status string
}

var (
Webfingerprint *Packjson
Webfingerprint *Packjson
Subdomainfingerprint *PackjsonSubdomain
)

func LoadWebfingerprintEhole() error {
Expand All @@ -39,10 +52,24 @@ func LoadWebfingerprintLocal() error {
return nil
}

func LoadSubdomainfingerprint() error {
var config PackjsonSubdomain
err := json.Unmarshal([]byte(subdomainFinger), &config)
if err != nil {
return err
}
Subdomainfingerprint = &config
return nil
}

func GetWebfingerprintLocal() *Packjson {
return Webfingerprint
}

func GetWebfingerprintEhole() *Packjson {
return Webfingerprint
}

func GetWebfingerprintSubdomain() *PackjsonSubdomain {
return Subdomainfingerprint
}

0 comments on commit 17059ab

Please sign in to comment.