
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
yarn add afdian
# or
npm install --save afdian
import Afdian, { AfdianClientOptions, AfdianSponsorResponse, AfdianOrderResponse } from 'afdian';
// 其中 { } 中 ts 类型可以不导入
// Types in { } block can be ignored
const afdian = new Afdian({
userId: 'xxxx',
token: 'xxxx'
});
// Ref: https://afdian.net/dashboard/dev
const res = await afdian.ping();
// {
// ec: 200,
// em: 'pong',
// data: { }
// }
// 查询订单
const res = await afdian.queryOrder(1);
// {
// ec: 200,
// em: 'order',
// data: {
// list: [],
// total_count: 0,
// total_page: 0
// }
// }
// 查询赞助者
const res = await afdian.querySponsor(1);
// {
// ec: 200,
// em: 'sponsor',
// data: {
// list: [],
// total_count: 0,
// total_page: 0
// }
// }
// 订单 Webhook 回调
const res = await afdian.webhookOrder(context);
// {
// "ec": 200,
// "em": "ok",
// "data": {
// "type": "order",
// "order": {
// "out_trade_no": "202106232138371083454010626",
// "user_id": "adf397fe8374811eaacee52540025c377",
// "plan_id": "a45353328af911eb973052540025c377",
// "month": 1,
// "total_amount": "5.00",
// "show_amount": "5.00",
// "status": 2,
// "remark": "",
// "redeem_id": "",
// "product_type": 0,
// "discount": "0.00",
// "sku_detail": [],
// "address_person": "",
// "address_phone": "",
// "address_address": ""
// }
// }
// }
Apache 2.0
捐赠 / Donate: https://afdian.net/@willin
FAQs
爱发电 SDK for Node.js and Browser
The npm package afdian receives a total of 9 weekly downloads. As such, afdian popularity was classified as not popular.
We found that afdian demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.