Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
lesca-dom2json
Advanced tools
$ npm install lesca-dom2json --save
convert DOM element to JSON before react-dom render;
<div class="app">
<!--- { title:"Lorem Ipsum is simply" } -->
<div class="title">Lorem Ipsum is simply</div>
</div>
<script src="./boundle.js"></script>
<div class="app">
<!-- { img:'./img/1/png' } -->
<div class="img">
<img src="./img/1/png" />
</div>
</div>
<script src="./boundle.js"></script>
<div class="app">
<!-- { img_link:[ { url:'https://www.asus-buy.com', img:'./update/img0.jpg' }, ... ]} -->
<div class="img_link">
<a href="https://www.asus-buy.com">
<img src="./update/img0.jpg" />
</a>
<a href="https://www.asus.com">
<img src="./update/img1.jpg" />
</a>
</div>
</div>
<script src="./boundle.js"></script>
<div class="app">
<!--- { list:[ 'Lorem Ipsum...', ... ] } -->
<div class="list">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
</div>
<script src="./boundle.js"></script>
<div class="app">
<!-- { "buy-now": [ { name:'www.liverpool.com', url:'#liverpool' } , ... ] } -->
<div class="buy-now">
<a href="#liverpool">www.liverpool.com</a>
<a href="#momoshop">momoshop</a>
<a href="#pchome">pchome</a>
<a href="#Costco">Costco</a>
<a href="#pchome">pchome</a>
<a href="#Costco">Costco</a>
</div>
</div>
<script src="./boundle.js"></script>
import React from 'react';
import ReactDOM from 'react-dom';
import Apps from './app.js';
import Dom2json from 'lesca-dom2json';
const data = Dom2Json(document.querySelector('.app'));
ReactDOM.render(<Apps data='{data}' />, document.querySelector('.app'));
FAQs
convert DOM element to JSON format.
The npm package lesca-dom2json receives a total of 0 weekly downloads. As such, lesca-dom2json popularity was classified as not popular.
We found that lesca-dom2json 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.