m-dwyer / packer-malware

50 stars 13 forks source link

Windows 7 x86 support #2

Open obilodeau opened 9 years ago

obilodeau commented 9 years ago

I'm trying to add Windows 7 32bit support and I'm facing issues. The Autounattend.xml I created seems to be buggy since the installation is not automated. The graphical installer asks me what version of Windows 7 (Standard, Pro, etc.) to install right away.

Do you know how I can troubleshoot the Autounattend.xml?

Here it is in case you want to look at it: https://gist.github.com/obilodeau/fce8b3888c6a12ac2a07

p.s.: I tried to get inspiration from these repositories to create the Windows 7 Autounattend.xml: packer-windows and veewee.

m-dwyer commented 9 years ago

I've had this before -- usually it's because the image specified in Autounattended.xml doesn't match what's available. If you grab a copy of the install.wim file from the Windows 7 ISO, you can feed it into ImageX (part of Windows Assessment & Deployment Toolkit) to obtain the XML description: https://technet.microsoft.com/en-au/library/cc749447%28v=ws.10%29.aspx

I believe imagex /info install.wim should do the trick, but I'm going purely from memory. Then update L45 in your gist https://gist.github.com/obilodeau/fce8b3888c6a12ac2a07#file-autounattend-xml-L45 to match.

When I get a chance, I'll definitely add some templates for older Windows OSes -- as it makes sense to test and analyse some malware samples against older version without increased security, so is good for learning.

obilodeau commented 8 years ago

Thanks for the advice. With AIK I found Windows System Image Manager and I was more successful at building the proper template with it.