Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
This package is used to make stuff easier by using simple functions, its not fully released yet!
ultrax is a simple package make by UltraX, it's simply made to make your coding process faster by some functions
In case you have idea's to improve the package, or maybe you found some bugs or you need help, you can contact us from our Discord Server
To install ultrax package all you need is Node.js.
Then you can open your application terminal and type there:
$ npm install ultrax
The available functions are:
There is currently only an event called inviteJoin
in the package which allows you to get some informations about the invite such as the inviter and how many times it got used.
sleep is a simple function, where is make it easier and faster to make a timeout in your code. Example:
// Importing the package
const ultrax = require('ultrax')
// Destructure the sleep function from the package
const sleep = ultrax.sleep
// this will log "Start!" once i run the application
console.log('Start!')
// using the package sleep function to set a timeout
sleep(5000) // sleep(milliseconds)
// after the 5 seconds (5000 milliseconds) it will log "5 Seconds passed"
console.log('5 Seconds passed')
this is a simple function that can generate passwords using letters and numbers and the password length is custom so you can change it to any length you want!
Example:
// Importing the package
const ultrax = require('ultrax')
// Destructure the passGen function from the package
const passGen = ultrax.passGen
// this will log the randomly generate password in your terminal
console.log(passGen(6)) // passGen(6) that mean it will generate a password from 6 characters.
// you can change it by changing passGen(here will be the length of the password)
This is a way to bin a code.
// Defining the package
const ultrax = require('ultrax')
// if it's empty it returns a message saying "what do you want to bin?"
if (!args.join(' ')) return message.channel.send('What do you want to bin?');
else {
// else if everything works fine, we will make a new varible called "bin"
// it will be used to bin the args.join(' ') also known as the message.content
const bin = await ultrax.bin(args.join(' '));
// then here we will send the results!
message.channel.send('Here i binned the code ' + bin)
}
This event is for logging invite uses. This is same as guildMemberAdd
event but this is custom event which has invite and inviter in it.
// Defining the package
const ultrax = require("ultrax")
//defining discord
const discord = require('discord.js')
// new discord client
const client = new discord.Client()
// To Get The new event working we need to initilize it by:
ultrax.inviteLogger(client) // put here your discord client
// without above code event won't trigger.
// now below event will work
client.on('inviteJoin', (member, invite, inviter) => {
console.log(`${member.user.tag} joined using invite code ${invite.code} from ${inviter.tag}. Invite was used ${invite.uses} times since its creation.`)
});
FAQs
UltraX Package is a unique package that allows you to create cool things using simple functions and events.
The npm package ultrax receives a total of 32 weekly downloads. As such, ultrax popularity was classified as not popular.
We found that ultrax demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.