
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
NPM module for HTTP API of mainsms.ru
var mainsms = require('mainsmsru')(process.env.MAINSMS_API_KEY);
mainsms.message.send({
test: 1,
run_at: undefined,
sender: 'sender-name',
project: 'my-awesome-project',
recipients: ['9261112233', '9161112233'],
message: 'hello, world!',
}, function (err, res) {
console.log('ERROR: ', err);
console.log('RESULT: ', res);
});
I'll describe only the differences between this module and original docs.
All methods get options
and callback
input parameters: function (options, callback) {...}
, where callback
must be a function taking arguments error
and result
: function (err, res) {...}
. If everything's fine than err
will be equal undefined
, otherwise it will contain an object { code: <numeric error code>, message: 'error description'}
.
You must provide your API key before using this module: var mainsms = require('mainsmsru')('YOUR_API_KEY')
. In every following paragraph I suppose you named this module as mainsms
;
object: mainsms.message
methods: send
, status
, price
, balance
, info
, status
docs: http://mainsms.ru/home/mainapi
'9110000000,9120000000'
), can also be an array of them (e.g. ['9110000000','9120000000']
).object: mainsms.sending
docs: http://mainsms.ru/home/sendingapi
methods: not implemented
object: mainsms.batch
docs: http://mainsms.ru/home/batch
methods: not implemented
object: mainsms.group
docs: http://mainsms.ru/home/group_api
methods: not implemented
object: mainsms.contact
docs: http://mainsms.ru/home/contact_api
methods: not implemented
object: mainsms.sender
docs: http://mainsms.ru/home/sender_api
methods: not implemented
FAQs
HTTP API for SMS-sending service: mainsms.ru
The npm package mainsmsru receives a total of 1 weekly downloads. As such, mainsmsru popularity was classified as not popular.
We found that mainsmsru 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.