hatching / vmcloak

Automated Virtual Machine Generation and Cloaking for Cuckoo Sandbox.
479 stars 118 forks source link

Cannot open '.genisoimagerc'. during VM creation #192

Closed xxdesmus closed 2 years ago

xxdesmus commented 2 years ago

Hi there, I'm trying to follow https://hatching.io/blog/cuckoo-sandbox-setup/ and when I reach this step:

vmcloak init --verbose --win7x64 win7x64base --cpus 2 --ramsize 2048

I'm receiving the following error:

(cuckoo) cuckoo@sfo3-01:/root$ vmcloak init --verbose --win7x64 win7x64base --cpus 2 --ramsize 2048
/home/cuckoo/cuckoo/local/lib/python2.7/site-packages/OpenSSL/crypto.py:14: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
  from cryptography import utils, x509
ERROR:vmcloak.abstract:Error creating ISO file (err=0):  /usr/bin/genisoimage: Permission denied. Cannot open '.genisoimagerc'.
/usr/bin/genisoimage: Permission denied. Cannot open '.mkisofsrc'.
Warning: creating filesystem that does not conform to ISO-9660.

Win7 ISO is mounted:

/dev/loop0      3.1G  3.1G     0 100% /mnt/win7

OS: Ubuntu 18.04

Followed all the steps up to this point without issue.

xxdesmus commented 2 years ago

looks like this is solved if you switch to ~/cuckoo before running:

vmcloak init --verbose --win7x64 win7x64base --cpus 2 --ramsize 2048