# 2025.03.30 - [ranoz] Fix to handle new cookie requirements
# 2025.03.28 - [up_ranoz] Fix to handle new cookie requirements # 2025.03.28 - [up_anonfileio] Add anonfile.io as upload host # 2025.03.28 - [anonfileio] Add anonfile.io as download host # 2025.03.25 - [up_ranoz] Disable MAD randomized extension on uploads (7z block disabled) # 2025.03.21 - [mad] Update random user agents 2025.03 # 2025.03.20 - [jira hosts] Update 3 jira hosts (retention and maxsize) # 2025.03.16 - [torup] Fix torup cookies # 2025.03.15 - [1fichier] Get new node prior to cdn download (greater possibility of a faster node) # 2025.03.10 - [uploadscloud] Add uploadscloud.com as download host
This commit is contained in:
parent
a62ac882de
commit
270e378e08
18 changed files with 1338 additions and 630 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#! Name: torup.sh
|
||||
#! Author: kittykat
|
||||
#! Version: 2025.03.05
|
||||
#! Version: 2025.03.16
|
||||
#! Desc: Add support for downloading and processing of urls for a new host
|
||||
#! Usage: Copy this file into the ./${ScriptDir}/hosts/ folder
|
||||
#!
|
||||
|
|
@ -90,7 +90,7 @@ torp_FetchFileInfo() {
|
|||
CLEANSTRING=${remote_url//[^a-zA-Z0-9]/}
|
||||
trap "rm -f ${WorkDir}/.flocks/${CLEANSTRING}; rm -f "${torp_cookie_jar}"; echo ""; tput cnorm; exit" 0 1 2 3 6 15
|
||||
response=$(tor_curl_request --insecure -L -s \
|
||||
-c "${fdot_cookie_jar}" \
|
||||
-b "${torp_cookie_jar}" -c "${torp_cookie_jar}" \
|
||||
"$fixed_url")
|
||||
if [[ "${DebugAllEnabled}" == "true" ]] ; then
|
||||
debugHtml "${remote_url##*/}" "torp_fetch$i" "${response}"
|
||||
|
|
@ -125,6 +125,7 @@ torp_FetchFileInfo() {
|
|||
if grep -Eqi '/file" class\="btn btn-primary btn-lg">Download Now</a>' <<< "$response"; then
|
||||
printf "\\n"
|
||||
echo -e "${GREEN}| Download url found${NC}"
|
||||
download_url=$(grep -oPi '(?<=\\"props\\":\{\}\},\\"href\\":\\").*?(?=\\"}.*$)' <<< "$response")
|
||||
download_url="${fixed_url}/file"
|
||||
break
|
||||
else
|
||||
|
|
@ -193,11 +194,13 @@ torp_GetFile() {
|
|||
tor_curl_request --insecure -L -G --no-alpn \
|
||||
--speed-limit $DownloadSpeedMin --speed-time $DownloadTimeoutInterval \
|
||||
-b "${torp_cookie_jar}" -c "${torp_cookie_jar}" \
|
||||
-H "Host: ktgzpea2b76u7fgemiibp4a76onyybo4fw5gbsagtm6jrjzmgivppyyd.onion" \
|
||||
-H "Referer: $fixed_url" \
|
||||
"$download_url" --output "$file_path"
|
||||
else
|
||||
tor_curl_request --insecure -L -G --no-alpn \
|
||||
-b "${torp_cookie_jar}" -c "${torp_cookie_jar}" \
|
||||
-H "Host: ktgzpea2b76u7fgemiibp4a76onyybo4fw5gbsagtm6jrjzmgivppyyd.onion" \
|
||||
-H "Referer: $fixed_url" \
|
||||
"$download_url" --output "$file_path"
|
||||
fi
|
||||
|
|
@ -206,6 +209,7 @@ torp_GetFile() {
|
|||
tor_curl_request --insecure -L -G --no-alpn \
|
||||
--speed-limit $DownloadSpeedMin --speed-time $DownloadTimeoutInterval \
|
||||
-H "User-Agent: $RandomUA" \
|
||||
-H "Host: ktgzpea2b76u7fgemiibp4a76onyybo4fw5gbsagtm6jrjzmgivppyyd.onion" \
|
||||
-H "Referer: $fixed_url" \
|
||||
-H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8" \
|
||||
-H "Accept-Language: en-US,en;q=0.5" \
|
||||
|
|
@ -221,6 +225,7 @@ torp_GetFile() {
|
|||
else
|
||||
tor_curl_request --insecure -L -G --no-alpn \
|
||||
-H "User-Agent: $RandomUA" \
|
||||
-H "Host: ktgzpea2b76u7fgemiibp4a76onyybo4fw5gbsagtm6jrjzmgivppyyd.onion" \
|
||||
-H "Referer: $fixed_url" \
|
||||
-H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8" \
|
||||
-H "Accept-Language: en-US,en;q=0.5" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue