
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
This is a pure-python replacement for notify-python, using python-dbus to communicate with the notifications server directly. It's compatible with Python 2 and 3, and its callbacks can work with Gtk 3 or Qt 4 applications.
To use it, first call notify2.init('app name')
, then create and show notifications::
n = notify2.Notification("Summary",
"Some body text",
"notification-message-im" # Icon name
)
n.show()
API docs are available on ReadTheDocs <https://notify2.readthedocs.org/en/latest/>
_,
or you can refer to docstrings.
Based on the notifications spec at: http://developer.gnome.org/notification-spec/
There are a few differences from pynotify you should be aware of:
mainloop
parameter
to init
.attach_to_widget
and attach_to_status_icon
are not
implemented. You can calculate the location you want the notification to
appear and call Notification
.set_property
and get_property
are not implemented. The summary, body
and icon are accessible as attributes of a Notification
instance.Several pynotify functions, especially getters and setters, are only supported for compatibility. You are encouraged to use more direct, Pythonic alternatives.
FAQs
Python interface to DBus notifications
We found that notify2 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
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.