aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-09-28 12:06:28 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-09-28 16:53:58 +0200
commita13111c7f3d400d2a9d0b84d0d777710b3696d29 (patch)
tree6466cf05bb3f1639cb5e24f8df898c44b9f61643
parente0e6908d3f2d23942f7f3da7e86d2415fa8a2cd1 (diff)
docs: assorted windows instructions fixes
-rw-r--r--docs/windows.md15
1 files changed, 8 insertions, 7 deletions
diff --git a/docs/windows.md b/docs/windows.md
index d09053777..37990b3b8 100644
--- a/docs/windows.md
+++ b/docs/windows.md
@@ -11,7 +11,9 @@ syz-sysgen
To build binaries:
```
make fuzzer execprog stress TARGETOS=windows
+REV=git rev-parse HEAD
cl executor\executor_windows.cc /EHsc -o bin\windows_amd64\syz-executor.exe \
+ -DGIT_REVISION=\"$REV\" \
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib \
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \
winmm.lib rpcrt4.lib Crypt32.lib imm32.lib Urlmon.lib Oleaut32.lib \
@@ -28,17 +30,16 @@ bin\windows_amd64\syz-stress.exe -executor c:\full\path\to\bin\windows_amd64\syz
Windows is supported by only `gce` VMs at the moment.
To use `gce`, create a Windows GCE VM, inside of the machine:
- - Enable serial console debugging:
+ - Enable serial console debugging (see [this](https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/boot-parameters-to-enable-debugging) for details):
```
bcdedit /debug on
-bcdedit /dbgsettings serial debugport:1 baudrate:115200
+bcdedit /dbgsettings serial debugport:1 baudrate:115200 /noumex
```
-See [this](https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/boot-parameters-to-enable-debugging) for details.
- - Disable automatic restart in sysdm.cpl -> Advanced -> Startup and Recovery
+ - Disable automatic restart in `sysdm.cpl -> Advanced -> Startup and Recovery`
- Setup sshd with key auth, [these](https://winscp.net/eng/docs/guide_windows_openssh_server) instructions worked for me.
- Save private ssh key.
+ Preferably use non-admin user. Save private ssh key.
Then shutdown the machine, stop the instance and create an image from the disk.
Then start `syz-manager` with config similar to the following one:
@@ -51,14 +52,14 @@ Then start `syz-manager` with config similar to the following one:
"workdir": "/workdir",
"syzkaller": "/syzkaller",
"sshkey": "/id_rsa",
+ "ssh_user": "you",
"cover": false,
"procs": 8,
"type": "gce",
"vm": {
"count": 10,
"machine_type": "n1-highcpu-2",
- "gce_image": "your-gce-image",
- "ssh_user": "you"
+ "gce_image": "your-gce-image"
}
}
```