# 2025.02.14 - [mad] Add helpful verbiage for user on MAD Randomized Extension upload urls
# 2025.02.14 - [up_ranoz] Add help "[rand ext, rename to <filename> or use MAD v2025.02.13+]" to url # 2025.02.14 - [up_uploadhive] Add help "[rand ext, rename to <filename> or use MAD v2025.02.13+]" to url # 2025.02.13 - [mad] Add "RanozRandomizeExt" MAD randomized extension configurable variable # 2025.02.13 - [up_ranoz] Add MAD randomized extension upload handling # 2025.02.13 - [ranoz] Add MAD randomized extension download handling # 2025.02.13 - [sendnow] Extend request timeout for head / get (server response time lag)
This commit is contained in:
parent
0face871aa
commit
d48116dbe3
14 changed files with 880 additions and 552 deletions
|
|
@ -1,4 +1,4 @@
|
|||
DateTime: 25.02.11
|
||||
DateTime: 25.02.13
|
||||
|
||||
Files:
|
||||
./hosts/1fichier.sh
|
||||
|
|
@ -2012,77 +2012,77 @@ _________________________________________________________________________
|
|||
./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:160: response=$(tor_curl_request --insecure -L -svo. -X POST \
|
||||
./hosts/sendnow.sh:161: -b "${snow_cookie_jar}" -c "${snow_cookie_jar}" \
|
||||
./hosts/sendnow.sh:162: --data-raw "$form_data" "$remote_url" 2>&1)
|
||||
./hosts/sendnow.sh:163: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./hosts/sendnow.sh:164: debugHtml "${remote_url##*/}" "snow_post" "post_action: ${post_action}"$'\n'"form_data: ${form_data}"$'\n'"${response}"
|
||||
./hosts/sendnow.sh:165: fi
|
||||
./hosts/sendnow.sh:166: if [[ -z $response ]] ; then
|
||||
./hosts/sendnow.sh:167: echo -e "${RED}| Failed to extract download link [2]${NC}"
|
||||
./hosts/sendnow.sh:168: warnAndRetryUnknownError=true
|
||||
./hosts/sendnow.sh:169: if [ "${finalAttempt}" == "true" ] ; then
|
||||
./hosts/sendnow.sh:170: 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:203: file_header=$(tor_curl_request_extended --insecure --head -Lis \
|
||||
./hosts/sendnow.sh:204: -H "Host: $fshost" \
|
||||
./hosts/sendnow.sh:205: -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \
|
||||
./hosts/sendnow.sh:206: -H "Accept-Language: en-US,en;q=0.5" \
|
||||
./hosts/sendnow.sh:207: -H "Accept-Encoding: gzip, deflate, br, zstd" \
|
||||
./hosts/sendnow.sh:208: -H "Referer: https://send.now/" \
|
||||
./hosts/sendnow.sh:209: -H "Sec-GPC: 1" \
|
||||
./hosts/sendnow.sh:210: -H "Connection: keep-alive" \
|
||||
./hosts/sendnow.sh:211: -H "Upgrade-Insecure-Requests: 1" \
|
||||
./hosts/sendnow.sh:212: -H "Sec-Fetch-Dest: document" \
|
||||
./hosts/sendnow.sh:213: -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:326: tor_curl_request_extended --insecure -L --no-alpn \
|
||||
./hosts/sendnow.sh:327: --speed-limit $DownloadSpeedMin --speed-time $DownloadTimeoutInterval \
|
||||
./hosts/sendnow.sh:328: -H "Host: $fshost" \
|
||||
./hosts/sendnow.sh:329: -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \
|
||||
./hosts/sendnow.sh:330: -H "Accept-Language: en-US,en;q=0.5" \
|
||||
./hosts/sendnow.sh:331: -H "Accept-Encoding: gzip, deflate, br, zstd" \
|
||||
./hosts/sendnow.sh:332: -H "Referer: https://send.now/" \
|
||||
./hosts/sendnow.sh:333: -H "Sec-GPC: 1" \
|
||||
./hosts/sendnow.sh:334: -H "Connection: keep-alive" \
|
||||
./hosts/sendnow.sh:335: -H "Upgrade-Insecure-Requests: 1" \
|
||||
./hosts/sendnow.sh:336: -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:344: tor_curl_request --insecure -L --no-alpn \
|
||||
./hosts/sendnow.sh:345: -H "Host: $fshost" \
|
||||
./hosts/sendnow.sh:346: -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \
|
||||
./hosts/sendnow.sh:347: -H "Accept-Language: en-US,en;q=0.5" \
|
||||
./hosts/sendnow.sh:348: -H "Accept-Encoding: gzip, deflate, br, zstd" \
|
||||
./hosts/sendnow.sh:349: -H "Referer: https://send.now/" \
|
||||
./hosts/sendnow.sh:350: -H "Sec-GPC: 1" \
|
||||
./hosts/sendnow.sh:351: -H "Connection: keep-alive" \
|
||||
./hosts/sendnow.sh:352: -H "Upgrade-Insecure-Requests: 1" \
|
||||
./hosts/sendnow.sh:353: -H "Sec-Fetch-Dest: document" \
|
||||
./hosts/sendnow.sh:354: -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:363: tor_curl_request --insecure -L --no-alpn \
|
||||
./hosts/sendnow.sh:364: --speed-limit $DownloadSpeedMin --speed-time $DownloadTimeoutInterval \
|
||||
./hosts/sendnow.sh:365: -H "User-Agent: $RandomUA" \
|
||||
./hosts/sendnow.sh:366: -H "Host: $fshost" \
|
||||
./hosts/sendnow.sh:367: -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \
|
||||
./hosts/sendnow.sh:368: -H "Accept-Language: en-US,en;q=0.5" \
|
||||
./hosts/sendnow.sh:369: -H "Accept-Encoding: gzip, deflate, br, zstd" \
|
||||
./hosts/sendnow.sh:370: -H "Referer: https://send.now/" \
|
||||
./hosts/sendnow.sh:371: -H "Sec-GPC: 1" \
|
||||
./hosts/sendnow.sh:372: -H "Connection: keep-alive" \
|
||||
./hosts/sendnow.sh:373: -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/sendnow.sh:382: tor_curl_request --insecure -L --no-alpn \
|
||||
./hosts/sendnow.sh:383: -H "User-Agent: $RandomUA" \
|
||||
./hosts/sendnow.sh:384: -H "Host: $fshost" \
|
||||
./hosts/sendnow.sh:385: -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \
|
||||
./hosts/sendnow.sh:386: -H "Accept-Language: en-US,en;q=0.5" \
|
||||
./hosts/sendnow.sh:387: -H "Accept-Encoding: gzip, deflate, br, zstd" \
|
||||
./hosts/sendnow.sh:388: -H "Referer: https://send.now/" \
|
||||
./hosts/sendnow.sh:389: -H "Sec-GPC: 1" \
|
||||
./hosts/sendnow.sh:390: -H "Connection: keep-alive" \
|
||||
./hosts/sendnow.sh:391: -H "Upgrade-Insecure-Requests: 1" \
|
||||
./hosts/sendnow.sh:392: -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
|
||||
|
|
@ -3018,29 +3018,29 @@ _________________________________________________________________________
|
|||
./hosts/up_quax.sh:111: url=$(grep -oPi '(?<="url": ").*?(?=".*$)' <<< "$response")
|
||||
./hosts/up_quax.sh:112: filesize=$(GetFileSize "$filepath" "false")
|
||||
--
|
||||
./hosts/up_ranoz.sh:102: response=$(tor_curl_upload --insecure -L -i -s \
|
||||
./hosts/up_ranoz.sh:103: "$PostUrlHost" \
|
||||
./hosts/up_ranoz.sh:104: -H "Content-Type: application/json" \
|
||||
./hosts/up_ranoz.sh:105: -d "{ \
|
||||
./hosts/up_ranoz.sh:106: \"filename\": \"$filename\", \
|
||||
./hosts/up_ranoz.sh:107: \"size\": $fsize}")
|
||||
./hosts/up_ranoz.sh:108: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./hosts/up_ranoz.sh:109: debugHtml "${filepath##*/}" "${_hostCode}_ticket" "post_url: ${PostUrlHost}"$'\n'"data: ${filename}, ${fsize}"$'\n'"${response}"
|
||||
./hosts/up_ranoz.sh:110: fi
|
||||
./hosts/up_ranoz.sh:111: if grep -Eqi '"upload_url":"https://' <<< "$response" ; then
|
||||
./hosts/up_ranoz.sh:112: PostUrlHost=$(grep -oPi '(?<="upload_url":").*?(?=".*$)' <<< "$response")
|
||||
./hosts/up_ranoz.sh:130: response=$(tor_curl_upload --insecure -L -i -s \
|
||||
./hosts/up_ranoz.sh:131: "$PostUrlHost" \
|
||||
./hosts/up_ranoz.sh:132: -H "Content-Type: application/json" \
|
||||
./hosts/up_ranoz.sh:133: -d "{ \
|
||||
./hosts/up_ranoz.sh:134: \"filename\": \"$tmpfilename\", \
|
||||
./hosts/up_ranoz.sh:135: \"size\": $fsize}")
|
||||
./hosts/up_ranoz.sh:136: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./hosts/up_ranoz.sh:137: debugHtml "${filepath##*/}" "${_hostCode}_ticket" "post_url: ${PostUrlHost}"$'\n'"data: ${tmpfilepath}, ${fsize}"$'\n'"${response}"
|
||||
./hosts/up_ranoz.sh:138: fi
|
||||
./hosts/up_ranoz.sh:139: if grep -Eqi '"upload_url":"https://' <<< "$response" ; then
|
||||
./hosts/up_ranoz.sh:140: PostUrlHost=$(grep -oPi '(?<="upload_url":").*?(?=".*$)' <<< "$response")
|
||||
--
|
||||
./hosts/up_ranoz.sh:129: response=$(tor_curl_upload --insecure -i -X PUT \
|
||||
./hosts/up_ranoz.sh:130: "${PostUrlHost}" \
|
||||
./hosts/up_ranoz.sh:131: --upload-file "$filepath" \
|
||||
./hosts/up_ranoz.sh:132: -H "Content-Length: $fsize")
|
||||
./hosts/up_ranoz.sh:133: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./hosts/up_ranoz.sh:134: debugHtml "${filepath##*/}" "${_hostCode}_upload" "post_url: ${PostUrlHost}"$'\n'"${response}"
|
||||
./hosts/up_ranoz.sh:135: fi
|
||||
./hosts/up_ranoz.sh:136: if grep -Eqi 'HTTP/.* 200' <<< "${response}" ; then
|
||||
./hosts/up_ranoz.sh:137: filesize=$(GetFileSize "$filepath" "false")
|
||||
./hosts/up_ranoz.sh:138: echo -e "${GREEN}| Upload Success${NC}"
|
||||
./hosts/up_ranoz.sh:139: echo -e "| Size: ${BLUE}${filesize}${NC} bytes${NC}"
|
||||
./hosts/up_ranoz.sh:160: response=$(tor_curl_upload --insecure -i -X PUT \
|
||||
./hosts/up_ranoz.sh:161: "${PostUrlHost}" \
|
||||
./hosts/up_ranoz.sh:162: --upload-file "$tmpfilepath" \
|
||||
./hosts/up_ranoz.sh:163: -H "Content-Length: $fsize")
|
||||
./hosts/up_ranoz.sh:164: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./hosts/up_ranoz.sh:165: debugHtml "${filepath##*/}" "${_hostCode}_upload" "post_url: ${PostUrlHost}"$'\n'"${response}"
|
||||
./hosts/up_ranoz.sh:166: fi
|
||||
./hosts/up_ranoz.sh:167: if [[ "$RanozRandomizeExt" == "true" ]]; then
|
||||
./hosts/up_ranoz.sh:168: mv $tmpfilepath $filepath 2> /dev/null
|
||||
./hosts/up_ranoz.sh:169: fi
|
||||
./hosts/up_ranoz.sh:170: if grep -Eqi 'HTTP/.* 200' <<< "${response}" ; then
|
||||
--
|
||||
./hosts/up_shareonline.sh:102: response=$(tor_curl_upload --insecure -i \
|
||||
./hosts/up_shareonline.sh:103: -H "Content-Type: multipart/form-data" \
|
||||
|
|
@ -3186,17 +3186,17 @@ _________________________________________________________________________
|
|||
./hosts/up_uploadflix.sh:115: -F "upload=Start upload" \
|
||||
./hosts/up_uploadflix.sh:116: -F "keepalive=1" \
|
||||
--
|
||||
./hosts/up_uploadhive.sh:128: response=$(tor_curl_upload --insecure -i \
|
||||
./hosts/up_uploadhive.sh:129: -H "Content-Type: multipart/form-data" \
|
||||
./hosts/up_uploadhive.sh:130: -F "sess_id=" \
|
||||
./hosts/up_uploadhive.sh:131: -F "utype=anon" \
|
||||
./hosts/up_uploadhive.sh:132: -F "link_rcpt=" \
|
||||
./hosts/up_uploadhive.sh:133: -F "link_pass=" \
|
||||
./hosts/up_uploadhive.sh:134: -F "to_folder=" \
|
||||
./hosts/up_uploadhive.sh:135: -F "file_descr=" \
|
||||
./hosts/up_uploadhive.sh:136: -F "file_public=1" \
|
||||
./hosts/up_uploadhive.sh:137: -F "upload=Start upload" \
|
||||
./hosts/up_uploadhive.sh:138: -F "file_0=@$tmpfilepath" \
|
||||
./hosts/up_uploadhive.sh:129: response=$(tor_curl_upload --insecure -i \
|
||||
./hosts/up_uploadhive.sh:130: -H "Content-Type: multipart/form-data" \
|
||||
./hosts/up_uploadhive.sh:131: -F "sess_id=" \
|
||||
./hosts/up_uploadhive.sh:132: -F "utype=anon" \
|
||||
./hosts/up_uploadhive.sh:133: -F "link_rcpt=" \
|
||||
./hosts/up_uploadhive.sh:134: -F "link_pass=" \
|
||||
./hosts/up_uploadhive.sh:135: -F "to_folder=" \
|
||||
./hosts/up_uploadhive.sh:136: -F "file_descr=" \
|
||||
./hosts/up_uploadhive.sh:137: -F "file_public=1" \
|
||||
./hosts/up_uploadhive.sh:138: -F "upload=Start upload" \
|
||||
./hosts/up_uploadhive.sh:139: -F "file_0=@$tmpfilepath" \
|
||||
--
|
||||
./hosts/up_uploadraja.sh:102: response=$(tor_curl_upload --insecure -i \
|
||||
./hosts/up_uploadraja.sh:103: -H "Content-Type: multipart/form-data" \
|
||||
|
|
@ -3284,235 +3284,235 @@ _________________________________________________________________________
|
|||
./hosts/youdbox.sh:287: containsHtml=true
|
||||
./hosts/youdbox.sh:288: fi
|
||||
--
|
||||
./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:87:tor_curl_request() {
|
||||
./mad.sh:88: if [ "${UseTorCurlImpersonate}" == "true" ]; then
|
||||
./mad.sh:89: "${curl_impersonate[@]}" --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout ${ConnectTimeout} --compressed --globoff "$@"
|
||||
./mad.sh:90: else
|
||||
./mad.sh:91: curl --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout ${ConnectTimeout} --compressed --globoff "$@"
|
||||
./mad.sh:92: fi
|
||||
./mad.sh:93:}
|
||||
./mad.sh:94:tor_curl_request_extended() {
|
||||
./mad.sh:95: randomtimeout=$((30 + RANDOM % (60 - 30)))
|
||||
./mad.sh:96: if [ "${UseTorCurlImpersonate}" == "true" ]; then
|
||||
./mad.sh:97: "${curl_impersonate[@]}" --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout $randomtimeout --compressed --globoff "$@"
|
||||
./mad.sh:98: else
|
||||
./mad.sh:99: curl --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout $randomtimeout --compressed --globoff "$@"
|
||||
./mad.sh:100: fi
|
||||
./mad.sh:101:}
|
||||
./mad.sh:102:tor_curl_upload() {
|
||||
./mad.sh:103: if [ "${UseTorCurlImpersonate}" == "true" ]; then
|
||||
./mad.sh:104: if [ "${RateMonitorEnabled}" == "true" ]; then
|
||||
./mad.sh:105: "${curl_impersonate[@]}" --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout ${ConnectTimeoutUpload} --speed-limit $UploadSpeedMin --speed-time $UploadTimeoutInterval --compressed --globoff "$@"
|
||||
./mad.sh:106: else
|
||||
./mad.sh:107: "${curl_impersonate[@]}" --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" -4 --connect-timeout ${ConnectTimeoutUpload} --compressed --globoff "$@"
|
||||
./mad.sh:108: fi
|
||||
./mad.sh:109: else
|
||||
./mad.sh:110: if [ "${RateMonitorEnabled}" == "true" ]; then
|
||||
./mad.sh:111: 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:112: else
|
||||
--
|
||||
./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:1159: response=$(tor_curl_request --insecure -L -s https://github.com/lwthiker/curl-impersonate/releases/latest)
|
||||
./mad.sh:1160: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./mad.sh:1161: debugHtml "github" "lbf_inst_curlimp$j" "$response"
|
||||
./mad.sh:1162: fi
|
||||
./mad.sh:1163: if [ ! -z "$response" ]; then
|
||||
./mad.sh:1164: latestTag=$(grep -oPi -m 1 '(?<=/curl-impersonate/releases/tag/).*?(?=")' <<< "$response")
|
||||
./mad.sh:1165: latestBinaryDate=$(grep -oPi -m 1 '(?<=<relative-time class="no-wrap" prefix="" datetime=").*?(?=T)' <<< "$response")
|
||||
./mad.sh:1166: break
|
||||
./mad.sh:1167: fi
|
||||
./mad.sh:1168: done
|
||||
./mad.sh:1169: if [ -z $latestTag ]; then
|
||||
--
|
||||
./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:1179: file_header=$(tor_curl_request --insecure --head -Ls "$download_url")
|
||||
./mad.sh:1180: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./mad.sh:1181: debugHtml "github" "head_inst_curlimp$j" "${file_header}"
|
||||
./mad.sh:1182: fi
|
||||
./mad.sh:1183: if ! grep -Eqi 'HTTP/2 200|HTTP/1.1 200|200 OK' <<< $file_header ; then
|
||||
./mad.sh:1184: if ((j == 8)) ; then
|
||||
./mad.sh:1185: return 1
|
||||
./mad.sh:1186: else
|
||||
./mad.sh:1187: continue
|
||||
./mad.sh:1188: fi
|
||||
./mad.sh:1189: fi
|
||||
--
|
||||
./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:1229: tor_curl_request --insecure -L "$download_url" --continue-at - --output "$file_path"
|
||||
./mad.sh:1230: received_file_size=0
|
||||
./mad.sh:1231: if [ -f "$file_path" ] ; then
|
||||
./mad.sh:1232: received_file_size=$(stat --format="%s" "$file_path" | tr -d '[:space:]')
|
||||
./mad.sh:1233: fi
|
||||
./mad.sh:1234: if ((received_file_size == file_size_bytes)) ; then
|
||||
./mad.sh:1235: break
|
||||
./mad.sh:1236: elif ((received_file_size < file_size_bytes)) ; then
|
||||
./mad.sh:1237: if ((j >= MaxDownloadRetries)) ; then
|
||||
./mad.sh:1238: echo -e "${RED}| FAILED: Size mismatch after downloading${NC}"
|
||||
./mad.sh:1239: exit 1
|
||||
--
|
||||
./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:1282: response=$(tor_curl_request --insecure -L -s https://github.com/lexiforest/curl-impersonate/releases/latest)
|
||||
./mad.sh:1283: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./mad.sh:1284: debugHtml "github" "lbf_inst_curlimp$j" "$response"
|
||||
./mad.sh:1285: fi
|
||||
./mad.sh:1286: if [ ! -z "$response" ]; then
|
||||
./mad.sh:1287: latestTag=$(grep -oPi -m 1 '(?<=/curl-impersonate/releases/tag/).*?(?=")' <<< "$response")
|
||||
./mad.sh:1288: latestBinaryDate=$(grep -oPi -m 1 '(?<=<relative-time class="no-wrap" prefix="" datetime=").*?(?=T)' <<< "$response")
|
||||
./mad.sh:1289: break
|
||||
./mad.sh:1290: fi
|
||||
./mad.sh:1291: done
|
||||
./mad.sh:1292: if [ -z $latestTag ]; then
|
||||
--
|
||||
./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:1302: file_header=$(tor_curl_request --insecure --head -Ls "$download_url")
|
||||
./mad.sh:1303: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./mad.sh:1304: debugHtml "github" "head_inst_curlimp$j" "${file_header}"
|
||||
./mad.sh:1305: fi
|
||||
./mad.sh:1306: if ! grep -Eqi 'HTTP/2 200|HTTP/1.1 200|200 OK' <<< $file_header ; then
|
||||
./mad.sh:1307: if ((j == 8)) ; then
|
||||
./mad.sh:1308: return 1
|
||||
./mad.sh:1309: else
|
||||
./mad.sh:1310: continue
|
||||
./mad.sh:1311: fi
|
||||
./mad.sh:1312: fi
|
||||
--
|
||||
./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:1352: tor_curl_request --insecure -L "$download_url" --continue-at - --output "$file_path"
|
||||
./mad.sh:1353: received_file_size=0
|
||||
./mad.sh:1354: if [ -f "$file_path" ] ; then
|
||||
./mad.sh:1355: received_file_size=$(stat --format="%s" "$file_path" | tr -d '[:space:]')
|
||||
./mad.sh:1356: fi
|
||||
./mad.sh:1357: if ((received_file_size == file_size_bytes)) ; then
|
||||
./mad.sh:1358: break
|
||||
./mad.sh:1359: elif ((received_file_size < file_size_bytes)) ; then
|
||||
./mad.sh:1360: if ((j >= MaxDownloadRetries)) ; then
|
||||
./mad.sh:1361: echo -e "${RED}| FAILED: Size mismatch after downloading${NC}"
|
||||
./mad.sh:1362: exit 1
|
||||
--
|
||||
./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:1557: maud_torcurl=$(grep -n -vxE '[[:blank:]]*([#].*)?' $fil | grep -A 12 --color='always' -Ei 'tor_curl')
|
||||
./mad.sh:1558: echo -e "Files:"
|
||||
./mad.sh:1559: echo -e "${BLUE}${fil}${NC}"
|
||||
./mad.sh:1560: echo -e ""
|
||||
./mad.sh:1561: echo -e ""
|
||||
./mad.sh:1562: echo -e "${PINK}MAD Audit of http lines:${NC} (${GREEN}grep \"http:\" or \"https:\"${NC})"
|
||||
./mad.sh:1563: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1564: echo -e "$maud_http"
|
||||
./mad.sh:1565: echo -e ""
|
||||
./mad.sh:1566: echo -e "${PINK}MAD Audit of curl:${NC} (${GREEN}grep \"curl\"${NC})"
|
||||
./mad.sh:1567: echo -e "_________________________________________________________________________"
|
||||
--
|
||||
./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:1570: echo -e "${PINK}MAD Audit of tor_curl (+12 lines after):${NC} (${GREEN}grep \"tor_curl\"${NC})"
|
||||
./mad.sh:1571: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1572: echo -e "$maud_torcurl"
|
||||
./mad.sh:1573: echo -e ""
|
||||
./mad.sh:1574: echo -e ""
|
||||
./mad.sh:1575: done
|
||||
./mad.sh:1576: else
|
||||
./mad.sh:1577: cd "$ScriptDir"
|
||||
./mad.sh:1578: readarray -d $'' arrFiles < <(find . -name "*.sh" -printf '%p\n' | sort -Vk1)
|
||||
./mad.sh:1579: cd "$WorkDir"
|
||||
./mad.sh:1580: readarray -d $'' arrFiles2 < <(find . -name "*.sh" -printf '%p\n' | sort -Vk1)
|
||||
--
|
||||
./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:1585: maud_torcurl=$(grep -n -vxE '[[:blank:]]*([#].*)?' $fil | grep -A 12 --color='always' -Ei 'tor_curl')
|
||||
./mad.sh:1586: echo -e "Files:"
|
||||
./mad.sh:1587: echo -e "${BLUE}${fil}${NC}"
|
||||
./mad.sh:1588: echo -e ""
|
||||
./mad.sh:1589: echo -e ""
|
||||
./mad.sh:1590: echo -e "${PINK}MAD Audit of http lines:${NC} (${GREEN}grep \"http:\" or \"https:\"${NC})"
|
||||
./mad.sh:1591: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1592: echo -e "$maud_http"
|
||||
./mad.sh:1593: echo -e ""
|
||||
./mad.sh:1594: echo -e "${PINK}MAD Audit of curl:${NC} (${GREEN}grep \"curl \"${NC})"
|
||||
./mad.sh:1595: 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:1598: echo -e "${PINK}MAD Audit of tor_curl (+12 lines after):${NC} (${GREEN}grep \"tor_curl\"${NC})"
|
||||
./mad.sh:1599: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1600: echo -e "$maud_torcurl"
|
||||
./mad.sh:1601: echo -e ""
|
||||
./mad.sh:1602: done
|
||||
./mad.sh:1603: for fil in "${arrFiles2[@]}";
|
||||
./mad.sh:1604: do
|
||||
./mad.sh:1605: maud_http=$(grep -n -vxE '[[:blank:]]*([#].*)?' $fil | grep --color='always' -Ei '(http|https):')
|
||||
./mad.sh:1606: maud_curl=$(grep -n -vxE '[[:blank:]]*([#].*)?' $fil | grep --color='always' -Ei 'curl')
|
||||
./mad.sh:1607: maud_torcurl=$(grep -n -vxE '[[:blank:]]*([#].*)?' $fil | grep -A 12 --color='always' -Ei 'tor_curl')
|
||||
./mad.sh:1608: echo -e "Files:"
|
||||
./mad.sh:1609: echo -e "${BLUE}${fil}${NC}"
|
||||
./mad.sh:1610: echo -e ""
|
||||
./mad.sh:1611: echo -e ""
|
||||
./mad.sh:1612: echo -e "${PINK}MAD Audit of http lines:${NC} (${GREEN}grep \"http:\" or \"https:\"${NC})"
|
||||
./mad.sh:1613: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1614: echo -e "$maud_http"
|
||||
./mad.sh:1615: echo -e ""
|
||||
./mad.sh:1616: echo -e "${PINK}MAD Audit of curl:${NC} (${GREEN}grep \"curl\"${NC})"
|
||||
./mad.sh:1617: echo -e "_________________________________________________________________________"
|
||||
--
|
||||
./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:1620: echo -e "${PINK}MAD Audit of tor_curl (+12 lines after):${NC} (${GREEN}grep \"tor_curl\"${NC})"
|
||||
./mad.sh:1621: echo -e "_________________________________________________________________________"
|
||||
./mad.sh:1622: echo -e "$maud_torcurl"
|
||||
./mad.sh:1623: echo -e ""
|
||||
./mad.sh:1624: done
|
||||
./mad.sh:1625: fi
|
||||
./mad.sh:1626:}
|
||||
./mad.sh:1627:madStatus() {
|
||||
./mad.sh:1628: local InputFile="$1"
|
||||
./mad.sh:1629: if [ "$arg1" == "status" ] ; then
|
||||
./mad.sh:1630: clear
|
||||
--
|
||||
./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:2945: file_header=$(tor_curl_request --insecure -m 8 -s -D - -o /dev/null \
|
||||
./mad.sh:2946: -H "Connection: keep-alive" \
|
||||
./mad.sh:2947: -w 'EffectiveUrl=%{url_effective}' \
|
||||
./mad.sh:2948: "$download_url")
|
||||
./mad.sh:2949: else
|
||||
./mad.sh:2950: printf "| Retrieving Head: attempt #$j"
|
||||
./mad.sh:2951: rm -f "${WorkDir}/.temp/directhead"
|
||||
./mad.sh:2952: file_header=$(tor_curl_request --insecure --head -H "Connection: keep-alive" -L -s -i "$download_url" |
|
||||
./mad.sh:2953: tee "${WorkDir}/.temp/directhead" &
|
||||
./mad.sh:2954: sleep 6
|
||||
./mad.sh:2955: [ -s "${WorkDir}/.temp/directhead" ]
|
||||
./mad.sh:2956: kill $! 2>/dev/null
|
||||
./mad.sh:2957: )
|
||||
./mad.sh:2958: if [ ! -f "${WorkDir}/.flocks/${remote_url//[^a-zA-Z0-9]/}" ]; then
|
||||
./mad.sh:2959: touch "${WorkDir}/.flocks/${remote_url//[^a-zA-Z0-9]/}"
|
||||
./mad.sh:2960: fi
|
||||
./mad.sh:2961: rm -f "${WorkDir}/.temp/directhead"
|
||||
./mad.sh:2962: 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:3089: tor_curl_request --insecure -L --referer "$file_url" "$download_url" --output "$file_path"
|
||||
./mad.sh:3090: rc=$?
|
||||
./mad.sh:3091: if [ $rc -ne 0 ] ; then
|
||||
./mad.sh:3092: printf "${RED}Download Failed (bad exit status).${NC}"
|
||||
./mad.sh:3093: if [ -f ${file_path} ]; then
|
||||
./mad.sh:3094: printf "${YELLOW} Partial removed...${NC}"
|
||||
./mad.sh:3095: printf "\n\n"
|
||||
./mad.sh:3096: rm -f "${file_path}"
|
||||
./mad.sh:3097: else
|
||||
./mad.sh:3098: printf "\n\n"
|
||||
./mad.sh:3099: 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:3142: tor_curl_request --insecure -L --speed-limit $DownloadSpeedMin --speed-time $DownloadTimeoutInterval "$download_url" --continue-at - --output "$file_path"
|
||||
./mad.sh:3143: else
|
||||
./mad.sh:3144: tor_curl_request --insecure -L --referer "$file_url" "$download_url" --continue-at - --output "$file_path"
|
||||
./mad.sh:3145: fi
|
||||
./mad.sh:3146: received_file_size=0
|
||||
./mad.sh:3147: if [ -f "$file_path" ] ; then
|
||||
./mad.sh:3148: received_file_size=$(stat --format="%s" "$file_path" | tr -d '[:space:]')
|
||||
./mad.sh:3149: fi
|
||||
./mad.sh:3150: if CheckNoHtml "$remote_url" "$filename" "$file_path" ; then
|
||||
./mad.sh:3151: containsHtml=false
|
||||
./mad.sh:3152: else
|
||||
./mad.sh:3153: containsHtml=true
|
||||
./mad.sh:3154: fi
|
||||
--
|
||||
./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
|
||||
./mad.sh:3342: response=$(tor_curl_upload --insecure -i \
|
||||
./mad.sh:3343: -H "Content-Type: multipart/form-data" \
|
||||
./mad.sh:3344: -F "key=" \
|
||||
./mad.sh:3345: -F "time=$jira_timeval" \
|
||||
./mad.sh:3346: -F "file=@${filepath}" \
|
||||
./mad.sh:3347: "${jira_PostUrlHost}")
|
||||
./mad.sh:3348: else
|
||||
./mad.sh:3349: response=$(tor_curl_upload --insecure -i \
|
||||
./mad.sh:3350: -H "Content-Type: multipart/form-data" \
|
||||
./mad.sh:3351: -F "key=" \
|
||||
./mad.sh:3352: -F "time=$jira_timeval" \
|
||||
./mad.sh:3353: -F "files[]=@${arrFiles[@]}" \
|
||||
./mad.sh:3354: "${jira_PostUrlHost}")
|
||||
./mad.sh:3355: fi
|
||||
./mad.sh:3356: if [ "${DebugAllEnabled}" == "true" ] ; then
|
||||
./mad.sh:3357: debugHtml "${filepath##*/}" "${_hostCode}_upload" "post_url: ${jira_PostUrlHost}"$'\n'"${response}"
|
||||
./mad.sh:3358: fi
|
||||
./mad.sh:3359: if grep -Eqi ' 200 ' <<< "${response}" ; then
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue