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.
cg635-clock-generator
Advanced tools
Interface with a Stanford Research Systems CG635 Synthesized Clock Generator
Interface with a Stanford Research Systems CG635 Synthesized Clock Generator.
$ pip install cg635-clock-generator
from cg635_clock_generator import CG635ClockGenerator, CG635Communication
clock_generator = CG635ClockGenerator(
communication_type=CG635Communication.RS232,
serial_device='/dev/ttyUSB0',
)
print(clock_generator.get_identification())
FREQ = 10e6
PHASE = 90.0
clock_generator.set_frequency(FREQ)
frequency = clock_generator.get_frequency()
print(f"Frequency is {frequency} Hz")
clock_generator.set_phase(PHASE)
phase = clock_generator.get_phase()
print(f"Phase is {phase} degrees")
During normal development and for the CI the unit test suite is executed on a mock
device using pyvisa-mock. It is also possible to run tests on real hardware connected
to your system. Just set the hil
flag when running tox
$ tox -- --hil
By default it will try to connect to /dev/ttyUSB0
, but you can specify a different
device using the --hil_serial_device
option:
$ tox -- --hil --hil_serial_device /dev/ttyUSB1
Currently only the RS232 communication has been tested on the device.
For more details of the module API, check the online documentation.
Great! Check the Contributing Guide to get started.
FAQs
Interface with a Stanford Research Systems CG635 Synthesized Clock Generator
We found that cg635-clock-generator 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
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.