-
Notifications
You must be signed in to change notification settings - Fork 1
/
win10.json
64 lines (64 loc) · 2.23 KB
/
win10.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"builders": [{
"type": "virtualbox-iso",
"iso_url": "{{user `iso_url`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"headless": false,
"communicator": "winrm",
"winrm_username": "hacker",
"winrm_password": "hacker",
"winrm_timeout": "1h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"guest_os_type": "Windows10_64",
"disk_size": 61440,
"vm_name": "pentest-win10",
"guest_additions_mode": "attach",
"floppy_files": [
"{{user `autounattend`}}",
"scripts/winrm.ps1",
"scripts/install.ps1",
"scripts/finish.ps1"
],
"vboxmanage": [
[
"modifyvm", "{{.Name}}", "--memory", "4096", "--vram", "128", "--cpus", "2"
],
[
"modifyvm", "{{.Name}}", "--natpf1", "guestwinrm,tcp,127.0.0.1,5985,,5985"
],
[
"modifyvm", "{{.Name}}", "--clipboard", "bidirectional"
],
[
"modifyvm", "{{.Name}}", "--usb", "on", "--usbehci", "on"
],
[
"storageattach", "{{.Name}}", "--storagectl", "IDE Controller", "--port", "1", "--device", "1", "--type", "dvddrive", "--medium", "emptydrive"
],
[
"sharedfolder", "add", "{{.Name}}", "--name", "pentest", "--hostpath", "c:\\pentest", "--automount"
]
]
}],
"provisioners": [{
"type": "file",
"source": "scripts/finish.ps1",
"destination": "c:\\install\\finish.ps1"
},
{
"type": "powershell",
"elevated_user": "hacker",
"elevated_password": "hacker",
"scripts": [
"scripts/vbox_guest_additions.ps1"
]
}
],
"variables": {
"iso_url": "./windows_10_20201022.iso",
"iso_checksum_type": "md5",
"iso_checksum": "01b31193f18a67e1274319382d49120b",
"autounattend": "./answer_files/10/Autounattend.xml"
}
}