
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Send packets to a RADIUS server and show reply.
This is a porting of radclient utility to node.js, built on top of node-radius module.
See /examples folder. But basically:
var radclient = require('radclient');
// Sample Access-Request packet
var packet = {
code: 'Access-Request',
secret: 's3cr3t',
identifier: 123,
attributes: [
['NAS-IP-Address', '192.168.1.10'],
['User-Name', 'john'],
['User-Password', 'doe']
]
};
// Options
var options = {
host: '192.168.1.20',
timeout: 2000,
retries: 3
};
// Go!
radclient(packet, options, function(err, response) {
console.log(response);
// ...
});
packet (object|buffer): a RADIUS packet. You can pass an object with the args of radius.encode function, or directly the encoded packet.
options (object): radclient available options. They are:
host (string): RADIUS host (required)
port (number): RADIUS port (optional, default 1812)
timeout (number): number of ms to wait for a RADIUS response before raising an ETIMEDOUT error (optional, default 2500)
retries (number): number of times to retry to send packet again after a ETIMEDOUT error (optional, default 3)
dictionaries (string): path for a folder with custom or vendor-specific RADIUS dictionaries (optional)
callback (function): default callback(err, response) (required).
npm test
This library is builded with debug module.
If you want to see what's going on under the hood, simply prepend DEBUG=radclient* to your script execution.
With the provided example, you can simply do:
DEBUG=radclient* node examples/simple
The MIT License (MIT)
Copyright (c) 2015 Michele Pangrazzi <xmikex83@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Send packets to a RADIUS server and show reply
We found that radclient 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.