Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
.. image:: https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg :target: https://saythanks.io/to/jezeniel
.. image:: https://img.shields.io/pypi/pyversions/smsutil :target: https://pypi.org/project/smsutil/
Simple set of utility functions for encoding, decoding and splitting sms messages. Shift tables is currently not supported.
GSM 03.38 <https://en.wikipedia.org/wiki/GSM_03.38>
_UCS2/UTF-16
and GSM 03.38
To install smsutil
:
.. code-block:: bash
$ pip install smsutil
Example for encoding and decoding:
.. code-block:: python
import smsutil
smsutil.is_valid_gsm('nobita and doraemon') # True smsutil.is_valid_gsm('๐') # False
gsm = smsutil.encode('the quick brown fox jumps over the lazy dog {@}')
smsutil.decode(gsm) # encoding='gsm0338'
utf16 = smsutil.encode('ๆ้ซใงใใ ๐')
smsutil.decode(utf16, encoding='utf_16_be') # should specify encoding
sms = smsutil.split('[the quick brown fox]') len(sms.parts) # 1 sms.encoding # 'gsm0338' sms.parts[0].content # '[the quick brown fox]' sms.parts[0].length # 21 sms.parts[0].bytes # 23
sms = smsutil.split('ๆ้ซใงใใ ๐') len(sms.parts) # 1 sms.encoding # 'utf_16_be' sms.parts[0].content # 'ๆ้ซใงใใ ๐' sms.parts[0].length # 7 sms.parts[0].bytes # 16
smsutil is just using python's builtin codecs for UCS2/UTF-16.
FAQs
encode, decode and split SMS.
We found that smsutil 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.