25 lines
728 B
Bash
Executable File
25 lines
728 B
Bash
Executable File
#!/bin/bash
|
||
url="$(url_decode "$(url_decode "$(sed -E 's/\?/<2F><>Lun4_iS_CuTe<54>/;s/^(.*)<29><>Lun4_iS_CuTe<54>//;s/'"${cfg[proxy_param]}"'=//g' <<< "${r[url]}")")")"
|
||
|
||
if [[ $(grep -Poh "${cfg[proxy_url]}" <<< "$url") == '' ]]; then
|
||
exit 1
|
||
fi
|
||
|
||
host="$(sed -E 's@http(s|)://@@;s@/.*@@' <<< "$url")"
|
||
headers="$(tr '\r' '\n' <<< "${r[req_headers]}")"
|
||
headers+=$'\n'
|
||
|
||
|
||
while read line; do
|
||
if [[ "$line" != "GET"* && "$line" != "Host:"* && "$line" != '' ]]; then
|
||
params+="-H '$line' "
|
||
fi
|
||
done <<< "$headers"
|
||
|
||
curl -v --http1.1 "$url" "$params" -D /dev/stdout | grep -aiv "Transfer-Encoding: chunked"
|
||
#if [[ "$url" == "https"* ]]; then
|
||
#nc $host 443 --ssl -C -i 0.1 --no-shutdown
|
||
#else
|
||
#nc $host 80 -C -i 0.1 --no-shutdown
|
||
#fi
|