KeenSecurityLab / BinAbsInspector

BinAbsInspector: Vulnerability Scanner for Binaries
GNU General Public License v3.0
1.58k stars 231 forks source link

Dockerfile wget command error : Username/Password Authentication Failed. #32

Closed g0pher98 closed 2 years ago

g0pher98 commented 2 years ago

The following error occurred when I build Dockerfile. 😥

Error

149250K .......... .......... .......... .......... .......... 43% 97.3K 13m18s
149300K .......... .......... .......... .......... .......... 43%  192K 13m18s
149350K .......... .......... .......... .......... .......... 43%  192K 13m18s
149400K .......... .......... .......... .......... .......... 43%  187K 13m18s
149450K .......... .......... .......... .......... .......... 43%  191K 13m17s
149500K .......... .......... .......... .......... .......... 43% 94.4K 13m18s
149550K .......... .......... .......... .......... .......... 43%  201K 13m17s
149600K .......... .......... .......... .......... .......... 43%  200K 13m17s

(Download ...)

2022-05-06 01:09:44 (239 KB/s) - Connection closed at byte 153387008. Retrying.

Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed. 
The command '/bin/sh -c wget https://github.com/NationalSecurityAgency/ghidra/releases/download/${GHIDRA_RELEASE_TAG}/${GHIDRA_BUILD}.zip &&     unzip -d ghidra ${GHIDRA_BUILD}.zip &&     rm ${GHIDRA_BUILD}.zip &&     mv ghidra/ghidra_* /opt/ghidra' returned a non-zero code: 6
image

I don't know why this error persists

g0pher98 commented 2 years ago

Still, I don't know why. But i solved this problem using curl command🙂

# Modify Dockerfile
RUN curl -LO https://github.com/NationalSecurityAgency/ghidra/releases/download/${GHIDRA_RELEASE_TAG}/${GHIDRA_BUILD}.zip
AlexandrosKaragiannis commented 2 years ago

had the exact same problem on a completely different repo, this change here fixed it. thanks 👏 Note that the WGET command works fine when ran outside the Dockerfile