
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
discord-bitflag
Advanced tools
A JavaScript wrapper for Discord bitflags. You can easily modify Permissions, Intents, User flags, Channel Flags, and more with this library.
Install the library by running
npm i discord-bitflag
Then import and use it in your code like this:
import { PermissionFlags, PermissionsBitField } from "discord-bitflag";
const response = await fetch(DISCORD_API, { ...options });
const permissions = new PermissionsBitField(response.permissions);
if (permissions.has(PermissionFlags.BanMembers)) {
console.log("This user can ban members!");
}
if (permissions.has(PermissionsBitField.ALL)) {
console.log("This user has all permissions!");
}
if (permissions.hasWithoutAdmin(PermissionsBitField.ALL)) {
console.log("This user REALLY has all permissions!");
}
The Permissions BitField class checks for the Admin permission by default when you check a permission via the .has()
method. If you would like to check to see if a permission is explicitly enabled without checking Admin, you can use the .hasWithoutAdmin()
method instead.
Each bit field class extends the BitField
class from bitflag-js.
ApplicationFlagsBitField
and ApplicationFlags
ChannelFlagsBitField
and ChannelFlags
GuildMemberFlagsBitField
and GuildMemberFlags
IntentFlagsBitField
and IntentFlags
MessageFlagsBitField
and MessageFlags
PermissionsBitField
and PermissionFlags
UserFlagsBitField
and UserFlags
FAQs
A Discord bitfield library
The npm package discord-bitflag receives a total of 43 weekly downloads. As such, discord-bitflag popularity was classified as not popular.
We found that discord-bitflag demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.