Open Natruel opened 4 years ago
You have specified in the header the token?
I don't know how to specified in the header the token? i just run the cuckoo in the default setting: $ sudo service uwsgi start cuckoo-api
$ sudo service nginx start
(venv)$ cuckoo api -p 8091
can you tell hwo to specify? Thank you!
i not used nginx but only cuckoo api
curl -H "Authorization: Bearer S4MPL3" http://localhost:8090/tasks/list
In S4MPL3 you need specify the token of API "/home/cuckoo/.cuckoo/conf/cuckoo.conf"
Thank you,i will try it.
By the way, i want to know that you means that i need to replace the "S4MPL3" by the token that i specified in the cuckoo.conf? And after i start the cuckoo api, i run the: curl -H "Authorization: Bearer S4MPL3" http://localhost:8090/tasks/list
you have to replace SAMPLE, with the value of your token which is included in cuckoo.conf
Sorry,I had something to do some time ago that delayed this question. And not long ago, I retried the question. After i specified the token by run the:
curl -H "Authorization: Bearer S4MPL3" http://localhost:8090/tasks/list
But I access "http://www.localhost/8090" from a browser, it still shows:
message "Authentication in the form of an 'Authorization: Bearer
Hi, I have the same issue.
Some ideia how can solve?
Actually, i did't solve the problem. And i use the curl to submit my samples by the terminal.
gggggyw yw_gong@qq.com
------------------ 原始邮件 ------------------ 发件人: "cuckoosandbox/cuckoo" <notifications@github.com>; 发送时间: 2020年11月13日(星期五) 晚上8:18 收件人: "cuckoosandbox/cuckoo"<cuckoo@noreply.github.com>; 抄送: "吃才是快乐的"<1119470580@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [cuckoosandbox/cuckoo] { "message": "Authentication in the form of an 'Authorization: Bearer <TOKEN>' header is required" } (#3079)
Hi, I have the same issue.
Some ideia how can solve?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Thanks @Natruel,
I try using the curl curl -H 'Authorization: Bearer TOKEN from cuckoo.config' http://CUCKOOIP:8090/machines/list
And the result is:
"message": "Authentication in the form of an 'Authorization: Bearer
I have other way to check the cuckoo REST API ? Or what troubleshooting steps I can flow?
You need to run you cuckoo at the same time.Then you submit your samples by curl and obtain the result which is storaged in the /home/.../.cuckoo/storage/analyses/(Attachments have pictures to help you)
gggggyw yw_gong@qq.com
------------------ 原始邮件 ------------------ 发件人: "cuckoosandbox/cuckoo" <notifications@github.com>; 发送时间: 2020年11月13日(星期五) 晚上9:35 收件人: "cuckoosandbox/cuckoo"<cuckoo@noreply.github.com>; 抄送: "吃才是快乐的"<1119470580@qq.com>;"Mention"<mention@noreply.github.com>; 主题: Re: [cuckoosandbox/cuckoo] { "message": "Authentication in the form of an 'Authorization: Bearer <TOKEN>' header is required" } (#3079)
Thanks @Natruel,
I try using the curl curl -H 'Authorization: Bearer TOKEN from cuckoo.config' http://CUCKOOIP:8090/machines/list And the result is: "message": "Authentication in the form of an 'Authorization: Bearer ' header is required"
I have other way to check the cuckoo REST API ? Or what troubleshooting steps I can flow?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Thanks for creating an issue! But first: did you read our community guidelines? https://cuckoo.sh/docs/introduction/community.html
My issue is:
When i run the cuckoo api and accessed by browser, the browser prompt { "message": "Authentication in the form of an 'Authorization: Bearer' header is required"
}
My Cuckoo version and operating system are: cuckoo 2.0.7 ubuntu 16.04 LTS
This can be reproduced by:
The log, error, files etc can be found at: