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.
npm install --save fzm
import {restfuls,sp_restfuls} from 'fzm'; //如果接口返回规范的数据格式(详情请看后面)那么使用restfuls,如果是不规范的则使用sp_restfuls
const api = {
getRegisterState(params){ //判断是否已注册。注意!get方式的请求params外面需要包裹一个大括号
return restfuls.get(注册的接口地址,{ params });
},
login(params){ //快速登录
return restfuls.post(快速登录的接口地址,params);
},
getKlineDate(params) { //获取k线数据 `这个接口返回的数据格式是不规范的,所以使用sp_restfuls`
return sp_restfuls.get(chartOrigin + "/kdata", {params});
},
}
{
code:200,
data:{
...
},
message:"..."
}
import {notyf} from 'fzm';
notyf.confirm("成功!")
notyf.alert("失败!")
import {date} from 'fzm';
let time = date.format("Y-M-D h:m:s",new Date().getTime()); // 2018-6-20 13:12:23
let o = {
a:'aaa',
b:'bbb'
}
object.hasOwnProps(o,'a','b');
import fzm from 'fzm';
fzm.notyf.confirm("成功!")
fzm.notyf.alert("失败!")
FAQs
https://www.33.cn
The npm package fzm receives a total of 9 weekly downloads. As such, fzm popularity was classified as not popular.
We found that fzm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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.