From ba252f575096ca4b7f7525d576d93c5a1e7953ea Mon Sep 17 00:00:00 2001 From: Damian Bednarczyk Date: Thu, 30 Nov 2023 19:24:50 -0600 Subject: [PATCH] add other headers --- .../requestmodifers/masquerade_as_trusted_bot.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/proxychain/requestmodifers/masquerade_as_trusted_bot.go b/proxychain/requestmodifers/masquerade_as_trusted_bot.go index 658543b..49cadad 100644 --- a/proxychain/requestmodifers/masquerade_as_trusted_bot.go +++ b/proxychain/requestmodifers/masquerade_as_trusted_bot.go @@ -81,7 +81,19 @@ func masqueradeAsTrustedBot(botUA string, botIP string, ja3 string) proxychain.R return func(chain *proxychain.ProxyChain) error { chain.AddOnceRequestModifications( SpoofUserAgent(botUA), - SetRequestHeader("x-forwarded-for", botIP), + + // general / nginx + SetRequestHeader("X-Forwarded-For", botIP), + SetRequestHeader("X-Real-IP", botIP), + // akamai + SetRequestHeader("True-Client-IP", botIP), + // cloudflare + SetRequestHeader("CF-Connecting-IP", botIP), + // weblogic + SetRequestHeader("WL-Proxy-Client-IP", botIP), + // azure + SetRequestHeader("X-Cluster-Client-IP", botIP), + DeleteRequestHeader("referrer"), DeleteRequestHeader("origin"), )