add TLS fingerprint (ja3) spoofer request modifier

This commit is contained in:
Kevin Pham
2023-11-27 16:30:13 -06:00
parent 2dccc7ca35
commit 7b3aecca7d
8 changed files with 553 additions and 69 deletions

View File

@@ -31,17 +31,16 @@ func NewProxySiteHandler(opts *ProxyOptions) fiber.Handler {
SetFiberCtx(c).
SetDebugLogging(opts.Verbose).
SetRequestModifications(
rx.MasqueradeAsGoogleBot(),
rx.MasqueradeAsFacebookBot(),
rx.DeleteOutgoingCookies(),
// rx.RequestArchiveIs(),
rx.MasqueradeAsGoogleBot(),
// rx.RequestArchiveIs(),
).
AddResponseModifications(
tx.BypassCORS(),
tx.BypassContentSecurityPolicy(),
tx.DeleteIncomingCookies(),
tx.RewriteHTMLResourceURLs(),
tx.PatchDynamicResourceURLs(),
//tx.BypassContentSecurityPolicy(),
//tx.DeleteIncomingCookies(),
//tx.RewriteHTMLResourceURLs(),
//tx.PatchDynamicResourceURLs(),
).
Execute()