# 2024.01.03 - [gofile] Detect "Bulk download is a Premium feature" response (no children)
# 2025.01.02 - [up_axfc] Update PUT response check to handle kanji chars (remove) # 2025.01.02 - [dashfile] Add response 'This file reached max downloads limit'. New cookie on captcha fail # 2024.12.28 - [dashfile] Update captcha code check # 2024.12.28 - [anonfile] Add new download link href response # 2024.12.28 - [fileblade] Add additional response handling (subsequent downloads, unknown warnings) # 2024.12.28 - [eternalhosting] Update eternal.onion to handle landing page (eternal.onion/file/)
This commit is contained in:
parent
e6804e01e1
commit
30eedaf567
10 changed files with 766 additions and 687 deletions
25
hosts/eternalhosting.sh
Normal file → Executable file
25
hosts/eternalhosting.sh
Normal file → Executable file
|
|
@ -1,6 +1,6 @@
|
|||
#! Name: eternalhosting.sh
|
||||
#! Author: kittykat
|
||||
#! Version: 2024.09.13
|
||||
#! Version: 2024.12.28
|
||||
#! Desc: Add support for downloading and processing of urls for a new host
|
||||
#! Usage: Copy this file into the ./${ScriptDir}/hosts/ folder
|
||||
#!
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
#! HostDomainRegex: The regex used to verify matching urls
|
||||
HostCode='eh'
|
||||
HostNick='eternal hosting'
|
||||
HostFuncPrefix='direct'
|
||||
HostFuncPrefix='eh'
|
||||
HostUrls='eternalcbrzpicytj4zyguygpmkjlkddxob7tptlr25cdipe5svyqoqd.onion'
|
||||
HostDomainRegex='^(http|https)://eternalcbrzpicytj4zyguygpmkjlkddxob7tptlr25cdipe5svyqoqd\.onion/file/'
|
||||
#!
|
||||
|
|
@ -26,6 +26,21 @@ ListHostAndDomainRegexes=${ListHostAndDomainRegexes}'/'${HostCode}'/'${HostNick}
|
|||
#!
|
||||
#! ------------ (1) Host Main Download Function --------------- #
|
||||
#!
|
||||
#! This is a direct= download host, so all the functions are already in mad.sh
|
||||
#! Since the HostFuncPrefix is defined above as "direct", nothing further needs to be done as it will
|
||||
#! call the direct_DownloadFile() function already in mad.sh
|
||||
#! @REQUIRED: Host Main Download function
|
||||
#! Must be named specifically as such:
|
||||
#! <HostFuncPrefix>_DownloadFile()
|
||||
eh_DownloadFile() {
|
||||
local pUrl="$1"
|
||||
local pFileCnt="$2"
|
||||
local pUrlMod="$pUrl"
|
||||
if grep -Eqi '\.onion' <<< "$pUrlMod" && grep -Eqi 'https://' <<< "$pUrlMod" ; then
|
||||
echo -e "${PINK}| Reverting .onion address to http...${NC}"
|
||||
pUrlMod="${pUrlMod/https/http}"
|
||||
fi
|
||||
if grep -Eqi '\.onion/file/' <<< "$pUrlMod" ; then
|
||||
echo -e "${PINK}| Switching to download url...${NC}"
|
||||
pUrlMod="${pUrlMod/\.onion\/file\//\.onion\/download\/}"
|
||||
fi
|
||||
echo -e "[${BLUE}ModifiedUrl${NC}]: ${pUrlMod}"
|
||||
direct_DownloadFile "$pUrl" "$pFileCnt" "$pUrlMod"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue