← back to browse
goat command grade B

casino

Casino world with slots, blackjack, roulette

0
views
0
likes
0
installs
analysis — static scan, nothing executed
0 grade B
Review recommended — some behaviour worth a look
Security 78
Privacy 100
Quality 86
Maintenance 100
Community 0
medium Deletes files 5×

Calls fs.rm / unlink / rmdir. Check what path it deletes and whether a user can influence it.

L228fs.unlinkSync(canvasPath);
L259}, () => fs.unlinkSync(gifPath));
L285return message.reply({ body: `Your new balance: $${user.money.toLocaleString()}`, attachment: fs.createReadStream(canvasPath)}, () => fs.unlinkSync(canvasPat…
L291fs.unlinkSync(canvasPath);
L324return message.reply({ body: `Your new balance: $${user.money.toLocaleString()}`, attachment: fs.createReadStream(canvasPath)}, () => fs.unlinkSync(canvasPat…
low Filesystem access

Reads or writes files on the machine running the bot.

L4const fs = require('fs-extra');
capabilities — what this file can do, regardless of intent
Network Filesystem Shell Env vars Dynamic code Session data Installs packages Process control
dependencies

canvas, fs-extra, gifencoder

checks
Exports a command/module
Handles errors (try/catch or .catch)
Readable, not minified
Has explanatory comments
No deprecated dependencies
Reasonable size (< 200 KB)
raw source — loaded on demand
Loading source…

View raw file · View analysis as JSON