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.
localinclude
Advanced tools
Test your local HTML include with any page on the Internet
Localinclude is a commmand line tool written in NodeJS, so you need to install it globally from npm.
npm install -g localinclude
You can run localinclude from your project directory, here's a quick demo:
echo '<h1>LOCALINCLUDE is awesome!!!</h1>' > example.inc
localinclude --url https://www.google.com --dompos '#lga' --include example.inc
Once this is running visit the URL the terminal output reports and you'll see the Google homepage with the "LOCALINCLUDE is awesome!!!" written into it.
To use localinclude you need to provide 3 parameters:
--url
The target page on the website you want to use. This needs to be available from where you are (so you can use localinclude with intranets).--dompos
A CSS selector string that tells localinclude where in the page to put your include.--include
A path to the file you want to include into the target page.FAQs
Add a fragment of local code into any page on the web.
We found that localinclude 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.