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://travis-ci.org/tehmaze/xmodem.png?branch=master :target: https://travis-ci.org/tehmaze/xmodem
.. image:: https://coveralls.io/repos/tehmaze/xmodem/badge.png :target: https://coveralls.io/r/tehmaze/xmodem
Documentation available at http://packages.python.org/xmodem/
Python Package Index (PyPI) page is available at https://pypi.python.org/pypi/xmodem
Create a function to get and put character data (to a serial line for example)::
>>> import serial
>>> from xmodem import XMODEM
>>> ser = serial.Serial('/dev/ttyUSB0', timeout=0) # or whatever port you need
>>> def getc(size, timeout=1):
... return ser.read(size) or None
...
>>> def putc(data, timeout=1):
... return ser.write(data) # note that this ignores the timeout
...
>>> modem = XMODEM(getc, putc)
Now, to upload a file, use the send
method::
>>> stream = open('/etc/fstab', 'rb')
>>> modem.send(stream)
To download a file, use the recv
method::
>>> stream = open('output', 'wb')
>>> modem.recv(stream)
For more information, take a look at the documentation_.
.. _documentation: http://packages.python.org/xmodem/xmodem.html
0.4.7:
recv()
, PR #56 <https://github.com/tehmaze/xmodem/pull/56>
_.send()
, PR #52 <https://github.com/tehmaze/xmodem/pull/52>
_.recv()
, PR #53 <https://github.com/tehmaze/xmodem/pull/53>
_.recv()
, PR #50 <https://github.com/tehmaze/xmodem/pull/50>
_.8a798e8b <https://github.com/tehmaze/xmodem/commit/8a798e8b2af2a9cd6f9e789ef154a23a6467f98b>
_.logging.warn()
, PR #49 <https://github.com/tehmaze/xmodem/pull/49>
_.0.4.6:
Issue #34 <https://github.com/tehmaze/xmodem/issues/34>
_.0.4.5:
assert False
code in recv()
that resulted in
AssertionError
introduced in version 0.4.0 commit-id 9b03fc20
, PR #29 <https://github.com/tehmaze/xmodem/pull/29>
_.0.4.4:
send()
were more likely to fail for
small values of retry
: This value should be the maximum failures per
block transfer as documented, but was improperly implemented as the number
of failures allowed for the total duration of the transfer, PR #21 <https://github.com/tehmaze/xmodem/pull/21>
_.send(retry=n)
and recv(retry=n)
should retry n
times
as documented, was retrying n - 1
.0.4.3:
putc()
callback was called in series, 3 times for each part of
xmodem block header, data, and checksum during block transfer. Now all
three data blocks are sent by single putc()
call. This resolves issues
when integrating with microcontrollers or equipment sensitive to timing
issues at stream boundaries, PR #19 <https://github.com/tehmaze/xmodem/pull/19>
_.0.4.2:
Issue #16 <https://github.com/tehmaze/xmodem/issues/16>
_.0.4.1
send()
on NAK
or timeout, previously
re-transmissions (wrongly) occurred only on garbage bytes.
PR #12 <https://github.com/tehmaze/xmodem/pull/12>
_.0.4.0
PR #8 <https://github.com/tehmaze/xmodem/pull/8>
_.PR #11 <https://github.com/tehmaze/xmodem/issues/11>
_.FAQs
XMODEM protocol implementation.
We found that xmodem demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
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.