i dont know how to play around with it as im a bad coder
Should I release My library for exploiting CDO Chats?
VarrienceLvl 25
- Edited
pluto well you could always look up how to initialize classes anyways I'll let an AI document this for me
The code you have provided seems to be an implementation of a Database class in TypeScript. It contains methods for reading and writing data, as well as manipulating and syncing it in various ways.
Here's a brief summary of what each method does:
**constructor(memory, user, limit, id, color, fg)**: Initializes a new instance of the Database class with some optional parameters.
**flush(id)**: Generates a random ID string if none is provided.
**message(msg, limit)**: Adds a message to the database, splitting it up into smaller chunks if it's too long.
**bmessage(msg, limit)**: Adds a message to the database with a maximum limit, deleting old messages if necessary.
**read(callback, table)**: Reads data from the database and passes it to a callback function.
**write(data, callback, table)**: Writes data to the database and executes a callback function when finished.
**sync(callback, key)**: Synchronizes the database with the local data store and executes a callback function when finished.
**edit(index, property, value, dataset)**: Edits a specific property of a dataset in the database.
**clear()**: Clears all data from the database.
**spam(message, ms)**: Sends a message to the database at regular intervals.
**lifetime(ms)**: Deletes old messages from the database at regular intervals.
**announce(message)**: Announces a message to all users in the database.
**named(user)**: Changes the username of a user in the database.
**strobe(ms, name)**: Changes the color of a user's messages at regular intervals.
**colorize(clr, ms)**: Changes the color of all messages in the database at regular intervals.
Now for some examples
// Construct the database that you'll be using
var db = new Database("messages", "John", 20, "ABCD1234");
// Read from the setup table that chats use
db.read(console.log);
// edit a current message that you or someone else has sent
db.edit(0, "msg", "Hi there!");
// clear the current chat
db.clear();
VarrienceLvl 25
- Edited
pluto that probably means that you don't understand the documentation that I've given you either, I'd encourage you to try to read it again to understand, especially because the parameter your asking about is optional I'd suggest looking at the constructor summary since that lists the parameters, you can also read the code yourself to get a better idea, but all you really need is the first two parameters the one your referencing is if you want to put in a custom id, if you truly don't understand how classes work I would also recommend reading up on that as well since that can't really be explained in a forum post
FluffypoopoLvl 55
@Varrience I need to stress test my anti-hack, could you design something to do that for me please, preferably with labeled inputs because I do not understand the dark side yet
Fluffypoopo
wut adam made this
if (window.getURLPath()[3] == "view") {
while (true) {
prompt("No.");
}
}
then put it in a library
FluffypoopoLvl 55
pluto I have an at the moment passive anti-hack once I know it is not going to let anything slip I'll make it like a Minecraft wolf and attack back
FluffypoopoLvl 55
I wonder if there is a way to collect CDO accounts like the actual CDO accounts
Fluffypoopo i feel like user ids are the closet you can get
ackvonhuelioLvl 41
pluto
you can bypass this by blocking the prompts(firefox lets you do this through the click of a button)
VarrienceLvl 25
Fluffypoopo i mean it looks like garbage but sure
function flush(id) {
id = id || String();
while (id.length < 28) {
id += encodeURIComponent(String.fromCharCode(Math.floor(Math.random() * 255)))
}
}
var player = { user: "stonks_GOD_V2", userid: flush(), role: "User", rank: 0, flag: "done" };
update("Projects", { project_image: "https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg", project_title: "Give Up", project_url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ", project_rating: "42069", project_description: "Idk it's a prank bro", project_username: player.user, project_userid: player.id, id: 2 })
push("Users", player);
//push("Projects", {project_image: "https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg", project_title: "Give Up", project_url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ", project_rating: "42069", project_description: "Idk it's a prank bro", project_username: player.user, project_userid: player.id})
readRecords("Projects", [], console.log);
function push(table, data) {
createRecord(table, data);
for (var i = 2; i < 4; i++) {
createRecord(table + i, data)
}
}
function purge(table, data) {
deleteRecord(table, data);
for (var i = 2; i < 4; i++) {
deleteRecord(table + i, data)
}
}
function update(table, data) {
updateRecord(table, data);
for (var i = 2; i < 4; i++) {
updateRecord(table + i, data)
}
}
I left a present on your demo btw
ackvonhuelio yeah i know, im just using wut adams thing
VarrienceLvl 25
- Edited
pluto lmao would you have preferred chocolate rain? i was asked to troll so I obliged @Fluffypoopo if not, what would you prefer being injected into it?
oh yeah abt that, doesn't savecanvas download files if you put it in your game? i think this can be exploited
VarrienceLvl 25
pluto yea unless you block multiple download files https://studio.code.org/projects/gamelab/Uzs--qFrO3-uoMe-x-x5tSR9EcMOu7EXctVFWIKhbB4/view i think it's originally allowed for chrome but most other providers don't also CLICK AT YOUR OWN RISK this is a demo for a proof of concept don't run the project unless you know how it works or you know what your doing
it wont work and im on chrome
and i didnt block it