Skip to content

0x676e67/qrcode-token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Release

qrcode-token

基于阿里云盘抓包接口编写的一个从命令行QR Code扫码获取阿里云盘refresh_token的工具,使用移动客户端APP QRCode扫码登录,获取的refresh_token,支持alist直链下载。


使用

  • 自行编译安装(依赖cgo,确保存在gcc环境)
# 拉取源码
git clone https://github.com/gngpp/qrcode-token.git && cd qrcode-token
# 拉取依赖
go mod tidy
# 编译
go build -ldflags="-s -w" -o qrcode-token main.go
# 执行
./qrcode-token

openwrt环境下需要安装gcc(固件一般不会自带)

opkg update && opkg install gcc
ar -rc /usr/lib/libpthread.a
  • 下载Release包
wget https://github.com/gngpp/qrcode-token/releases/download/v1.3/linux_amd64_qrcode-token.tar.gz
tar zxvf ./linux_amd64_qrcode-token.tar.gz
# 放在Linux bin目录可以直接执行了
mv ./qrcode-token /usr/bin

# macOS
mv ./qrcode-token /usr/local/bin

示例