hatching / vmcloak

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

Activation for Windows licenses #102

Open MarkusTeufelberger opened 7 years ago

MarkusTeufelberger commented 7 years ago

As far as I understand it, even with a valid key the installed Windows VM is not actually being activated, right?

Since this is offered for office, it would be nice to offer this capability for Windows too. Probably requires modifying the autounattend.xml files.

jbremer commented 7 years ago

Sounds correct yeah. If you have additional information on how to do so, let me know ;-)

MarkusTeufelberger commented 7 years ago

I found various conflicting opinions/solutions, including just adding the same key in the "specialize" pass and it will automatically activate "a few days later" or running the activation script manually as a deployment run.

MarkusTeufelberger commented 7 years ago

Since you are anyways sure that your bootstrap script runs as admin, maybe adding a call to activate Windows in there if there's an environment variable might be a solution? (https://www.howtogeek.com/245445/how-to-use-slmgr-to-change-remove-or-extend-your-windows-license/)

Alternatively maybe a dependency file that does these calls might be a solution?

sreemanshanker commented 4 years ago

i installed office 2007 and provided the key following the guide: vmcloak install win7x64cuckoo office office.version=2007 office.isopath=/path/to/office2007.iso office.serialkey=mykey

it installed fine, no error. But when running a doc through the VM, i can see from the screenshots that its stuck at activation wizard (activate over internet or phone) once the doc is loaded on Word. how to overcome this?