<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello,<br>
<br>
I am a new user to Panda, and I am reproducing the SSL/TLS key extraction experiment by following this tutorial:<br>
<a href="https://github.com/moyix/panda/blob/master/docs/panda_ssltut.md" target="_blank">https://github.com/moyix/panda/blob/master/docs/panda_ssltut.md</a><br>
<br>
I'm using Ubuntu 14.10 as the guest OS in QEMU. In the key searching phase, I got an assertion failure in kvm.c (see below). My recording was successfully made with KVM turned on (otherwise it was unacceptably slow).<br>
<br>
Thanks for help,<br>
Feng<br>
<br>
<br>
<br>
<br>
root@fengqian-MacBookPro:/home/fengqian/qemu# cat ./replay.sh<br>
#!/bin/bash<br>
<br>
echo &quot;begin_replay ssltut&quot; | ./qemu -m 2048 -hda ubuntu.img -net user -net nic,model=e1000 -monitor stdio -vnc :0 -panda-plugin /home/fengqian/panda-master/qemu/x86_64-softmmu/panda_plugins/panda_callstack_instr.so -panda-plugin /home/fengqian/panda-master/qemu/x86_64-softmmu/panda_plugins/panda_keyfind.so
 -enable-kvm<br>
<br>
root@fengqian-MacBookPro:/home/fengqian/qemu# ./replay.sh<br>
adding /home/fengqian/panda-master/qemu/x86_64-softmmu/panda_plugins/panda_callstack_instr.so to panda_plugin_files 0<br>
adding /home/fengqian/panda-master/qemu/x86_64-softmmu/panda_plugins/panda_keyfind.so to panda_plugin_files 1<br>
loading /home/fengqian/panda-master/qemu/x86_64-softmmu/panda_plugins/panda_callstack_instr.so<br>
Initializing plugin callstack_instr<br>
Success<br>
loading /home/fengqian/panda-master/qemu/x86_64-softmmu/panda_plugins/panda_keyfind.so<br>
Initializing plugin keyfind<br>
Couldn't open keyfind_candidates.txt; no key tap candidates defined.<br>
We will proceed, but it may be SLOW.<br>
Unknown key: Ciphersuite<br>
Unknown key: Session-ID<br>
Success<br>
QEMU 1.0,1 monitor - type 'help' for more information<br>
(qemu) begin_replay ssltut<br>
(qemu) loading snapshot<br>
qemu: /home/fengqian/panda-master/qemu/target-i386/kvm.c:1421: kvm_arch_put_registers: Assertion `cpu_is_stopped(env) || qemu_cpu_is_self(env)' failed.<br>
./replay.sh: line 3:&nbsp; 6326 Done&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;begin_replay ssltut&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6327 Aborted&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (core dumped) | ./qemu -m 2048 -hda ubuntu.img -net user -net nic,model=e1000 -monitor stdio -vnc :0 -panda-plugin /home/fengqian/panda-master/qemu/x86_64-softmmu/panda_plugins/panda_callstack_instr.so -panda-plugin /home/fengqian/panda-master/qemu/x86_64-softmmu/panda_plugins/panda_keyfind.so
 -enable-kvm<br>
<br>
<br>
</div>
</body>
</html>