This commit is contained in:
gospider
2024-03-30 20:00:39 +08:00
parent 1c4caa40a5
commit 18a9e2d8c2
4 changed files with 6 additions and 5 deletions

2
go.mod
View File

@@ -7,7 +7,7 @@ require (
github.com/gospider007/bs4 v0.0.0-20240315012430-de09bacaf4da
github.com/gospider007/gson v0.0.0-20240320040553-de4a050b30c2
github.com/gospider007/gtls v0.0.0-20240104034426-5073ca328e04
github.com/gospider007/ja3 v0.0.0-20240330100920-8fe999a5a4e8
github.com/gospider007/ja3 v0.0.0-20240330115828-0a967d564bbe
github.com/gospider007/net v0.0.0-20240330101015-7f9e64d8d506
github.com/gospider007/re v0.0.0-20240227100911-e27255e48eff
github.com/gospider007/tools v0.0.0-20231202084937-8b2bc66f8198

4
go.sum
View File

@@ -30,8 +30,8 @@ github.com/gospider007/gson v0.0.0-20240320040553-de4a050b30c2 h1:pS4rcG7+3YDiNZ
github.com/gospider007/gson v0.0.0-20240320040553-de4a050b30c2/go.mod h1:tL+3YduR/6ofo4cdv4lpBw5+nph0OJ11x1uOKLyo9Ro=
github.com/gospider007/gtls v0.0.0-20240104034426-5073ca328e04 h1:iAmk4YVKoOllDO9LryTAMWUgjEAALG1KYWLiRim+LfI=
github.com/gospider007/gtls v0.0.0-20240104034426-5073ca328e04/go.mod h1:3yfOTfRE03+Itp1M+paIy+AJVVpoTFyRyqJboTNLrSg=
github.com/gospider007/ja3 v0.0.0-20240330100920-8fe999a5a4e8 h1:Z1YuTCClvFKhq6eUP2Ik/GmHFP/h230wAdmTxqSRmGU=
github.com/gospider007/ja3 v0.0.0-20240330100920-8fe999a5a4e8/go.mod h1:dxE+wtLb/pYgf8h/P6TSN68qDZnJ9QohGf5p3G2cfL4=
github.com/gospider007/ja3 v0.0.0-20240330115828-0a967d564bbe h1:BZ782gk3qej5JdnAx0JqtWD9NDStg81Ff2y8TK2CRQ4=
github.com/gospider007/ja3 v0.0.0-20240330115828-0a967d564bbe/go.mod h1:dxE+wtLb/pYgf8h/P6TSN68qDZnJ9QohGf5p3G2cfL4=
github.com/gospider007/kinds v0.0.0-20231024093643-7a4424f2d30e h1:lmX6IQKkrNDbXfHsvrv1Uz0MoG2v5+4VC6Gdh9irUNY=
github.com/gospider007/kinds v0.0.0-20231024093643-7a4424f2d30e/go.mod h1:nB4OMmd8Ji92yEmgjbHcqLcBHTAhSSmlGNb2JpTYK9A=
github.com/gospider007/net v0.0.0-20240330101015-7f9e64d8d506 h1:tIDjpCnm4DTvFeXb46A7CU5IsvPdD/MEzgMjoqX/E9c=

View File

@@ -25,7 +25,7 @@ func TestJa3(t *testing.T) {
t.Fatal(err)
}
jsonData, err := resp.Json() //parse json
// log.Print(jsonData.Find("scrapfly_fp"))
log.Print(jsonData.Find("scrapfly_fp"))
ja3 := jsonData.Get("tls.ja3") //get ja3 value
if ja3 == nil {
t.Fatal("not found ja3")

View File

@@ -32,7 +32,8 @@ func TestOrderHeaders(t *testing.T) {
t.Fatal("not found akamai")
}
i := -1
// log.Print(jsonData)
// log.Print(header_order)
// log.Print(headers.Keys())
kks := []string{}
for _, kk := range headers.Keys() {
kks = append(kks, textproto.CanonicalMIMEHeaderKey(kk))