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.
English | 简体中文
The library was developed for Huaguang AI Education Innovation Team [Case Department]
Applicable to artificial intelligence education
pip3 install control-scnu
Where the various model files are saved
The init file
The version information of the software, programming block and library is indicated in this file
File manipulation related libraries
Car hardware related library The car forward routine (This item needs to run on the car):
from control import gpio
import time
m=gpio.Mecanum_wheel()
m.uart_init()
m.car_go(200)
time.sleep(2)
m.car_stop()
A library for encrypted files
Library for machine learning
Iris machine learning routine:
from control import machine_learning as ml
datasets=ml.DatasetsNew(ml.data_name["鸢尾花"])
model= ml.ModelNew(ml.model_name['神经网络'])
model.train(datasets.x_train, datasets.y_train,dataName=datasets.data_name)
model.test(datasets.x_test,datasets.y_test)
print(model.test_score,flush=True)
model.predict(datasets.x_test)
print(model.pred,flush=True)
model.save(name='myFirstModel')
model1=ml.ModelNew('myFirstModel.proto')
model1.test(datasets.x_test,datasets.y_test)
print(model.pred,flush=True)
Library related to basic mathematics
Library dependent TXT file
Visual related libraries
The camera obtains the image and binarizes the display routine:
from control import shijue1
a=shijue1.Img()
a.camera(0)
a.name_windows('img')
while True:
a.get_img()
a.BGR2GRAY()
a.GRAY2BIN()
a.show_image('img')
a.delay(1)
Put something special in it
Speech correlation library
Routines for speech recognition and retelling:
from control import yuyin
s=yuyin.Yuyin(online=True)
s.my_record(3,"speech")
print(s.stt("speech"),flush=True)
s.play_txt(s.stt("speech"))
FAQs
The code package for HuaGuang AI Education
We found that control-scnu 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.