Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Simplified traversal and building of an XML DOM.
This module provides a jQuery-like wrapper, but geared for
traversing and manipulating an XML DOM, as opposeed to an HTML DOM. The API
aims to be compatible with Strophe.js'
Builder
and Less-Than XML. The underlying DOM
is W3C standard, provided by XMLDOM.
$ npm install xtraverse
var xml = fs.readFileSync('feed.xml', 'utf8');
var feed = XT(xml);
console.log(feed.children('title').text());
for (var link = feed.children().first('link'); link.length > 0; link = link.next('link')) {
console.log(link.attr('href'));
}
for (var entry = feed.children().first('entry'); entry.length > 0; entry = entry.next('entry')) {
console.log('Entry: ' + entry.children('title').text());
}
var feed = XT('<feed xmlns="http://www.w3.org/2005/Atom"/>')
.c('title').t('Example Feed').up()
.c('link', { href: 'http://example.org/' })
.c('entry').c('title').t('Atom-Powered Robots Run Amok').up().up()
.c('entry').c('title').t('Today I Ate Pancakes');
$ npm install
$ npm test
Copyright (c) 2013 Jared Hanson <http://jaredhanson.net/>
FAQs
Wrapper for simplifying XML traversal.
The npm package xtraverse receives a total of 29,492 weekly downloads. As such, xtraverse popularity was classified as popular.
We found that xtraverse 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 threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.