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.
Please read the stackprofiler
gem README for background on Stackprofiler
in general.
This is a Pry plugin that makes benchmarking of code using Stackprofiler a much more fluid experience and provide a quicker turn-around time. It does this by passing along Pry's linebuffer to the Stackprofiler server so that code needn't be stored in the file system for Stackprofiler to annotate.
$ gem install pry-stackprofiler
Once installed, Pry should autoload the plugin. No require
necessary. There is
some setup required on the plugin side; specifically, the plugin needs to be told
where to send profile data. This can be done either by means of an environment
variable or in ~/.pryrc
.
# ~/.pryrc
Pry.config.pry_stackprofiler_ui_url = "http://localhost:9292/receive"
or
# ~/.bashrc
export PRY_STACKPROFILER_UI_URL=http://localhost:9292/receive
Start up Stackprofiler on the command line:
$ stackprofiler
In another tab, start up a Pry session:
$ pry
[1] pry(main)> Pry.profile do
[1] pry(main)* sleep 0.3
[1] pry(main)* sleep 0.4
[1] pry(main)* sleep 0.1
[1] pry(main)* end
Now navigate to Stackprofiler (probably at http://localhost:9292/) and see which lines were slowest!
You can pass an options hash to Pry::profile
if desired. The most useful key is interval
and specifies how often the code should be sampled in microseconds. The default is 1000.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that pry-stackprofiler 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
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.