Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Install the library using:
pip install shodan-chrono
And then use it in your code:
import chrono
items = [i for i in range(100)]
with chrono.progress("My Script", len(items), api_key="YOUR SHODAN API KEY") as pb:
for item in items:
# Do something
# Update the progress bar after we've processed the item
pb.update()
You can also tell the progress bar to update by more than 1 tick:
pb.update(5) # Tell Chrono that we've processed 5 items
The Chrono API requires a Shodan API key and there are 3 possible ways you can provide that:
shodan init YOUR_API_KEY
SHODAN_API_KEY
environment variable. For example: export SHODAN_API_KEY="YOUR KEY"
api_key
parameter on the chrono.progress()
classIf you're already using the Shodan CLI for other things then you won't need to configure anything in order to use Chrono.
Checkout the repository and then use poetry
to manage the dependencies, virtual environment and packaging. To get started, simply run the following command once you're in the python/
subdirectory of this repository:
poetry install
FAQs
Create a progress bar that you can view on chrono.shodan.io
We found that shodan-chrono 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
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.