Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
github.com/elehobica/pico_tinygo_buttons
This project is a library for handling multiple buttons on Raspberry Pi Pico by TinyGo.
This project features to detect:
Pico Pin # | Pin Name | Function | Connection |
---|---|---|---|
23 | GND | GND | COM |
24 | GP18 | GPIO Input | RESET |
25 | GP19 | GPIO Input | SET |
26 | GP20 | GPIO Input | CENTER |
27 | GP21 | GPIO Input | RIGHT |
29 | GP22 | GPIO Input | LEFT |
31 | GP26 | GPIO Input | DOWN |
32 | GP27 | GPIO Input | UP |
> cd /d/somewhere/share
> git clone -b main https://github.com/elehobica/pico_tinygo_buttons.git
> wsl
(in WSL2 shell)
$ docker pull tinygo/tinygo:0.27.0
$ docker images
$ docker run -it -v /mnt/d/somewhere/share:/share tinygo/tinygo:0.27.0 /bin/bash
(in docker container)
# cd /share
(copy repository for docker native directory for best performance of WSL2, otherwise stay /share)
(# cp -r /share/pico_tinygo_buttons ~/ && cd ~ )
# cd pico_tinygo_buttons
# go mod init github.com/elehobica/pico_tinygo_buttons
# go mod tidy
# tinygo build -target=pico --serial uart -o pico_tinygo_buttons.uf2
(copy UF2 back to Windows local if working on docker native directory)
(# cp pico_tinygo_buttons.uf2 /share/pico_tinygo_buttons/ )
Then, go back to Windows environment and put "pico_tinygo_buttons.uf2" on RPI-RP2 drive
=========================
== pico_tinygo_buttons ==
=========================
center: 1
left: 1
right: 1
up: 1
up: 1
right: 1
down: 1
down: 1 (Repeated 1)
down: 1 (Repeated 2)
center: 2
set: 1
reset: 1
center: Long
center: LongLong
center: 3
time 41us (scan: 650)
FAQs
Unknown package
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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.