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.
meetyou-node-tongji
Advanced tools
百度统计数据导出API的node-js版本,支持node.js 6+ 版本;
非常感谢luventa的开源项目https://github.com/luventa/node-tongji,我在此工程的基础上做了兼容node.js 6+,luventa的版本用到了es7的await,async新语法,需要node.js 7.6+。
npm i meetyou-node-tongji -save-d
test.js
//配置下参数
const config = {
username: '', //百度统计账号
password: '', //密码(不会盗号,可看具体实现)
token: '', //token
uuid: '' //无用字段,随便填写
}
const tongji = require('./index').getInstance(config);
function test(){
"use strict";
//登录
tongji.login()
.then((res)=>{
console.log("登录成功",res);
//调用
tongji.getSiteList().then((data)=>{
console.log(data);
})
})
.catch((err)=>{
console.log('登录失败',err);
})
}
test();
node test.js 会看到日志成功or失败 具体可根据百度统计API文档调用相关接口
FAQs
百度tongji API的node版本,支持node 6以上版本
The npm package meetyou-node-tongji receives a total of 4 weekly downloads. As such, meetyou-node-tongji popularity was classified as not popular.
We found that meetyou-node-tongji 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.