Skip to content

Instantly share code, notes, and snippets.

@kabeer11000
Forked from krypton-byte/bypass_byethost5.py
Created May 18, 2025 08:54
Show Gist options
  • Select an option

  • Save kabeer11000/fe37de2018b4932a8bed8c921e099d08 to your computer and use it in GitHub Desktop.

Select an option

Save kabeer11000/fe37de2018b4932a8bed8c921e099d08 to your computer and use it in GitHub Desktop.
Bypass javascript Byethost 5
import re
import requests
import js2py
def getContent(url):
javascript=js2py.EvalJs()
javascript.eval(requests.get(re.search("(https?://.*?\.[a-zA-Z0-9.]{0,20})",url).group(1)+"/aes.js").text)
return requests.get(url, headers={"Cookie":javascript.eval(re.search("\<script\>(fu.*?;)\<", requests.get(url).text).group(1).replace("document.cookie", "cookie").replace("location.", "")+"cookie")})
print(getContent("http://krypton-byte.byethost5.com/"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment