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.
github.com/nft-rainbow/discordBot
DiscordNFTBot
This is a NFTRainbow-based discord bot, which helps users in the discord to mint NFTs easily. On the other hand, this bot can be used on the community activities to increase community activity.
For the admin of the bot, he can choose to use the default erc721 contract, or to deploy his own erc721 or erc1155 contract. To achieve this target, the admin can use the provided CMD to upload file to
obtain the file_url
, which is used by the admin to deploy the contract through the provided CMD.
For the users in the discord channel where the bot is deployed, they can mint their own NFTs through the contract provided by the admin.
cd botCMD
Generate the config.yaml
cp config-sample.yaml config.yaml
Input the app_id
and app_secret
, which can be obtained from the NFTRainbow console
Generate the binary file
make build
Upload file to server to obtain the file_url
botCMD upload [file_path]
# file_path is the uploaded file path
Deploy the contract
botCMD deploy [name] [symbol] [type] [appAddress]
Parameters Name | Meaning | Required or Optional |
---|---|---|
name | The name of the NFT | required |
symbol | The symbol of the NFT | required |
type | The type of contracts including erc721 and erc1155 | required |
appAddress | The address of the app account,which can be obtained from the NFTRainbow console | required |
Generate the config.yaml
cp config-sample.yaml config.yaml
Config the yaml
app_id
and app_secret
botToken
which can be obtained from the discord. This can refer to https://www.writebots.com/discord-bot-token/file_url
, name
, description
and so on.contractAddress
is required to call customMint. Please input the parameter.Run the project
go run main.go
After the users in the discord channel can input the /claim easy-mint [user_address]
to the chat frame, the bot will return the NFT information in several seconds.
Parameters Name | Meaning | Required or Optional |
---|---|---|
user_address | The blockchain address of the user | required |
After the users in the discord channel can input the /claim custom-mint [user_address]
to the chat frame, the bot will return the NFT information in several seconds.
Parameters Name | Meaning | Required or Optional |
---|---|---|
user_address | The blockchain address of the user | required |
FAQs
Unknown package
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.