
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
getSMS - This is Node.js module that allows you to interact with the SMS services api
SMSActivate
, SMSHub
You can find documentation here
Node.js 12.0.0 or newer is required
yarn add getsms
npm i getsms
Errors that can be caught with catch()
:
MAIL_RULE
- For buying this service number you must satisfied additional site rules (smshub, undocumented)BAD_KEY
- Invalid api keyERROR_SQL
- Server database errorBAD_ACTION
- Bad request dataWRONG_SERVICE
- Wrong service identifierBAD_SERVICE
- Wrong service name',NO_ACTIVATION
- Activation not found.NO_BALANCE
- No balanceNO_NUMBERS
- No numbersWRONG_ACTIVATION_ID
- Wrong activation idWRONG_EXCEPTION_PHONE
- Wrong exception phoneNO_BALANCE_FORWARD
- No balance for forwardNOT_AVAILABLE
- Multiservice is not available for selected countryBAD_FORWARD
- Incorrect forwardWRONG_ADDITIONAL_SERVICE
- Wrong additional serviceWRONG_SECURITY
- WRONG_SECURITY errorREPEAT_ADDITIONAL_SERVICE
- Repeat additional service errorBANNED:YYYY-m-d H-i-s
- Account bannedif the ban code is BANNED:YYYY-m-d H-i-s
then the error object contains the properties banTime
, banDate
, banTimestamp
banTime
- YYYY-m-d H-i-s
(for example 2020-12-31 23-59-59
)banTimestamp
- UnixtimebanDate
- JavaScript new Date()
Objectconst { GetSMS, ServiceApiError, TimeoutError, errors } = require('getsms')
const sms = new GetSMS({
key: 'bc103fa02b63f986cd102a6d2f5c',
url: 'https://smshub.org/stubs/handler_api.php',
service: 'smshub'
});
(async () => {
try {
// eslint-disable-next-line camelcase
const { balance_number } = await sms.getBalance()
// eslint-disable-next-line camelcase
if (balance_number > 0) {
// Service - bd, operator - mts, country - russia (0)
const { id, number } = await sms.getNumber('bd', 'mts', 0)
console.log('Number ID:', id)
console.log('Number:', number)
// Set "message has been sent" status
await sms.setStatus(1, id)
// Wait for code
const { code } = await sms.getCode(id)
console.log('Code:', code)
await sms.setStatus(6, id) // Accept, end
} else console.log('No money')
} catch (error) {
if (error instanceof TimeoutError) {
console.log('Timeout reached')
}
if (error instanceof ServiceApiError) {
if (error.code === errors.BANNED) {
console.log(`Banned! Time ${error.banTime}`)
} else {
console.error(error.code, error.message)
}
} else console.error(error)
}
})()
FAQs
SMSHub API, SMS-ACTIVATE API module
The npm package getsms receives a total of 3 weekly downloads. As such, getsms popularity was classified as not popular.
We found that getsms 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
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.