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.
cctalk-devices
Advanced tools
This library aims to provide support for various peripheral devices that use the ccTalk protocol over a serial line or serial line emulation over USB. It's primary target is the EMP800 by wh Münzprüfer Berlin and Taiko Pub7 BillValidators
if error post a issue on github
The API is object oriented and uses several proxy objects to model parts of the physical hardware.
A bus object is used to interface devices that share a common data line. It stores the host configuration and can be explicitely or implicitely constructed (if only one device is used).
Constructs a new bus object.
Arguments:
Adds a device to the internal list of devices managed by this host.
Argument:
Sends a command to the bus and waits for a reply.
Argument:
Sends a command to the bus without waiting for previous commands to be sent or the reply from the device. Mostly for internal use.
Argument:
An object describing data sent to a devices or received from a device.
Constructs a new command object from parameters.
Arguments:
Parses a new command object from raw data.
Arguments:
Converts the command to raw data.
Returns:
An object describing a generic device. It can be used to implement more high-level device proxies.
Constructs a new device proxy. Optionally also create a new bus object.
Arguments:
The constructor will store the bus to use in ccDevice.bus but will not call ccDevice.bus.registerDevice() yet, as additional set-up needs to be done before a raw ccDevice object can be used.
Constructs a new ccDevice object to use as a prototype for the implementation of a proxy object for specific device types.
Called by the bus object when the serial interface is open.
Called by the bus object when a reply has been received from the device.
Arguments:
Called by the bus object after the serial port has been closed.
High-level API to send commands and receive replies.
Arguments:
Finally something useful! Implements a coin acceptor.
TODO Document API
ccTalk may be a registered trademark of Money Controls or Crane Payment Innovations.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
FAQs
Interface coin acceptors and other hardware speaking ccTalk
We found that cctalk-devices demonstrated a not healthy version release cadence and project activity because the last version was released 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
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.