# 2025.02.12 - [sendnow] Add send.now as download host
# 2025.02.11 - [ranoz] Fix filename (to handle fileid added to download urls) # 2025.02.10 - [mad] Add detection of custom "Removed" response on cdn get from direct links # 2025.02.06 - [ranoz] Add UNAVAILABLE_FOR_LEGAL_REASONS response handling # 2025.02.04 - [mad] Add ConnectTimeoutUpload to separate configurable up/down timeouts
This commit is contained in:
parent
fd4723eb24
commit
0face871aa
12 changed files with 1359 additions and 561 deletions
|
|
@ -1,4 +1,4 @@
|
|||
DateTime: 25.02.02
|
||||
DateTime: 25.02.11
|
||||
|
||||
Files:
|
||||
./hosts/1fichier.sh
|
||||
|
|
@ -62,6 +62,7 @@ Files:
|
|||
./hosts/quax.sh
|
||||
./hosts/ramsgaard.sh
|
||||
./hosts/ranoz.sh
|
||||
./hosts/sendnow.sh
|
||||
./hosts/shareonline.sh
|
||||
./hosts/skrepr.sh
|
||||
./hosts/soyjak.sh
|
||||
|
|
@ -114,6 +115,7 @@ Files:
|
|||
./hosts/up_isupload.sh
|
||||
./hosts/up_kouploader.sh
|
||||
./hosts/up_kraken.sh
|
||||
./hosts/up_lainsafe.sh
|
||||
./hosts/up_linxx.sh
|
||||
./hosts/up_moocloud.sh
|
||||
./hosts/up_nantes.sh
|
||||
|
|
@ -1298,31 +1300,31 @@ _________________________________________________________________________
|
|||
./hosts/fileblade.sh:485: -H "Sec-Fetch-Mode: navigate" \
|
||||
./hosts/fileblade.sh:486: -H "Sec-Fetch-Site: same-origin" \
|
||||
--
|
||||
./hosts/fileditch.sh:85: file_header=$(tor_curl_request --insecure --head -L -s "$download_url")
|
||||
./hosts/fileditch.sh:86: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./hosts/fileditch.sh:87: debugHtml "${remote_url##*/}" "fd_head$j" "download_url: ${download_url}"$'\n'"${file_header}"
|
||||
./hosts/fileditch.sh:88: fi
|
||||
./hosts/fileditch.sh:89: if [ ! -z "$file_header" ] ; then
|
||||
./hosts/fileditch.sh:90: if grep -Eqi '404 Not Found' <<< "${file_header}" ; then
|
||||
./hosts/fileditch.sh:91: echo -e "${RED}| The file has been removed (404).${NC}"
|
||||
./hosts/fileditch.sh:92: removedDownload "${remote_url}"
|
||||
./hosts/fileditch.sh:93: exitDownloadNotAvailable=true
|
||||
./hosts/fileditch.sh:94: return 1
|
||||
./hosts/fileditch.sh:95: fi
|
||||
./hosts/fileditch.sh:96: file_header=$(tor_curl_request --insecure --head -L -s "$download_url")
|
||||
./hosts/fileditch.sh:97: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./hosts/fileditch.sh:98: debugHtml "${remote_url##*/}" "fd_head$j" "download_url: ${download_url}"$'\n'"${file_header}"
|
||||
./hosts/fileditch.sh:99: fi
|
||||
./hosts/fileditch.sh:100: if [ ! -z "$file_header" ] ; then
|
||||
./hosts/fileditch.sh:101: if grep -Eqi '404 Not Found' <<< "${file_header}" ; then
|
||||
./hosts/fileditch.sh:102: echo -e "${RED}| The file has been removed (404).${NC}"
|
||||
./hosts/fileditch.sh:103: removedDownload "${remote_url}"
|
||||
./hosts/fileditch.sh:104: exitDownloadNotAvailable=true
|
||||
./hosts/fileditch.sh:105: return 1
|
||||
./hosts/fileditch.sh:106: fi
|
||||
--
|
||||
./hosts/fileditch.sh:176: tor_curl_request --insecure --speed-limit $DownloadSpeedMin --speed-time $DownloadTimeoutInterval "$download_url" --continue-at - --output "$file_path"
|
||||
./hosts/fileditch.sh:177: else
|
||||
./hosts/fileditch.sh:178: tor_curl_request --insecure "$download_url" --continue-at - --output "$file_path"
|
||||
./hosts/fileditch.sh:179: fi
|
||||
./hosts/fileditch.sh:180: received_file_size=0
|
||||
./hosts/fileditch.sh:181: if [ -f "$file_path" ] ; then
|
||||
./hosts/fileditch.sh:182: received_file_size=$(stat --format="%s" "$file_path" | tr -d '[:space:]')
|
||||
./hosts/fileditch.sh:183: fi
|
||||
./hosts/fileditch.sh:184: if CheckNoHtml "$remote_url" "$filename" "$file_path" ; then
|
||||
./hosts/fileditch.sh:185: containsHtml=false
|
||||
./hosts/fileditch.sh:186: else
|
||||
./hosts/fileditch.sh:187: containsHtml=true
|
||||
./hosts/fileditch.sh:188: fi
|
||||
./hosts/fileditch.sh:187: tor_curl_request --insecure --speed-limit $DownloadSpeedMin --speed-time $DownloadTimeoutInterval "$download_url" --continue-at - --output "$file_path"
|
||||
./hosts/fileditch.sh:188: else
|
||||
./hosts/fileditch.sh:189: tor_curl_request --insecure "$download_url" --continue-at - --output "$file_path"
|
||||
./hosts/fileditch.sh:190: fi
|
||||
./hosts/fileditch.sh:191: received_file_size=0
|
||||
./hosts/fileditch.sh:192: if [ -f "$file_path" ] ; then
|
||||
./hosts/fileditch.sh:193: received_file_size=$(stat --format="%s" "$file_path" | tr -d '[:space:]')
|
||||
./hosts/fileditch.sh:194: fi
|
||||
./hosts/fileditch.sh:195: if CheckNoHtml "$remote_url" "$filename" "$file_path" ; then
|
||||
./hosts/fileditch.sh:196: containsHtml=false
|
||||
./hosts/fileditch.sh:197: else
|
||||
./hosts/fileditch.sh:198: containsHtml=true
|
||||
./hosts/fileditch.sh:199: fi
|
||||
--
|
||||
./hosts/filedot.sh:112: PAGE=$(tor_curl_request --insecure --max-time "$ConnectTimeout" -L -s \
|
||||
./hosts/filedot.sh:113: -H "User-Agent: $RandomUA" \
|
||||
|
|
@ -1953,50 +1955,134 @@ _________________________________________________________________________
|
|||
./hosts/ranoz.sh:99: if [ "${finalAttempt}" == "true" ] ; then
|
||||
./hosts/ranoz.sh:100: failedRetryDownload "${remote_url}" "Failed to extract download url [1]" ""
|
||||
--
|
||||
./hosts/ranoz.sh:158: file_header=$(tor_curl_request --insecure --head -L -i -s "$download_url")
|
||||
./hosts/ranoz.sh:159: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./hosts/ranoz.sh:160: debugHtml "${remote_url##*/}" "rz_head$j" "download_url: ${download_url}"$'\n'"${file_header}"
|
||||
./hosts/ranoz.sh:161: fi
|
||||
./hosts/ranoz.sh:162: if [[ -z $file_header ]] ; then
|
||||
./hosts/ranoz.sh:163: if [ $j == $maxfetchretries ] ; then
|
||||
./hosts/ranoz.sh:164: rm -f "${rz_cookie_jar}";
|
||||
./hosts/ranoz.sh:165: printf "\\n"
|
||||
./hosts/ranoz.sh:166: echo -e "${RED}| Failed to extract file info${NC}"
|
||||
./hosts/ranoz.sh:167: warnAndRetryUnknownError=true
|
||||
./hosts/ranoz.sh:168: if [ "${finalAttempt}" == "true" ] ; then
|
||||
./hosts/ranoz.sh:160: file_header=$(tor_curl_request --insecure --head -L -i -s "$download_url")
|
||||
./hosts/ranoz.sh:161: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./hosts/ranoz.sh:162: debugHtml "${remote_url##*/}" "rz_head$j" "download_url: ${download_url}"$'\n'"${file_header}"
|
||||
./hosts/ranoz.sh:163: fi
|
||||
./hosts/ranoz.sh:164: if [[ -z $file_header ]] ; then
|
||||
./hosts/ranoz.sh:165: if [ $j == $maxfetchretries ] ; then
|
||||
./hosts/ranoz.sh:166: rm -f "${rz_cookie_jar}";
|
||||
./hosts/ranoz.sh:167: printf "\\n"
|
||||
./hosts/ranoz.sh:168: echo -e "${RED}| Failed to extract file info${NC}"
|
||||
./hosts/ranoz.sh:169: warnAndRetryUnknownError=true
|
||||
./hosts/ranoz.sh:170: if [ "${finalAttempt}" == "true" ] ; then
|
||||
--
|
||||
./hosts/ranoz.sh:270: tor_curl_request --insecure -L -G --no-alpn \
|
||||
./hosts/ranoz.sh:271: --speed-limit $DownloadSpeedMin --speed-time $DownloadTimeoutInterval \
|
||||
./hosts/ranoz.sh:272: "$download_url" --continue-at - --output "$file_path"
|
||||
./hosts/ranoz.sh:273: else
|
||||
./hosts/ranoz.sh:274: tor_curl_request --insecure -L -G --no-alpn \
|
||||
./hosts/ranoz.sh:275: "$download_url" --continue-at - --output "$file_path"
|
||||
./hosts/ranoz.sh:276: fi
|
||||
./hosts/ranoz.sh:277: else
|
||||
./hosts/ranoz.sh:278: if [ "${RateMonitorEnabled}" == "true" ]; then
|
||||
./hosts/ranoz.sh:279: tor_curl_request --insecure -L -G --no-alpn \
|
||||
./hosts/ranoz.sh:280: --speed-limit $DownloadSpeedMin --speed-time $DownloadTimeoutInterval \
|
||||
./hosts/ranoz.sh:281: -H "User-Agent: $RandomUA" \
|
||||
./hosts/ranoz.sh:282: -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8" \
|
||||
./hosts/ranoz.sh:283: -H "Accept-Language: en-US,en;q=0.5" \
|
||||
./hosts/ranoz.sh:284: -H "Accept-Encoding: gzip, deflate, br" \
|
||||
./hosts/ranoz.sh:285: -H "Connection: keep-alive" \
|
||||
./hosts/ranoz.sh:286: -H "Cookie: lng=eng" \
|
||||
./hosts/ranoz.sh:287: -H "Upgrade-Insecure-Requests: 1" \
|
||||
./hosts/ranoz.sh:288: -H "Sec-Fetch-Dest: document" \
|
||||
./hosts/ranoz.sh:289: -H "Sec-Fetch-Mode: navigate" \
|
||||
./hosts/ranoz.sh:272: tor_curl_request --insecure -L -G --no-alpn \
|
||||
./hosts/ranoz.sh:273: --speed-limit $DownloadSpeedMin --speed-time $DownloadTimeoutInterval \
|
||||
./hosts/ranoz.sh:274: "$download_url" --continue-at - --output "$file_path"
|
||||
./hosts/ranoz.sh:275: else
|
||||
./hosts/ranoz.sh:276: tor_curl_request --insecure -L -G --no-alpn \
|
||||
./hosts/ranoz.sh:277: "$download_url" --continue-at - --output "$file_path"
|
||||
./hosts/ranoz.sh:278: fi
|
||||
./hosts/ranoz.sh:279: else
|
||||
./hosts/ranoz.sh:280: if [ "${RateMonitorEnabled}" == "true" ]; then
|
||||
./hosts/ranoz.sh:281: tor_curl_request --insecure -L -G --no-alpn \
|
||||
./hosts/ranoz.sh:282: --speed-limit $DownloadSpeedMin --speed-time $DownloadTimeoutInterval \
|
||||
./hosts/ranoz.sh:283: -H "User-Agent: $RandomUA" \
|
||||
./hosts/ranoz.sh:284: -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8" \
|
||||
./hosts/ranoz.sh:285: -H "Accept-Language: en-US,en;q=0.5" \
|
||||
./hosts/ranoz.sh:286: -H "Accept-Encoding: gzip, deflate, br" \
|
||||
./hosts/ranoz.sh:287: -H "Connection: keep-alive" \
|
||||
./hosts/ranoz.sh:288: -H "Cookie: lng=eng" \
|
||||
./hosts/ranoz.sh:289: -H "Upgrade-Insecure-Requests: 1" \
|
||||
./hosts/ranoz.sh:290: -H "Sec-Fetch-Dest: document" \
|
||||
./hosts/ranoz.sh:291: -H "Sec-Fetch-Mode: navigate" \
|
||||
--
|
||||
./hosts/ranoz.sh:294: tor_curl_request --insecure -L -G --no-alpn \
|
||||
./hosts/ranoz.sh:295: -H "User-Agent: $RandomUA" \
|
||||
./hosts/ranoz.sh:296: -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8" \
|
||||
./hosts/ranoz.sh:297: -H "Accept-Language: en-US,en;q=0.5" \
|
||||
./hosts/ranoz.sh:298: -H "Accept-Encoding: gzip, deflate, br" \
|
||||
./hosts/ranoz.sh:299: -H "Connection: keep-alive" \
|
||||
./hosts/ranoz.sh:300: -H "Cookie: lng=eng" \
|
||||
./hosts/ranoz.sh:301: -H "Upgrade-Insecure-Requests: 1" \
|
||||
./hosts/ranoz.sh:302: -H "Sec-Fetch-Dest: document" \
|
||||
./hosts/ranoz.sh:303: -H "Sec-Fetch-Mode: navigate" \
|
||||
./hosts/ranoz.sh:304: -H "Sec-Fetch-Site: same-origin" \
|
||||
./hosts/ranoz.sh:296: tor_curl_request --insecure -L -G --no-alpn \
|
||||
./hosts/ranoz.sh:297: -H "User-Agent: $RandomUA" \
|
||||
./hosts/ranoz.sh:298: -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8" \
|
||||
./hosts/ranoz.sh:299: -H "Accept-Language: en-US,en;q=0.5" \
|
||||
./hosts/ranoz.sh:300: -H "Accept-Encoding: gzip, deflate, br" \
|
||||
./hosts/ranoz.sh:301: -H "Connection: keep-alive" \
|
||||
./hosts/ranoz.sh:302: -H "Cookie: lng=eng" \
|
||||
./hosts/ranoz.sh:303: -H "Upgrade-Insecure-Requests: 1" \
|
||||
./hosts/ranoz.sh:304: -H "Sec-Fetch-Dest: document" \
|
||||
./hosts/ranoz.sh:305: -H "Sec-Fetch-Mode: navigate" \
|
||||
./hosts/ranoz.sh:306: -H "Sec-Fetch-Site: same-origin" \
|
||||
--
|
||||
./hosts/sendnow.sh:90: response=$(tor_curl_request --insecure -L -s -b "${snow_cookie_jar}" -c "${snow_cookie_jar}" "$remote_url")
|
||||
./hosts/sendnow.sh:91: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./hosts/sendnow.sh:92: debugHtml "${remote_url##*/}" "snow_dwnpage$i" "${response}"
|
||||
./hosts/sendnow.sh:93: fi
|
||||
./hosts/sendnow.sh:94: if [[ -z $response ]] ; then
|
||||
./hosts/sendnow.sh:95: rm -f "${snow_cookie_jar}";
|
||||
./hosts/sendnow.sh:96: if [ $i == $maxfetchretries ] ; then
|
||||
./hosts/sendnow.sh:97: printf "\\n"
|
||||
./hosts/sendnow.sh:98: echo -e "${RED}| Failed to extract download link.${NC}"
|
||||
./hosts/sendnow.sh:99: warnAndRetryUnknownError=true
|
||||
./hosts/sendnow.sh:100: if [ "${finalAttempt}" == "true" ] ; then
|
||||
--
|
||||
./hosts/sendnow.sh:158: response=$(tor_curl_request --insecure -L -svo. -X POST \
|
||||
./hosts/sendnow.sh:159: -b "${snow_cookie_jar}" -c "${snow_cookie_jar}" \
|
||||
./hosts/sendnow.sh:160: --data-raw "$form_data" "$remote_url" 2>&1)
|
||||
./hosts/sendnow.sh:161: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./hosts/sendnow.sh:162: debugHtml "${remote_url##*/}" "snow_post" "post_action: ${post_action}"$'\n'"form_data: ${form_data}"$'\n'"${response}"
|
||||
./hosts/sendnow.sh:163: fi
|
||||
./hosts/sendnow.sh:164: if [[ -z $response ]] ; then
|
||||
./hosts/sendnow.sh:165: echo -e "${RED}| Failed to extract download link [2]${NC}"
|
||||
./hosts/sendnow.sh:166: warnAndRetryUnknownError=true
|
||||
./hosts/sendnow.sh:167: if [ "${finalAttempt}" == "true" ] ; then
|
||||
./hosts/sendnow.sh:168: rm -f "${snow_cookie_jar}";
|
||||
--
|
||||
./hosts/sendnow.sh:200: file_header=$(tor_curl_request --insecure --head -Lis \
|
||||
./hosts/sendnow.sh:201: -H "Host: $fshost" \
|
||||
./hosts/sendnow.sh:202: -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \
|
||||
./hosts/sendnow.sh:203: -H "Accept-Language: en-US,en;q=0.5" \
|
||||
./hosts/sendnow.sh:204: -H "Accept-Encoding: gzip, deflate, br, zstd" \
|
||||
./hosts/sendnow.sh:205: -H "Referer: https://send.now/" \
|
||||
./hosts/sendnow.sh:206: -H "Sec-GPC: 1" \
|
||||
./hosts/sendnow.sh:207: -H "Connection: keep-alive" \
|
||||
./hosts/sendnow.sh:208: -H "Upgrade-Insecure-Requests: 1" \
|
||||
./hosts/sendnow.sh:209: -H "Sec-Fetch-Dest: document" \
|
||||
./hosts/sendnow.sh:210: -H "Sec-Fetch-Mode: navigate" \
|
||||
--
|
||||
./hosts/sendnow.sh:323: tor_curl_request --insecure -L --no-alpn \
|
||||
./hosts/sendnow.sh:324: --speed-limit $DownloadSpeedMin --speed-time $DownloadTimeoutInterval \
|
||||
./hosts/sendnow.sh:325: -H "Host: $fshost" \
|
||||
./hosts/sendnow.sh:326: -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \
|
||||
./hosts/sendnow.sh:327: -H "Accept-Language: en-US,en;q=0.5" \
|
||||
./hosts/sendnow.sh:328: -H "Accept-Encoding: gzip, deflate, br, zstd" \
|
||||
./hosts/sendnow.sh:329: -H "Referer: https://send.now/" \
|
||||
./hosts/sendnow.sh:330: -H "Sec-GPC: 1" \
|
||||
./hosts/sendnow.sh:331: -H "Connection: keep-alive" \
|
||||
./hosts/sendnow.sh:332: -H "Upgrade-Insecure-Requests: 1" \
|
||||
./hosts/sendnow.sh:333: -H "Sec-Fetch-Dest: document" \
|
||||
--
|
||||
./hosts/sendnow.sh:341: tor_curl_request --insecure -L --no-alpn \
|
||||
./hosts/sendnow.sh:342: -H "Host: $fshost" \
|
||||
./hosts/sendnow.sh:343: -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \
|
||||
./hosts/sendnow.sh:344: -H "Accept-Language: en-US,en;q=0.5" \
|
||||
./hosts/sendnow.sh:345: -H "Accept-Encoding: gzip, deflate, br, zstd" \
|
||||
./hosts/sendnow.sh:346: -H "Referer: https://send.now/" \
|
||||
./hosts/sendnow.sh:347: -H "Sec-GPC: 1" \
|
||||
./hosts/sendnow.sh:348: -H "Connection: keep-alive" \
|
||||
./hosts/sendnow.sh:349: -H "Upgrade-Insecure-Requests: 1" \
|
||||
./hosts/sendnow.sh:350: -H "Sec-Fetch-Dest: document" \
|
||||
./hosts/sendnow.sh:351: -H "Sec-Fetch-Mode: navigate" \
|
||||
--
|
||||
./hosts/sendnow.sh:360: tor_curl_request --insecure -L --no-alpn \
|
||||
./hosts/sendnow.sh:361: --speed-limit $DownloadSpeedMin --speed-time $DownloadTimeoutInterval \
|
||||
./hosts/sendnow.sh:362: -H "User-Agent: $RandomUA" \
|
||||
./hosts/sendnow.sh:363: -H "Host: $fshost" \
|
||||
./hosts/sendnow.sh:364: -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \
|
||||
./hosts/sendnow.sh:365: -H "Accept-Language: en-US,en;q=0.5" \
|
||||
./hosts/sendnow.sh:366: -H "Accept-Encoding: gzip, deflate, br, zstd" \
|
||||
./hosts/sendnow.sh:367: -H "Referer: https://send.now/" \
|
||||
./hosts/sendnow.sh:368: -H "Sec-GPC: 1" \
|
||||
./hosts/sendnow.sh:369: -H "Connection: keep-alive" \
|
||||
./hosts/sendnow.sh:370: -H "Upgrade-Insecure-Requests: 1" \
|
||||
--
|
||||
./hosts/sendnow.sh:379: tor_curl_request --insecure -L --no-alpn \
|
||||
./hosts/sendnow.sh:380: -H "User-Agent: $RandomUA" \
|
||||
./hosts/sendnow.sh:381: -H "Host: $fshost" \
|
||||
./hosts/sendnow.sh:382: -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \
|
||||
./hosts/sendnow.sh:383: -H "Accept-Language: en-US,en;q=0.5" \
|
||||
./hosts/sendnow.sh:384: -H "Accept-Encoding: gzip, deflate, br, zstd" \
|
||||
./hosts/sendnow.sh:385: -H "Referer: https://send.now/" \
|
||||
./hosts/sendnow.sh:386: -H "Sec-GPC: 1" \
|
||||
./hosts/sendnow.sh:387: -H "Connection: keep-alive" \
|
||||
./hosts/sendnow.sh:388: -H "Upgrade-Insecure-Requests: 1" \
|
||||
./hosts/sendnow.sh:389: -H "Sec-Fetch-Dest: document" \
|
||||
--
|
||||
./hosts/syspro.sh:88: response=$(tor_curl_request --insecure -L -s "$remote_url")
|
||||
./hosts/syspro.sh:89: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
|
|
@ -2848,6 +2934,18 @@ _________________________________________________________________________
|
|||
./hosts/up_kraken.sh:124: hash=$(grep -oPi '(?<="hash":").*?(?=")' <<< "$response")
|
||||
./hosts/up_kraken.sh:125: filesize=$(GetFileSize "$filepath" "false")
|
||||
--
|
||||
./hosts/up_lainsafe.sh:111: response=$(tor_curl_upload --insecure -i \
|
||||
./hosts/up_lainsafe.sh:112: -H "Content-Type: multipart/form-data" \
|
||||
./hosts/up_lainsafe.sh:113: -F "files[]=@${arrFiles[@]}" \
|
||||
./hosts/up_lainsafe.sh:114: "${PostUrlHost}")
|
||||
./hosts/up_lainsafe.sh:115: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./hosts/up_lainsafe.sh:116: debugHtml "${filepath##*/}" "${_hostCode}_upload" "post_url: ${PostUrlHost}"$'\n'"${response}"
|
||||
./hosts/up_lainsafe.sh:117: fi
|
||||
./hosts/up_lainsafe.sh:118: if [[ -z $response ]] || grep -Eqi 'HTTP/2 403|403 Forbidden' <<< "${response}" ; then
|
||||
./hosts/up_lainsafe.sh:119: if [ "${finalAttempt}" == "true" ] ; then
|
||||
./hosts/up_lainsafe.sh:120: err=$(grep -oPi '(?<=HTTP/).*?(?=$)' <<< "$response")
|
||||
./hosts/up_lainsafe.sh:121: printf "\\n"
|
||||
--
|
||||
./hosts/up_nippy.sh:125: response=$(tor_curl_upload --insecure -i \
|
||||
./hosts/up_nippy.sh:126: -H "Content-Type: multipart/form-data" \
|
||||
./hosts/up_nippy.sh:127: -F "file[]=@${arrFiles[@]}" \
|
||||
|
|
@ -3112,17 +3210,17 @@ _________________________________________________________________________
|
|||
./hosts/up_uploadraja.sh:111: -F "file_0=@${filepath}" \
|
||||
./hosts/up_uploadraja.sh:112: "${PostUrlHost}")
|
||||
--
|
||||
./hosts/up_uwabaki.sh:101: response=$(tor_curl_upload --insecure -i -L \
|
||||
./hosts/up_uwabaki.sh:102: -H "Content-Type: multipart/form-data" \
|
||||
./hosts/up_uwabaki.sh:103: -F "files[]=@${arrFiles[@]}" \
|
||||
./hosts/up_uwabaki.sh:104: "${PostUrlHost}")
|
||||
./hosts/up_uwabaki.sh:105: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./hosts/up_uwabaki.sh:106: debugHtml "${filepath##*/}" "${_hostCode}_upload" "post_url: ${PostUrlHost}"$'\n'"${response}"
|
||||
./hosts/up_uwabaki.sh:107: fi
|
||||
./hosts/up_uwabaki.sh:108: if grep -Eqi 'File uploaded: <a href="https://files.uwabaki.party/' <<< "${response}" ; then
|
||||
./hosts/up_uwabaki.sh:109: url=$(grep -oPi '(?<=File uploaded: <a href=").*?(?=">.*$)' <<< "$response")
|
||||
./hosts/up_uwabaki.sh:110: filesize=$(GetFileSize "$filepath" "false")
|
||||
./hosts/up_uwabaki.sh:111: downloadLink="${url}"
|
||||
./hosts/up_uwabaki.sh:102: response=$(tor_curl_upload --insecure -i -L \
|
||||
./hosts/up_uwabaki.sh:103: -H "Content-Type: multipart/form-data" \
|
||||
./hosts/up_uwabaki.sh:104: -F "formatted=true" \
|
||||
./hosts/up_uwabaki.sh:105: -F "encryption=off" \
|
||||
./hosts/up_uwabaki.sh:106: -F "files[]=@$filepath" \
|
||||
./hosts/up_uwabaki.sh:107: "${PostUrlHost}")
|
||||
./hosts/up_uwabaki.sh:108: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./hosts/up_uwabaki.sh:109: debugHtml "${filepath##*/}" "${_hostCode}_upload" "post_url: ${PostUrlHost}"$'\n'"${response}"
|
||||
./hosts/up_uwabaki.sh:110: fi
|
||||
./hosts/up_uwabaki.sh:111: if grep -Eqi 'File uploaded: <a href="https://files.uwabaki.party/' <<< "${response}" ; then
|
||||
./hosts/up_uwabaki.sh:112: url=$(grep -oPi '(?<=File uploaded: <a href=").*?(?=">.*$)' <<< "$response")
|
||||
--
|
||||
./hosts/up_yolobit.sh:102: response=$(tor_curl_upload --insecure -i \
|
||||
./hosts/up_yolobit.sh:103: -H "Content-Type: multipart/form-data" \
|
||||
|
|
@ -3186,235 +3284,235 @@ _________________________________________________________________________
|
|||
./hosts/youdbox.sh:287: containsHtml=true
|
||||
./hosts/youdbox.sh:288: fi
|
||||
--
|
||||
./mad.sh:419:tor_curl_request() {
|
||||
./mad.sh:420: if [ "${UseTorCurlImpersonate}" == "true" ]; then
|
||||
./mad.sh:421: "${curl_impersonate[@]}" --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout ${ConnectTimeout} --compressed --globoff "$@"
|
||||
./mad.sh:422: else
|
||||
./mad.sh:423: curl --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout ${ConnectTimeout} --compressed --globoff "$@"
|
||||
./mad.sh:424: fi
|
||||
./mad.sh:425:}
|
||||
./mad.sh:426:tor_curl_request_extended() {
|
||||
./mad.sh:427: randomtimeout=$((30 + RANDOM % (60 - 30)))
|
||||
./mad.sh:428: if [ "${UseTorCurlImpersonate}" == "true" ]; then
|
||||
./mad.sh:429: "${curl_impersonate[@]}" --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout $randomtimeout --compressed --globoff "$@"
|
||||
./mad.sh:430: else
|
||||
./mad.sh:431: curl --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout $randomtimeout --compressed --globoff "$@"
|
||||
./mad.sh:432: fi
|
||||
./mad.sh:433:}
|
||||
./mad.sh:434:tor_curl_upload() {
|
||||
./mad.sh:435: if [ "${UseTorCurlImpersonate}" == "true" ]; then
|
||||
./mad.sh:436: if [ "${RateMonitorEnabled}" == "true" ]; then
|
||||
./mad.sh:437: "${curl_impersonate[@]}" --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout ${ConnectTimeout} --speed-limit $UploadSpeedMin --speed-time $UploadTimeoutInterval --compressed --globoff "$@"
|
||||
./mad.sh:438: else
|
||||
./mad.sh:439: "${curl_impersonate[@]}" --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout ${ConnectTimeout} --compressed --globoff "$@"
|
||||
./mad.sh:440: fi
|
||||
./mad.sh:441: else
|
||||
./mad.sh:442: if [ "${RateMonitorEnabled}" == "true" ]; then
|
||||
./mad.sh:443: curl --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout ${ConnectTimeout} --speed-limit $UploadSpeedMin --speed-time $UploadTimeoutInterval -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:109.0) Gecko/20100101 Firefox/115.0' -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' -H 'Accept-Encoding: gzip, deflate, br' -H 'Origin: null' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'Sec-Fetch-Dest: document' -H 'Sec-Fetch-Mode: navigate' -H 'Sec-Fetch-Site: cross-site' -H 'Sec-Fetch-User: ?1' -H 'TE: trailers' --compressed --globoff "$@"
|
||||
./mad.sh:444: else
|
||||
./mad.sh:375:tor_curl_request() {
|
||||
./mad.sh:376: if [ "${UseTorCurlImpersonate}" == "true" ]; then
|
||||
./mad.sh:377: "${curl_impersonate[@]}" --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout ${ConnectTimeout} --compressed --globoff "$@"
|
||||
./mad.sh:378: else
|
||||
./mad.sh:379: curl --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout ${ConnectTimeout} --compressed --globoff "$@"
|
||||
./mad.sh:380: fi
|
||||
./mad.sh:381:}
|
||||
./mad.sh:382:tor_curl_request_extended() {
|
||||
./mad.sh:383: randomtimeout=$((30 + RANDOM % (60 - 30)))
|
||||
./mad.sh:384: if [ "${UseTorCurlImpersonate}" == "true" ]; then
|
||||
./mad.sh:385: "${curl_impersonate[@]}" --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout $randomtimeout --compressed --globoff "$@"
|
||||
./mad.sh:386: else
|
||||
./mad.sh:387: curl --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout $randomtimeout --compressed --globoff "$@"
|
||||
./mad.sh:388: fi
|
||||
./mad.sh:389:}
|
||||
./mad.sh:390:tor_curl_upload() {
|
||||
./mad.sh:391: if [ "${UseTorCurlImpersonate}" == "true" ]; then
|
||||
./mad.sh:392: if [ "${RateMonitorEnabled}" == "true" ]; then
|
||||
./mad.sh:393: "${curl_impersonate[@]}" --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout ${ConnectTimeoutUpload} --speed-limit $UploadSpeedMin --speed-time $UploadTimeoutInterval --compressed --globoff "$@"
|
||||
./mad.sh:394: else
|
||||
./mad.sh:395: "${curl_impersonate[@]}" --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout ${ConnectTimeoutUpload} --compressed --globoff "$@"
|
||||
./mad.sh:396: fi
|
||||
./mad.sh:397: else
|
||||
./mad.sh:398: if [ "${RateMonitorEnabled}" == "true" ]; then
|
||||
./mad.sh:399: curl --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout ${ConnectTimeoutUpload} --speed-limit $UploadSpeedMin --speed-time $UploadTimeoutInterval -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:109.0) Gecko/20100101 Firefox/115.0' -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' -H 'Accept-Encoding: gzip, deflate, br' -H 'Origin: null' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'Sec-Fetch-Dest: document' -H 'Sec-Fetch-Mode: navigate' -H 'Sec-Fetch-Site: cross-site' -H 'Sec-Fetch-User: ?1' -H 'TE: trailers' --compressed --globoff "$@"
|
||||
./mad.sh:400: else
|
||||
--
|
||||
./mad.sh:1486: response=$(tor_curl_request --insecure -L -s https://github.com/lwthiker/curl-impersonate/releases/latest)
|
||||
./mad.sh:1487: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./mad.sh:1488: debugHtml "github" "lbf_inst_curlimp$j" "$response"
|
||||
./mad.sh:1489: fi
|
||||
./mad.sh:1490: if [ ! -z "$response" ]; then
|
||||
./mad.sh:1491: latestTag=$(grep -oPi -m 1 '(?<=/curl-impersonate/releases/tag/).*?(?=")' <<< "$response")
|
||||
./mad.sh:1492: latestBinaryDate=$(grep -oPi -m 1 '(?<=<relative-time class="no-wrap" prefix="" datetime=").*?(?=T)' <<< "$response")
|
||||
./mad.sh:1493: break
|
||||
./mad.sh:1494: fi
|
||||
./mad.sh:1495: done
|
||||
./mad.sh:1496: if [ -z $latestTag ]; then
|
||||
./mad.sh:1442: response=$(tor_curl_request --insecure -L -s https://github.com/lwthiker/curl-impersonate/releases/latest)
|
||||
./mad.sh:1443: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./mad.sh:1444: debugHtml "github" "lbf_inst_curlimp$j" "$response"
|
||||
./mad.sh:1445: fi
|
||||
./mad.sh:1446: if [ ! -z "$response" ]; then
|
||||
./mad.sh:1447: latestTag=$(grep -oPi -m 1 '(?<=/curl-impersonate/releases/tag/).*?(?=")' <<< "$response")
|
||||
./mad.sh:1448: latestBinaryDate=$(grep -oPi -m 1 '(?<=<relative-time class="no-wrap" prefix="" datetime=").*?(?=T)' <<< "$response")
|
||||
./mad.sh:1449: break
|
||||
./mad.sh:1450: fi
|
||||
./mad.sh:1451: done
|
||||
./mad.sh:1452: if [ -z $latestTag ]; then
|
||||
--
|
||||
./mad.sh:1506: file_header=$(tor_curl_request --insecure --head -Ls "$download_url")
|
||||
./mad.sh:1507: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./mad.sh:1508: debugHtml "github" "head_inst_curlimp$j" "${file_header}"
|
||||
./mad.sh:1509: fi
|
||||
./mad.sh:1510: if ! grep -Eqi 'HTTP/2 200|HTTP/1.1 200|200 OK' <<< $file_header ; then
|
||||
./mad.sh:1511: if ((j == 8)) ; then
|
||||
./mad.sh:1512: return 1
|
||||
./mad.sh:1513: else
|
||||
./mad.sh:1514: continue
|
||||
./mad.sh:1515: fi
|
||||
./mad.sh:1516: fi
|
||||
./mad.sh:1462: file_header=$(tor_curl_request --insecure --head -Ls "$download_url")
|
||||
./mad.sh:1463: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./mad.sh:1464: debugHtml "github" "head_inst_curlimp$j" "${file_header}"
|
||||
./mad.sh:1465: fi
|
||||
./mad.sh:1466: if ! grep -Eqi 'HTTP/2 200|HTTP/1.1 200|200 OK' <<< $file_header ; then
|
||||
./mad.sh:1467: if ((j == 8)) ; then
|
||||
./mad.sh:1468: return 1
|
||||
./mad.sh:1469: else
|
||||
./mad.sh:1470: continue
|
||||
./mad.sh:1471: fi
|
||||
./mad.sh:1472: fi
|
||||
--
|
||||
./mad.sh:1556: tor_curl_request --insecure -L "$download_url" --continue-at - --output "$file_path"
|
||||
./mad.sh:1557: received_file_size=0
|
||||
./mad.sh:1558: if [ -f "$file_path" ] ; then
|
||||
./mad.sh:1559: received_file_size=$(stat --format="%s" "$file_path" | tr -d '[:space:]')
|
||||
./mad.sh:1560: fi
|
||||
./mad.sh:1561: if ((received_file_size == file_size_bytes)) ; then
|
||||
./mad.sh:1562: break
|
||||
./mad.sh:1563: elif ((received_file_size < file_size_bytes)) ; then
|
||||
./mad.sh:1564: if ((j >= MaxDownloadRetries)) ; then
|
||||
./mad.sh:1565: echo -e "${RED}| FAILED: Size mismatch after downloading${NC}"
|
||||
./mad.sh:1566: exit 1
|
||||
./mad.sh:1512: tor_curl_request --insecure -L "$download_url" --continue-at - --output "$file_path"
|
||||
./mad.sh:1513: received_file_size=0
|
||||
./mad.sh:1514: if [ -f "$file_path" ] ; then
|
||||
./mad.sh:1515: received_file_size=$(stat --format="%s" "$file_path" | tr -d '[:space:]')
|
||||
./mad.sh:1516: fi
|
||||
./mad.sh:1517: if ((received_file_size == file_size_bytes)) ; then
|
||||
./mad.sh:1518: break
|
||||
./mad.sh:1519: elif ((received_file_size < file_size_bytes)) ; then
|
||||
./mad.sh:1520: if ((j >= MaxDownloadRetries)) ; then
|
||||
./mad.sh:1521: echo -e "${RED}| FAILED: Size mismatch after downloading${NC}"
|
||||
./mad.sh:1522: exit 1
|
||||
--
|
||||
./mad.sh:1609: response=$(tor_curl_request --insecure -L -s https://github.com/lexiforest/curl-impersonate/releases/latest)
|
||||
./mad.sh:1610: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./mad.sh:1611: debugHtml "github" "lbf_inst_curlimp$j" "$response"
|
||||
./mad.sh:1612: fi
|
||||
./mad.sh:1613: if [ ! -z "$response" ]; then
|
||||
./mad.sh:1614: latestTag=$(grep -oPi -m 1 '(?<=/curl-impersonate/releases/tag/).*?(?=")' <<< "$response")
|
||||
./mad.sh:1615: latestBinaryDate=$(grep -oPi -m 1 '(?<=<relative-time class="no-wrap" prefix="" datetime=").*?(?=T)' <<< "$response")
|
||||
./mad.sh:1616: break
|
||||
./mad.sh:1617: fi
|
||||
./mad.sh:1618: done
|
||||
./mad.sh:1619: if [ -z $latestTag ]; then
|
||||
./mad.sh:1565: response=$(tor_curl_request --insecure -L -s https://github.com/lexiforest/curl-impersonate/releases/latest)
|
||||
./mad.sh:1566: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./mad.sh:1567: debugHtml "github" "lbf_inst_curlimp$j" "$response"
|
||||
./mad.sh:1568: fi
|
||||
./mad.sh:1569: if [ ! -z "$response" ]; then
|
||||
./mad.sh:1570: latestTag=$(grep -oPi -m 1 '(?<=/curl-impersonate/releases/tag/).*?(?=")' <<< "$response")
|
||||
./mad.sh:1571: latestBinaryDate=$(grep -oPi -m 1 '(?<=<relative-time class="no-wrap" prefix="" datetime=").*?(?=T)' <<< "$response")
|
||||
./mad.sh:1572: break
|
||||
./mad.sh:1573: fi
|
||||
./mad.sh:1574: done
|
||||
./mad.sh:1575: if [ -z $latestTag ]; then
|
||||
--
|
||||
./mad.sh:1629: file_header=$(tor_curl_request --insecure --head -Ls "$download_url")
|
||||
./mad.sh:1630: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./mad.sh:1631: debugHtml "github" "head_inst_curlimp$j" "${file_header}"
|
||||
./mad.sh:1632: fi
|
||||
./mad.sh:1633: if ! grep -Eqi 'HTTP/2 200|HTTP/1.1 200|200 OK' <<< $file_header ; then
|
||||
./mad.sh:1634: if ((j == 8)) ; then
|
||||
./mad.sh:1635: return 1
|
||||
./mad.sh:1636: else
|
||||
./mad.sh:1637: continue
|
||||
./mad.sh:1638: fi
|
||||
./mad.sh:1639: fi
|
||||
./mad.sh:1585: file_header=$(tor_curl_request --insecure --head -Ls "$download_url")
|
||||
./mad.sh:1586: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./mad.sh:1587: debugHtml "github" "head_inst_curlimp$j" "${file_header}"
|
||||
./mad.sh:1588: fi
|
||||
./mad.sh:1589: if ! grep -Eqi 'HTTP/2 200|HTTP/1.1 200|200 OK' <<< $file_header ; then
|
||||
./mad.sh:1590: if ((j == 8)) ; then
|
||||
./mad.sh:1591: return 1
|
||||
./mad.sh:1592: else
|
||||
./mad.sh:1593: continue
|
||||
./mad.sh:1594: fi
|
||||
./mad.sh:1595: fi
|
||||
--
|
||||
./mad.sh:1679: tor_curl_request --insecure -L "$download_url" --continue-at - --output "$file_path"
|
||||
./mad.sh:1680: received_file_size=0
|
||||
./mad.sh:1681: if [ -f "$file_path" ] ; then
|
||||
./mad.sh:1682: received_file_size=$(stat --format="%s" "$file_path" | tr -d '[:space:]')
|
||||
./mad.sh:1683: fi
|
||||
./mad.sh:1684: if ((received_file_size == file_size_bytes)) ; then
|
||||
./mad.sh:1685: break
|
||||
./mad.sh:1686: elif ((received_file_size < file_size_bytes)) ; then
|
||||
./mad.sh:1687: if ((j >= MaxDownloadRetries)) ; then
|
||||
./mad.sh:1688: echo -e "${RED}| FAILED: Size mismatch after downloading${NC}"
|
||||
./mad.sh:1689: exit 1
|
||||
./mad.sh:1635: tor_curl_request --insecure -L "$download_url" --continue-at - --output "$file_path"
|
||||
./mad.sh:1636: received_file_size=0
|
||||
./mad.sh:1637: if [ -f "$file_path" ] ; then
|
||||
./mad.sh:1638: received_file_size=$(stat --format="%s" "$file_path" | tr -d '[:space:]')
|
||||
./mad.sh:1639: fi
|
||||
./mad.sh:1640: if ((received_file_size == file_size_bytes)) ; then
|
||||
./mad.sh:1641: break
|
||||
./mad.sh:1642: elif ((received_file_size < file_size_bytes)) ; then
|
||||
./mad.sh:1643: if ((j >= MaxDownloadRetries)) ; then
|
||||
./mad.sh:1644: echo -e "${RED}| FAILED: Size mismatch after downloading${NC}"
|
||||
./mad.sh:1645: exit 1
|
||||
--
|
||||
./mad.sh:1884: maud_torcurl=$(grep -n -vxE '[[:blank:]]*([#].*)?' $fil | grep -A 12 --color='always' -Ei 'tor_curl')
|
||||
./mad.sh:1885: echo -e "Files:"
|
||||
./mad.sh:1886: echo -e "${BLUE}${fil}${NC}"
|
||||
./mad.sh:1887: echo -e ""
|
||||
./mad.sh:1888: echo -e ""
|
||||
./mad.sh:1889: echo -e "${PINK}MAD Audit of http lines:${NC} (${GREEN}grep \"http:\" or \"https:\"${NC})"
|
||||
./mad.sh:1890: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1891: echo -e "$maud_http"
|
||||
./mad.sh:1892: echo -e ""
|
||||
./mad.sh:1893: echo -e "${PINK}MAD Audit of curl:${NC} (${GREEN}grep \"curl\"${NC})"
|
||||
./mad.sh:1894: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1840: maud_torcurl=$(grep -n -vxE '[[:blank:]]*([#].*)?' $fil | grep -A 12 --color='always' -Ei 'tor_curl')
|
||||
./mad.sh:1841: echo -e "Files:"
|
||||
./mad.sh:1842: echo -e "${BLUE}${fil}${NC}"
|
||||
./mad.sh:1843: echo -e ""
|
||||
./mad.sh:1844: echo -e ""
|
||||
./mad.sh:1845: echo -e "${PINK}MAD Audit of http lines:${NC} (${GREEN}grep \"http:\" or \"https:\"${NC})"
|
||||
./mad.sh:1846: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1847: echo -e "$maud_http"
|
||||
./mad.sh:1848: echo -e ""
|
||||
./mad.sh:1849: echo -e "${PINK}MAD Audit of curl:${NC} (${GREEN}grep \"curl\"${NC})"
|
||||
./mad.sh:1850: echo -e "_________________________________________________________________________"
|
||||
--
|
||||
./mad.sh:1897: echo -e "${PINK}MAD Audit of tor_curl (+12 lines after):${NC} (${GREEN}grep \"tor_curl\"${NC})"
|
||||
./mad.sh:1898: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1899: echo -e "$maud_torcurl"
|
||||
./mad.sh:1900: echo -e ""
|
||||
./mad.sh:1901: echo -e ""
|
||||
./mad.sh:1902: done
|
||||
./mad.sh:1903: else
|
||||
./mad.sh:1904: cd "$ScriptDir"
|
||||
./mad.sh:1905: readarray -d $'' arrFiles < <(find . -name "*.sh" -printf '%p\n' | sort -Vk1)
|
||||
./mad.sh:1906: cd "$WorkDir"
|
||||
./mad.sh:1907: readarray -d $'' arrFiles2 < <(find . -name "*.sh" -printf '%p\n' | sort -Vk1)
|
||||
./mad.sh:1853: echo -e "${PINK}MAD Audit of tor_curl (+12 lines after):${NC} (${GREEN}grep \"tor_curl\"${NC})"
|
||||
./mad.sh:1854: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1855: echo -e "$maud_torcurl"
|
||||
./mad.sh:1856: echo -e ""
|
||||
./mad.sh:1857: echo -e ""
|
||||
./mad.sh:1858: done
|
||||
./mad.sh:1859: else
|
||||
./mad.sh:1860: cd "$ScriptDir"
|
||||
./mad.sh:1861: readarray -d $'' arrFiles < <(find . -name "*.sh" -printf '%p\n' | sort -Vk1)
|
||||
./mad.sh:1862: cd "$WorkDir"
|
||||
./mad.sh:1863: readarray -d $'' arrFiles2 < <(find . -name "*.sh" -printf '%p\n' | sort -Vk1)
|
||||
--
|
||||
./mad.sh:1912: maud_torcurl=$(grep -n -vxE '[[:blank:]]*([#].*)?' $fil | grep -A 12 --color='always' -Ei 'tor_curl')
|
||||
./mad.sh:1913: echo -e "Files:"
|
||||
./mad.sh:1914: echo -e "${BLUE}${fil}${NC}"
|
||||
./mad.sh:1915: echo -e ""
|
||||
./mad.sh:1916: echo -e ""
|
||||
./mad.sh:1917: echo -e "${PINK}MAD Audit of http lines:${NC} (${GREEN}grep \"http:\" or \"https:\"${NC})"
|
||||
./mad.sh:1918: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1919: echo -e "$maud_http"
|
||||
./mad.sh:1920: echo -e ""
|
||||
./mad.sh:1921: echo -e "${PINK}MAD Audit of curl:${NC} (${GREEN}grep \"curl \"${NC})"
|
||||
./mad.sh:1922: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1868: maud_torcurl=$(grep -n -vxE '[[:blank:]]*([#].*)?' $fil | grep -A 12 --color='always' -Ei 'tor_curl')
|
||||
./mad.sh:1869: echo -e "Files:"
|
||||
./mad.sh:1870: echo -e "${BLUE}${fil}${NC}"
|
||||
./mad.sh:1871: echo -e ""
|
||||
./mad.sh:1872: echo -e ""
|
||||
./mad.sh:1873: echo -e "${PINK}MAD Audit of http lines:${NC} (${GREEN}grep \"http:\" or \"https:\"${NC})"
|
||||
./mad.sh:1874: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1875: echo -e "$maud_http"
|
||||
./mad.sh:1876: echo -e ""
|
||||
./mad.sh:1877: echo -e "${PINK}MAD Audit of curl:${NC} (${GREEN}grep \"curl \"${NC})"
|
||||
./mad.sh:1878: echo -e "_________________________________________________________________________"
|
||||
--
|
||||
./mad.sh:1925: echo -e "${PINK}MAD Audit of tor_curl (+12 lines after):${NC} (${GREEN}grep \"tor_curl\"${NC})"
|
||||
./mad.sh:1926: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1927: echo -e "$maud_torcurl"
|
||||
./mad.sh:1928: echo -e ""
|
||||
./mad.sh:1929: done
|
||||
./mad.sh:1930: for fil in "${arrFiles2[@]}";
|
||||
./mad.sh:1931: do
|
||||
./mad.sh:1932: maud_http=$(grep -n -vxE '[[:blank:]]*([#].*)?' $fil | grep --color='always' -Ei '(http|https):')
|
||||
./mad.sh:1933: maud_curl=$(grep -n -vxE '[[:blank:]]*([#].*)?' $fil | grep --color='always' -Ei 'curl')
|
||||
./mad.sh:1934: maud_torcurl=$(grep -n -vxE '[[:blank:]]*([#].*)?' $fil | grep -A 12 --color='always' -Ei 'tor_curl')
|
||||
./mad.sh:1935: echo -e "Files:"
|
||||
./mad.sh:1936: echo -e "${BLUE}${fil}${NC}"
|
||||
./mad.sh:1937: echo -e ""
|
||||
./mad.sh:1938: echo -e ""
|
||||
./mad.sh:1939: echo -e "${PINK}MAD Audit of http lines:${NC} (${GREEN}grep \"http:\" or \"https:\"${NC})"
|
||||
./mad.sh:1940: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1941: echo -e "$maud_http"
|
||||
./mad.sh:1942: echo -e ""
|
||||
./mad.sh:1943: echo -e "${PINK}MAD Audit of curl:${NC} (${GREEN}grep \"curl\"${NC})"
|
||||
./mad.sh:1944: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1881: echo -e "${PINK}MAD Audit of tor_curl (+12 lines after):${NC} (${GREEN}grep \"tor_curl\"${NC})"
|
||||
./mad.sh:1882: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1883: echo -e "$maud_torcurl"
|
||||
./mad.sh:1884: echo -e ""
|
||||
./mad.sh:1885: done
|
||||
./mad.sh:1886: for fil in "${arrFiles2[@]}";
|
||||
./mad.sh:1887: do
|
||||
./mad.sh:1888: maud_http=$(grep -n -vxE '[[:blank:]]*([#].*)?' $fil | grep --color='always' -Ei '(http|https):')
|
||||
./mad.sh:1889: maud_curl=$(grep -n -vxE '[[:blank:]]*([#].*)?' $fil | grep --color='always' -Ei 'curl')
|
||||
./mad.sh:1890: maud_torcurl=$(grep -n -vxE '[[:blank:]]*([#].*)?' $fil | grep -A 12 --color='always' -Ei 'tor_curl')
|
||||
./mad.sh:1891: echo -e "Files:"
|
||||
./mad.sh:1892: echo -e "${BLUE}${fil}${NC}"
|
||||
./mad.sh:1893: echo -e ""
|
||||
./mad.sh:1894: echo -e ""
|
||||
./mad.sh:1895: echo -e "${PINK}MAD Audit of http lines:${NC} (${GREEN}grep \"http:\" or \"https:\"${NC})"
|
||||
./mad.sh:1896: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1897: echo -e "$maud_http"
|
||||
./mad.sh:1898: echo -e ""
|
||||
./mad.sh:1899: echo -e "${PINK}MAD Audit of curl:${NC} (${GREEN}grep \"curl\"${NC})"
|
||||
./mad.sh:1900: echo -e "_________________________________________________________________________"
|
||||
--
|
||||
./mad.sh:1947: echo -e "${PINK}MAD Audit of tor_curl (+12 lines after):${NC} (${GREEN}grep \"tor_curl\"${NC})"
|
||||
./mad.sh:1948: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1949: echo -e "$maud_torcurl"
|
||||
./mad.sh:1950: echo -e ""
|
||||
./mad.sh:1951: done
|
||||
./mad.sh:1952: fi
|
||||
./mad.sh:1953:}
|
||||
./mad.sh:1954:madStatus() {
|
||||
./mad.sh:1955: local InputFile="$1"
|
||||
./mad.sh:1956: if [ "$arg1" == "status" ] ; then
|
||||
./mad.sh:1957: clear
|
||||
./mad.sh:1903: echo -e "${PINK}MAD Audit of tor_curl (+12 lines after):${NC} (${GREEN}grep \"tor_curl\"${NC})"
|
||||
./mad.sh:1904: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1905: echo -e "$maud_torcurl"
|
||||
./mad.sh:1906: echo -e ""
|
||||
./mad.sh:1907: done
|
||||
./mad.sh:1908: fi
|
||||
./mad.sh:1909:}
|
||||
./mad.sh:1910:madStatus() {
|
||||
./mad.sh:1911: local InputFile="$1"
|
||||
./mad.sh:1912: if [ "$arg1" == "status" ] ; then
|
||||
./mad.sh:1913: clear
|
||||
--
|
||||
./mad.sh:3272: file_header=$(tor_curl_request --insecure -m 8 -s -D - -o /dev/null \
|
||||
./mad.sh:3273: -H "Connection: keep-alive" \
|
||||
./mad.sh:3274: -w 'EffectiveUrl=%{url_effective}' \
|
||||
./mad.sh:3275: "$download_url")
|
||||
./mad.sh:3276: else
|
||||
./mad.sh:3277: printf "| Retrieving Head: attempt #$j"
|
||||
./mad.sh:3278: rm -f "${WorkDir}/.temp/directhead"
|
||||
./mad.sh:3279: file_header=$(tor_curl_request --insecure --head -H "Connection: keep-alive" -L -s -i "$download_url" |
|
||||
./mad.sh:3280: tee "${WorkDir}/.temp/directhead" &
|
||||
./mad.sh:3281: sleep 6
|
||||
./mad.sh:3282: [ -s "${WorkDir}/.temp/directhead" ]
|
||||
./mad.sh:3283: kill $! 2>/dev/null
|
||||
./mad.sh:3284: )
|
||||
./mad.sh:3285: if [ ! -f "${WorkDir}/.flocks/${remote_url//[^a-zA-Z0-9]/}" ]; then
|
||||
./mad.sh:3286: touch "${WorkDir}/.flocks/${remote_url//[^a-zA-Z0-9]/}"
|
||||
./mad.sh:3287: fi
|
||||
./mad.sh:3288: rm -f "${WorkDir}/.temp/directhead"
|
||||
./mad.sh:3289: fi
|
||||
./mad.sh:3228: file_header=$(tor_curl_request --insecure -m 8 -s -D - -o /dev/null \
|
||||
./mad.sh:3229: -H "Connection: keep-alive" \
|
||||
./mad.sh:3230: -w 'EffectiveUrl=%{url_effective}' \
|
||||
./mad.sh:3231: "$download_url")
|
||||
./mad.sh:3232: else
|
||||
./mad.sh:3233: printf "| Retrieving Head: attempt #$j"
|
||||
./mad.sh:3234: rm -f "${WorkDir}/.temp/directhead"
|
||||
./mad.sh:3235: file_header=$(tor_curl_request --insecure --head -H "Connection: keep-alive" -L -s -i "$download_url" |
|
||||
./mad.sh:3236: tee "${WorkDir}/.temp/directhead" &
|
||||
./mad.sh:3237: sleep 6
|
||||
./mad.sh:3238: [ -s "${WorkDir}/.temp/directhead" ]
|
||||
./mad.sh:3239: kill $! 2>/dev/null
|
||||
./mad.sh:3240: )
|
||||
./mad.sh:3241: if [ ! -f "${WorkDir}/.flocks/${remote_url//[^a-zA-Z0-9]/}" ]; then
|
||||
./mad.sh:3242: touch "${WorkDir}/.flocks/${remote_url//[^a-zA-Z0-9]/}"
|
||||
./mad.sh:3243: fi
|
||||
./mad.sh:3244: rm -f "${WorkDir}/.temp/directhead"
|
||||
./mad.sh:3245: fi
|
||||
--
|
||||
./mad.sh:3409: tor_curl_request --insecure -L --referer "$file_url" "$download_url" --output "$file_path"
|
||||
./mad.sh:3410: rc=$?
|
||||
./mad.sh:3411: if [ $rc -ne 0 ] ; then
|
||||
./mad.sh:3412: printf "${RED}Download Failed (bad exit status).${NC}"
|
||||
./mad.sh:3413: if [ -f ${file_path} ]; then
|
||||
./mad.sh:3414: printf "${YELLOW} Partial removed...${NC}"
|
||||
./mad.sh:3415: printf "\n\n"
|
||||
./mad.sh:3416: rm -f "${file_path}"
|
||||
./mad.sh:3417: else
|
||||
./mad.sh:3418: printf "\n\n"
|
||||
./mad.sh:3419: fi
|
||||
./mad.sh:3372: tor_curl_request --insecure -L --referer "$file_url" "$download_url" --output "$file_path"
|
||||
./mad.sh:3373: rc=$?
|
||||
./mad.sh:3374: if [ $rc -ne 0 ] ; then
|
||||
./mad.sh:3375: printf "${RED}Download Failed (bad exit status).${NC}"
|
||||
./mad.sh:3376: if [ -f ${file_path} ]; then
|
||||
./mad.sh:3377: printf "${YELLOW} Partial removed...${NC}"
|
||||
./mad.sh:3378: printf "\n\n"
|
||||
./mad.sh:3379: rm -f "${file_path}"
|
||||
./mad.sh:3380: else
|
||||
./mad.sh:3381: printf "\n\n"
|
||||
./mad.sh:3382: fi
|
||||
--
|
||||
./mad.sh:3453: tor_curl_request --insecure -L --speed-limit $DownloadSpeedMin --speed-time $DownloadTimeoutInterval "$download_url" --continue-at - --output "$file_path"
|
||||
./mad.sh:3454: else
|
||||
./mad.sh:3455: tor_curl_request --insecure -L --referer "$file_url" "$download_url" --continue-at - --output "$file_path"
|
||||
./mad.sh:3456: fi
|
||||
./mad.sh:3457: received_file_size=0
|
||||
./mad.sh:3458: if [ -f "$file_path" ] ; then
|
||||
./mad.sh:3459: received_file_size=$(stat --format="%s" "$file_path" | tr -d '[:space:]')
|
||||
./mad.sh:3460: fi
|
||||
./mad.sh:3461: if CheckNoHtml "$remote_url" "$filename" "$file_path" ; then
|
||||
./mad.sh:3462: containsHtml=false
|
||||
./mad.sh:3463: else
|
||||
./mad.sh:3464: containsHtml=true
|
||||
./mad.sh:3465: fi
|
||||
./mad.sh:3425: tor_curl_request --insecure -L --speed-limit $DownloadSpeedMin --speed-time $DownloadTimeoutInterval "$download_url" --continue-at - --output "$file_path"
|
||||
./mad.sh:3426: else
|
||||
./mad.sh:3427: tor_curl_request --insecure -L --referer "$file_url" "$download_url" --continue-at - --output "$file_path"
|
||||
./mad.sh:3428: fi
|
||||
./mad.sh:3429: received_file_size=0
|
||||
./mad.sh:3430: if [ -f "$file_path" ] ; then
|
||||
./mad.sh:3431: received_file_size=$(stat --format="%s" "$file_path" | tr -d '[:space:]')
|
||||
./mad.sh:3432: fi
|
||||
./mad.sh:3433: if CheckNoHtml "$remote_url" "$filename" "$file_path" ; then
|
||||
./mad.sh:3434: containsHtml=false
|
||||
./mad.sh:3435: else
|
||||
./mad.sh:3436: containsHtml=true
|
||||
./mad.sh:3437: fi
|
||||
--
|
||||
./mad.sh:3653: response=$(tor_curl_upload --insecure -i \
|
||||
./mad.sh:3654: -H "Content-Type: multipart/form-data" \
|
||||
./mad.sh:3655: -F "key=" \
|
||||
./mad.sh:3656: -F "time=$jira_timeval" \
|
||||
./mad.sh:3657: -F "file=@${filepath}" \
|
||||
./mad.sh:3658: "${jira_PostUrlHost}")
|
||||
./mad.sh:3659: else
|
||||
./mad.sh:3660: response=$(tor_curl_upload --insecure -i \
|
||||
./mad.sh:3661: -H "Content-Type: multipart/form-data" \
|
||||
./mad.sh:3662: -F "key=" \
|
||||
./mad.sh:3663: -F "time=$jira_timeval" \
|
||||
./mad.sh:3664: -F "files[]=@${arrFiles[@]}" \
|
||||
./mad.sh:3665: "${jira_PostUrlHost}")
|
||||
./mad.sh:3666: fi
|
||||
./mad.sh:3667: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./mad.sh:3668: debugHtml "${filepath##*/}" "${_hostCode}_upload" "post_url: ${jira_PostUrlHost}"$'\n'"${response}"
|
||||
./mad.sh:3669: fi
|
||||
./mad.sh:3670: if grep -Eqi ' 200 ' <<< "${response}" ; then
|
||||
./mad.sh:3625: response=$(tor_curl_upload --insecure -i \
|
||||
./mad.sh:3626: -H "Content-Type: multipart/form-data" \
|
||||
./mad.sh:3627: -F "key=" \
|
||||
./mad.sh:3628: -F "time=$jira_timeval" \
|
||||
./mad.sh:3629: -F "file=@${filepath}" \
|
||||
./mad.sh:3630: "${jira_PostUrlHost}")
|
||||
./mad.sh:3631: else
|
||||
./mad.sh:3632: response=$(tor_curl_upload --insecure -i \
|
||||
./mad.sh:3633: -H "Content-Type: multipart/form-data" \
|
||||
./mad.sh:3634: -F "key=" \
|
||||
./mad.sh:3635: -F "time=$jira_timeval" \
|
||||
./mad.sh:3636: -F "files[]=@${arrFiles[@]}" \
|
||||
./mad.sh:3637: "${jira_PostUrlHost}")
|
||||
./mad.sh:3638: fi
|
||||
./mad.sh:3639: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./mad.sh:3640: debugHtml "${filepath##*/}" "${_hostCode}_upload" "post_url: ${jira_PostUrlHost}"$'\n'"${response}"
|
||||
./mad.sh:3641: fi
|
||||
./mad.sh:3642: if grep -Eqi ' 200 ' <<< "${response}" ; then
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue