Skip to content

Commit

Permalink
Fix windows 7 os naming convention in examples (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coffeeri authored and lacraig2 committed Mar 9, 2022
1 parent f2c6555 commit 81f0ad8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion panda/plugins/syscalls2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ And then invoke it as:

```sh
$PANDA_PATH/x86_64-softmmu/panda-system-x86_64 -replay foo \
-os windows-32-7 -panda syscalls2 -panda filereadmon
-os windows-32-7sp1 -panda syscalls2 -panda filereadmon
```

If you'd like more examples, you can have a look at `loaded`, `filereadmon` and `file_taint`, all of which use `syscalls2`.
2 changes: 1 addition & 1 deletion panda/plugins/syscalls2/syscalls2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ bool init_plugin(void *self) {
// Don't bother if we're not on a supported target
#if defined(TARGET_I386) || defined(TARGET_ARM) || defined(TARGET_MIPS)
if(panda_os_familyno == OS_UNKNOWN){
std::cerr << PANDA_MSG "ERROR No OS profile specified. You can choose one with the -os switch, eg: '-os linux-32-debian-3.2.81-486' or '-os windows-32-7' " << std::endl;
std::cerr << PANDA_MSG "ERROR No OS profile specified. You can choose one with the -os switch, eg: '-os linux-32-debian-3.2.81-486' or '-os windows-32-7sp[01]' " << std::endl;
return false;
}
else if (panda_os_familyno == OS_LINUX) {
Expand Down
2 changes: 1 addition & 1 deletion panda/python/examples/example_win.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
if rec:
panda = Panda(qcow="win7pro_x86.qcow2",mem="4G", extra_args=["-vnc", "127.0.0.1:5900", "-monitor","telnet:127.0.0.1:55555,server,nowait"])
else:
panda = Panda(qcow="win7pro_x86.qcow2",mem="4G", extra_args=["-nographic"],os_version="windows-32-7")
panda = Panda(qcow="win7pro_x86.qcow2",mem="4G", extra_args=["-nographic"],os_version="windows-32-7sp1")

first = True

Expand Down

0 comments on commit 81f0ad8

Please sign in to comment.