Skip to content

Commit

Permalink
Randomized more x-super-properties parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
V4NSH4J committed Jul 12, 2022
1 parent e469466 commit c3229c8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions instance/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ type Head struct {
}

func XSuper(locale string) string {
dec := fmt.Sprintf(`{"os":"Mac OS X","browser":"Chrome","device":"","system_locale":"%s","browser_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36","browser_version":"103.0.5060.114","os_version":"10.15.7","referrer":"","referring_domain":"","referrer_current":"","referring_domain_current":"","release_channel":"stable","client_build_number":%d,"client_event_source":null}`, locale ,rand.Intn(100000) + rand.Intn(10000)+ rand.Intn(1000) + rand.Intn(100))
dec := fmt.Sprintf(`{"os":"Mac OS X","browser":"Chrome","device":"","system_locale":"%s","browser_user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36","browser_version":"103.0.5060.114","os_version":"10.15.7","referrer":"%s","referring_domain":"%s","referrer_current":"%s","referring_domain_current":"%s","release_channel":"stable","client_build_number":136100,"client_event_source":null}`, locale, utilities.RandStringBytes(5), utilities.RandStringBytes(5), utilities.RandStringBytes(5), utilities.RandStringBytes(5))

return base64.StdEncoding.EncodeToString([]byte(dec))
}
}

0 comments on commit c3229c8

Please sign in to comment.