mirror-web icon indicating copy to clipboard operation
mirror-web copied to clipboard

AOSP 帮助文档中 wget 下载在校外会 404

Open jiegec opened this issue 2 years ago • 1 comments

命令:

$ wget -c https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar
--2022-09-28 23:29:01--  https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar
Resolving mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)... 101.6.15.130
Connecting to mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.15.130|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2022-09-28 23:29:01 ERROR 403: Forbidden.

可能的解决方法:

  1. 允许 wget 的 UA 下载这个路径
  2. 在教程中用其他工具

问题由 @xy_thu 报告。

jiegec avatar Sep 28 '22 15:09 jiegec

wget 命令行加一个参数?例如:

wget.exe -c https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar --user-agent ="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.42" --2022-09-29 14:18:53-- https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar Resolving mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)... 101.6.15.130 Connecting to mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.15.130|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 208668569600 (194G) [application/octet-stream] Saving to: 'aosp-latest.tar'

aosp-latest.tar 0%[ ] 11.73M 2.42MB/s eta 30h 33m

szedward avatar Sep 29 '22 06:09 szedward

截止目前,依旧有大量 IP 通过 wget 与 curl 反复下载该文件。

使用其他 UA 并不奏效:攻击者可以换用某特定 UA 乃至 UA 列表,从而增加诊断难度。

ZenithalHourlyRate avatar Jan 10 '23 12:01 ZenithalHourlyRate