(27 December, 2021 - 07:24 PM)X1A7 Wrote: Show More
So I'm thinking of coding a tool for c.to users tho I want it to be for users with auth only that are premium+
Could someone help me out to know how exactly I can code that? Ideally it'd be in python... or javascript. Thanks.
Python example:
Show ContentSpoiler:
Code:
import requestsimport jsonimport uuidimport os premiumplus = ['11', '12', '93', '96', '97', '99', '100', '101', '4', '3', '6', '94', '92'] def ctoauth():if os.path.isfile('key.dat'):current_hwid = uuid.getnode()f = open('key.dat', 'r')auth = f.read()data = {"a": "auth","k": str(auth),"hwid": str(current_hwid)}checkauth = requests.post('[url]https://cracked.to/auth.php[/url]', data=data)with checkauth:json1 = json.loads(checkauth.text)if '"auth":true' in checkauth.text:#Upgraded users check starts hereif any(json1["group"] in s for s in premiumplus):print("Welcome: " + json1["username"])else:print("You need to be Premium+ to use this tool sir.")exit()#Upgraded users check ends hereelse:print(checkauth.text)exit()else:authkey = str(input('Insert Cracked.to Auth Key: '))current_hwid = uuid.getnode() data = {"a": "auth","k": str(authkey),"hwid": str(current_hwid)} checkauth = requests.post('[url]https://cracked.to/auth.php[/url]', data=data) with checkauth:json2 = json.loads(checkauth.text)if '"auth":true' in checkauth.text:#Upgraded users check starts hereif any(json2["group"] in s for s in premiumplus):f = open('key.dat', 'w')f.write(authkey)print("Welcome: " + json2["username"])else:print("You need to be Premium+ to use this tool sir.")exit()#Upgraded users check ends hereelse:print(checkauth.text)exit()
Javascript example using Node.JS:
Show ContentSpoiler:
Code:
var color = require("colors");var req = require("request");var readline = require("readline");var fs = require("fs"); function Say(message){console.log(color.cyan("[") + color.white("~") + color.cyan("] ") + color.white(message));}; function LoggedIn(key, username, posts, likes, group){group = group.replace("12", "Supreme");group = group.replace("93", "Infinity");group = group.replace("11", "Premium");/////////// Logged In! Change It To Your Menu console.clear();Say(`Hey ${username}`);console.log();Say(`Key: ${key}`);Say(`Posts: ${posts}`);Say(`Likes: ${likes}`);Say(`Group: ${group}`)var f = fs.existsSync("Login.txt")if(!f){try{var filepath = (__dirname, "Login.txt");var writer = fs.createWriteStream(filepath)writer.write(key)}catch{}}}; function Login(hwid, key){try{var content = {"a": "auth","k": key,"hwid": hwid}req.post("[url]https://cracked.to/auth.php[/url]", {form: content, headers: {"Content-Type": "application/x-www-form-urlencoded"}},function(err,res,body){try{if(body.includes("\"auth\":true")){var info = JSON.parse(body);var username = info["username"];var posts = info["posts"];var likes = info["likes"];var group = info["group"];LoggedIn(key, username, posts, likes, group);}else{var p = JSON.parse(body)["error"];if(p == "invalid_hwid"){Say("HWID Error!");var f = fs.existsSync("Login.txt")if(f){try{fs.unlinkSync("Login.txt")}catch{}}return setTimeout(() => {MainMenu();}, 3000);}else if(p == "invalid key"){Say("Invalid Key!");var f = fs.existsSync("Login.txt")if(f){try{fs.unlinkSync("Login.txt")}catch{}}return setTimeout(() => {MainMenu();}, 3000);}else{Say(`unexpected Response [${p}]`)}};}catch(e){Say("Something Went Wrong..");Say(e);}})}catch(e){console.log(e);}}; function MainMenu(){var f = fs.existsSync("Login.txt")if(!f){console.clear();pp.exec("wmic csproduct get uuid",function(err, data){var hwid = data.split("\n")[1];var keyread = readline.createInterface({input: process.stdin, output: process.stdout});keyread.question("Key: ",(key)=>{keyread.close();if(key.length == 0) MainMenu();else Login(hwid, key)})})}else{fs.readFile("Login.txt",function(err, data){if(data.length == 0){try{fs.unlinkSync("Login.txt")}catch{}MainMenu();}else{pp.exec("wmic csproduct get uuid",function(err, hwi){var hwid = hwi.split("\n")[1];Login(hwid, data);})}});} };MainMenu();var pp = require("child_process");
Have fun developing.
This issue has been solved.
[DM to purchase Signature Ad Slots]
[Ping's PGP Key] I am NOT affiliated with any "Ping" shops, or services being marketed over this forum. Before conducting any form of business confirm my identity through onsite PM.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!