Skip to content

Commit

Permalink
Add Single Link Bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentDemonSD committed Apr 15, 2024
1 parent 17fa872 commit ff8dd12
Showing 1 changed file with 57 additions and 2 deletions.
59 changes: 57 additions & 2 deletions FZNotebook/fzbypasser.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"metadata": {
"colab": {
"provenance": [],
"authorship_tag": "ABX9TyNN80Aiw2c0G4+I9vAI4ZTF"
"authorship_tag": "ABX9TyNle294iwdbBzs4Y9OsFBdw"
},
"kernelspec": {
"name": "python3",
Expand Down Expand Up @@ -40,11 +40,66 @@
"!pip3 install aiohttp bs4 cfscrape cloudscraper curl_cffi lxml httpx python-dotenv requests urllib3==1.26 uvloop\n",
"\n",
"from IPython.display import clear_output, HTML, display\n",
"\n",
"clear_output()\n",
"\n",
"display(HTML(\"<marquee><b>Successfully Installed</b></marquee>\"))"
]
},
{
"cell_type": "code",
"source": [
"#@title ***Bypass Links***\n",
"\n",
"#@markdown ---\n",
"\n",
"URL = \"https://ronylink.com/JO3Ov8\" #@param {type:\"string\"}\n",
"\n",
"#@markdown ---\n",
"\n",
"try:\n",
" from re import findall, match\n",
" from time import sleep, time\n",
" from asyncio import sleep as asleep\n",
"\n",
" from bs4 import BeautifulSoup\n",
" from cloudscraper import create_scraper\n",
"except ImportError:\n",
" raise ValueError(\"ReRun Previous Cell, to Install Deficiencies !!\")\n",
"\n",
"async def transcript(url: str, DOMAIN: str, ref: str, sltime) -> str:\n",
" code = url.rstrip(\"/\").split(\"/\")[-1]\n",
" cget = create_scraper(allow_brotli=False).request\n",
" resp = cget(\"GET\", f\"{DOMAIN}/{code}\", headers={\"referer\": ref})\n",
" soup = BeautifulSoup(resp.content, \"html.parser\")\n",
" data = {inp.get(\"name\"): inp.get(\"value\") for inp in soup.find_all(\"input\")}\n",
" await asleep(sltime)\n",
" resp = cget(\n",
" \"POST\",\n",
" f\"{DOMAIN}/links/go\",\n",
" data=data,\n",
" headers={\"x-requested-with\": \"XMLHttpRequest\"},\n",
" )\n",
" try:\n",
" return resp.json()[\"url\"]\n",
" except:\n",
" print(\"Link Extraction Failed\")\n",
"\n",
"print(\"Bypassing...\")\n",
"\n",
"if bool(match(r\"https?:\\/\\/ronylink\\.\\S+\", URL)):\n",
" blink = await transcript(\n",
" URL, \"https://go.ronylink.com/\", \"https://livejankari.com/\", 9\n",
" )\n",
"from IPython.display import clear_output\n",
"clear_output()\n",
"print(\"Bypassed URL : \\n\", blink)"
],
"metadata": {
"cellView": "form",
"id": "apFB3Bh6snhj"
},
"execution_count": null,
"outputs": []
}
]
}

0 comments on commit ff8dd12

Please sign in to comment.