Skip to content

Commit

Permalink
Fixed shareus.io/shrs.link
Browse files Browse the repository at this point in the history
  • Loading branch information
whitedemon938 authored Apr 17, 2024
1 parent 2032231 commit c908b05
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions FZBypass/core/bypass_ddl.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,25 @@ async def shareus(url: str) -> str:
except:
raise DDLException("Link Extraction Failed")

async def shareus(url: str) -> str:
DOMAIN = f"https://api.shrslink.xyz"
code = url.split('/')[-1]
headers = {
'User-Agent':'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36',
'Origin':'https://shareus.io',
}
api = f"{DOMAIN}/v?shortid={code}&initial=true&referrer="
id = rget(api, headers=headers).json()['sid']
if id:
api_2 = f"{DOMAIN}/get_link?sid={id}"
res = rget(api_2, headers=headers)
if res:
final = res.json()['link_info']['destination']
return final
else:
raise DDLException("Link Extraction Failed")
else:
raise DDLException( "ID Error")

async def dropbox(url: str) -> str:
return (
Expand Down

0 comments on commit c908b05

Please sign in to comment.