
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
#Portastic
Programmatically find open ports with Node.js
To install Portastic you can simply use NPM:
npm install portastic
Finding all opened doors within a range:
port = require('portastic');
options = {
min : 8000,
mas : 8005
}
port.find(options, function(err, data){
if(err)
throw err;
console.log(data);
});
If you wan't to retrieve just one or more doors you can pass it in the options:
options = {
min : 8000,
max : 8005,
retrieve : 1
}
You can also test ports:
port.test(80, function(err, data){
if(err)
throw err;
if(data == false)
console.log('The port isn\'t opened.');
else
console.log('The port is opened!');
});
If you wan't to test an array of door, you sure can:
port.test([80, 93, 8001, 22], function(err, data){
if(err)
throw err;
// 'data' will be an array with the opened doors only
console.log('Opened doors:', data);
});
You can use Portastic in the command line too:
npm install -g portastic
This will install portastic globally, now it's up to you to call it. Display the help with:
portastic -h
If you wan't to run tests on portastic locally you will need to follow this steps:
cd /path/to/portastic/folder
npm install vows
npm test
FAQs
Pure javascript swiss knife for port management
The npm package portastic receives a total of 11,895 weekly downloads. As such, portastic popularity was classified as popular.
We found that portastic 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.