cuckoosandbox / cuckoo

Cuckoo Sandbox is an automated dynamic malware analysis system
http://www.cuckoosandbox.org
Other
5.55k stars 1.71k forks source link

Send a dict as a options #2693

Open ferdinan4 opened 5 years ago

ferdinan4 commented 5 years ago

Thanks for creating an issue! But first: did you read our community guidelines? https://cuckoo.sh/docs/introduction/community.html

My issue is: I can't send a dict parameter as a option in the submit
My Cuckoo version and operating system are: latest (2.0.6)
This can be reproduced by: cuckoo submit --package exe irc_upx.exe --machine W7x32_cuckoo -o processSimulator=1,processConfigure={'A':'A','B':'B'}
The log, error, files etc can be found at:

When I send that arguments, cuckoo sandbox give to me the next result: [cuckoo.core.scheduler] INFO: Starting analysis of FILE "irc_upx.exe" (task #154, options "processConfigure=A:A,processSimulator=1")

Some idea how can solve this problem...

I get it change (,) by (#) and making a replace in my code, but I'm looking for a better solution.

Thanks in advance!

Fernando

Evert0x commented 4 years ago

Hi Fernando, thank you for your issue and sorry for the late reply.

I will put this bug on our todo list, as there is currently no friendly way to give a json string directly. However, you could put the json in a (temporary) file and give that file as a reference in your processConfigure option.

Let me know if that suits your workflow