
Research
npm Malware Targets Telegram Bot Developers with Persistent SSH Backdoors
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
dda-line-algorithm
Advanced tools
This Node.js library (support TypeScript) will facilitate the calculation of DDA algorithm for a given 2 end points.
npm install dda-line-algorithm
DDALine method reqire 4 integers (startX, startY, endX, endY) as parameters and algorithm will generate the line coordinates between the starting and ending points and returns array of objects
To get the coordinates of line from (1,4) to (5,9) use below code
let dda = require('dda-line-algorithm') OR import dda from 'dda-line-algorithm'
let pointsList = dda.DDALine (1,4,5,9);
returns
[ { x: 1, y: 4 },
{ x: 2, y: 5 },
{ x: 3, y: 6 },
{ x: 3, y: 7 },
{ x: 4, y: 8 },
{ x: 5, y: 9 } ]
you can access points using
for(const point of pointsList) {
x = point.x
y = point.y
// ...
}
FAQs
DDA line algorithm point generation
We found that dda-line-algorithm 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
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.