
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.
django-sendsms-pebble
Advanced tools
A simple api to send SMS messages with django. The api is structured the same way as djangos own email api.
::
pip install django-sendsms
Configure the SENDSMS_BACKEND
(defaults to 'sendsms.backends.console.SmsBackend'
)::
SENDSMS_BACKEND = 'myapp.mysmsbackend.SmsBackend'
Sending SMSs is like sending emails::
from sendsms import api
api.send_sms(body='I can haz txt', from_phone='+41791111111', to=['+41791234567'])
you can also make instances of SmsMessage
::
from sendsms.message import SmsMessage
message = SmsMessage(body='lolcats make me hungry', from_phone='+41791111111', to=['+41791234567'])
message.send()
Creating custom SmsBackend
s::
from sendsms.backends.base import BaseSmsBackend
from some.sms.delivery.api
class AwesomeSmsBackend(BaseSmsBackend):
def send_messages(self, messages):
for message in messages:
for to in message.to:
try:
some.sms.delivery.api.send(
message=message.body,
from_phone=message.from_phone,
to_phone=to,
flashing=message.flash
)
except:
if not self.fail_silently:
raise
Then all you need to do is reference your backend in the SENDSMS_BACKEND
setting.
FAQs
A simple API to send SMS messages.
We found that django-sendsms-pebble demonstrated a healthy version release cadence and project activity because the last version was released less than 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.