Last active
May 18, 2025 08:54
-
-
Save krypton-byte/5f23b171e4b0facb04af182a8d5e06ea to your computer and use it in GitHub Desktop.
Bypass javascript Byethost 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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