
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
解决 birdv1 版本手动取cookie问题, 支持网易云音乐、百度认证。
npm install --save-dev bird-auth
| name | api | instance function |
|---|---|---|
client | client[fn] | not support |
baidu.uuap | birdAuth.baidu.uuap(options[, callback]) | retry, getCookie |
baidu.passport | birdAuth.baidu.passport(options[, callback]) | getCookie |
netease.music | birdAuth.netease.music(options[, callback]) | retry, getCookie, aesEncrypt |
| method | demo | detail |
|---|---|---|
url_get | client.url_get(url, callback) | get method(no cookie) |
get | client.get(url, callback) | get method(with cookie) |
post | client.post(options, callback) | post method(with cookie) |
get_cookies_string | client.get_cookies_string() | get all cookies |
update_cookies | client.update_cookies(cookies, true) | update new cookies |
set_cookies | client.set_cookies(cookies, true) | set new cookies |
clear_cookies | client.clear_cookies() | remove all cookies |
usage: bird -u xxx -p xxx -t netseae_music
Options:
-h, --help Show help [boolean]
-t, --type baidu_uuap, baidu_passport, netease_music [default: "baidu_uuap"]
-u, --username username [required]
-p, --password password [required]
-s, --server server(baidu_uuap need it), if you don't know this, you can logout you system and get url.
const birdAuth = require('bird-auth')
const uuap = new birdAuth.baidu.uuap({
username: 'xxx',
password: 'xxx',
type: 3, // default 1 is username and password; 3 is username and verification code.
uuapServer: 'http://xxx.baidu.com/login', // CAS auth url
service: 'http://xxx.baidu.com/' // service address, if you don't know this url, you can logout you system, and get `service` parameters
}, function(cookie) {
console.log(cookie)
});
uuap.retry({
username: 'xxx',
password: 'xxx',
uuapServer: 'http://xxx.baidu.com/login',
service: 'http://xxx.baidu.com/'
});
const birdAuth = require('bird-auth')
const passport = new birdAuth.baidu.passport({
username: 'xxx',
password: 'xxx',
service: 'https://passport.baidu.com/v2/?login' //default passport.baidu.com
}, function(cookie) {
console.log(cookie)
});
const birdAuth = require('bird-auth')
const music = new birdAuth.netease.music({
username: 'xxx', // phone number or mail
password: 'xxx'
}, function(cookie) {
console.log(cookie)
});
querystring package.client.set_cookies & client.clear_cookies method.client.update_cookies method.bird-auth command, you can use bird-auth -h to see more :)FAQs
get cookie and then you can use it with birdv1
We found that bird-auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.