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.
common-header
Advanced tools
``` npm install ``` ### 开发环境 ``` npm start ``` ### 打包命令 ``` npm run build ```
npm install
npm start
npm run build
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
productName | 必选参数,项目名称,用来匹配logo图片 ke 、mdm | String | 无 |
productHeaderId | 必选参数,eap接口获取项目头部数据对应id | String | 无 |
productLogo | 可选参数,header左侧logo图片,ke和mdm有默认图片,可以不做配置。 | String | 无 |
eap_url | 可选参数,eap接口根地址 | String | /eap/ |
file_url | 可选参数,文件服务接口根地址 | String | /eap/ |
ke_web_url | 可选参数,ke web服务接口根地址 | String | /ke-web/ |
可以在后台菜单配置最顶层添加图片
import Header from 'common-header';
const productName = 'ke';
const productHeaderId = '6';
const initConfig = typeof globalInitConfig === "object" ? globalInitConfig : {};
ReactDOM.render(
<Header productName={productName} productHeaderId={productHeaderId} {...initConfig} />,
document.getElementById('sysware-common-header')
);
引用dist目录下对应文件
<script>
var headerConfig = {
productName: 'mdm',
productHeaderId: '2-30',
productLogo: './logo-conf.png'
}
</script>
<link href="common-header.css" rel="stylesheet">
<div id="sysware-common-header"></div>
<script type="text/javascript" src="common-header.js"></script>
FAQs
``` npm install ``` ### 开发环境 ``` npm start ``` ### 打包命令 ``` npm run build ```
The npm package common-header receives a total of 0 weekly downloads. As such, common-header popularity was classified as not popular.
We found that common-header 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.