I have tried vUSBf with different operating systems, such as CirrOS. CirrOS is a minimal linux distribution.
Execution on external VM works with: python vusbf.py -eon 127.0.0.1 1235 panic_1.obj
I can see kernel messages in the vm console.
Without external VM it does not work: python vusbf.py -eo payload/panic_1.obj -o new.config -v1
Issue: I can see usbredir packets, but Testcase count stuck at 0.
pastebin link
In #5 there was a problem with the QEMU snapshot
how i built my vm
I've downloaded the CirrOS. It already had qcow format.
wget http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img
I've created overlay and ram.
qemu-img create -b cirros-0.4.0-x86_64-disk.img -f qcow2 overlay.qcow2qemu-img create -f qcow2 ram.qcow2 1G
I've logged in the vm and changed the verbosity of printk
echo '7' > /proc/sys/kernel/printk
I've pressed CTRL + A + C and then saved a qemu vm snapshot with
savevm replay
My new.config file contains the following:
# QEMU BINARAY
qemu_bin: /usr/local/bin/qemu-system-x86_64
# KVM SUPPORT
kvm: no
# MEMORY SIZE (MB)
memory: 1024
# RAM FILE
ram_file: PATH_TO_WORKSPACE/ram.qcow2
# OVERLAY FILE
overlay_file: PATH_TO_WORKSPACE/overlay.qcow2
# OVERLAY FOLDER
overlay_folder: PATH_TO_WORKSPACE
# USB DEVICE TYPE
device_type: nec-usb-xhci
# EXTRA QEMU PARAMETER
qemu_extra: ""
# SNAPSHOT
snapshot: replay
This issue is similar to the closed #5.
I have tried vUSBf with different operating systems, such as CirrOS. CirrOS is a minimal linux distribution.
Execution on external VM works with:
python vusbf.py -eon 127.0.0.1 1235 panic_1.obj
I can see kernel messages in the vm console.Without external VM it does not work:
python vusbf.py -eo payload/panic_1.obj -o new.config -v1
Issue: I can see usbredir packets, but Testcase count stuck at 0. pastebin linkIn #5 there was a problem with the QEMU snapshot
how i built my vm
wget http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img
qemu-img create -b cirros-0.4.0-x86_64-disk.img -f qcow2 overlay.qcow2
qemu-img create -f qcow2 ram.qcow2 1G
echo '7' > /proc/sys/kernel/printk
savevm replay
My new.config file contains the following: