Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
API for sending SMS messages or performing HLR lookups via ZenSend
The library is distributed via Maven io.zensend::zensend
Create an instance of the client
Client client = new Client("YOUR-API-KEY");
To send an SMS, you must specify the originator, body and numbers:
Message message = new Message();
message.originator = "orig";
message.body = "message body";
message.numbers = new String[]{"447777777777", "448888888888"};
SmsResult smsResult = client.sendSms(message);
System.out.println(
smsResult.txGuid + ":" +
smsResult.numbers + ":" +
smsResult.smsParts + ":" +
smsResult.encoding + ":" +
smsResult.costInPence + ":" +
smsResult.newBalanceInPence
);
You can also specify the following optional params:
Message message = new Message();
message.originator = "orig";
message.body = "message body";
message.numbers = new String[]{"447777777777", "448888888888"};
message.originatorType = Message.OriginatorType.ALPHA; // either ALPHA or MSISDN
message.timeToLiveInMinutes = 100;
message.smsEncoding = Message.SmsEncoding.GSM; // either GSM or UCS2
SmsResult smsResult = client.sendSms(message);
System.out.println(
smsResult.txGuid + ":" +
smsResult.numbers + ":" +
smsResult.smsParts + ":" +
smsResult.encoding + ":" +
smsResult.costInPence + ":" +
smsResult.newBalanceInPence
);
This will return your current balance:
BigDecimal balance = client.checkBalance();
System.out.println(balance);
This will return a HashMap with all our prices by country code:
HashMap<String, BigDecimal> prices = client.getPrices();
System.out.println(prices);
This allows you to lookup the operator of a given MSISDN
OperatorLookupResult opLookup = client.lookupOperator("447777777777");
System.out.println(
opLookup.mcc + ":" +
opLookup.mnc + ":" +
opLookup.operator + ":" +
opLookup.costInPence + ":" +
opLookup.newBalanceInPence
);
mvn release:clean release:prepare
mvn release:perform -P release-profile
mvn deploy -P release-profile
FAQs
API for sending SMS messages or performing HLR lookups via ZenSend
We found that io.zensend:zensend demonstrated a not healthy version release cadence and project activity because the last version was released 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.