When I use the instruction "taint_file" I encounter many problem. Few days ago, I realized I needed to create two disks in my guest OS, and I have done this. Now a new problem comes to me that I still can't get "first tainted data" message. The commands I have used as follows:
(qemu) load_plugin tracecap/tracecap.so
Could not find INI file: /etc/bitblaze/tracecap/main.ini
Use the command 'load_config <filename> to provide it.
Cannot determine file system type
Cannot determine file system type
Cannot determine file system type
tracecap/tracecap.so is loaded successfully!
(qemu) load_config tracecap/main.ini
general/trace_only_after_first_taint is enabled.
general/log_external_calls is disabled.
general/write_ops_at_insn_end is disabled.
general/save_state_at_trace_stop is disabled.
tracing/tracing_table_lookup is enabled.
tracing/tracing_tainted_only is disabled.
tracing/tracing_kernel is disabled.
tracing/tracing_kernel_tainted is disabled.
tracing/tracing_kernel_partial is disabled.
network/ignore_dns is disabled.
Enabled: 0x00 Proto: 0x00 Sport: 0 Dport: 0 Src: 0.0.0.0 Dst: 0.0.0.0
Loading plugin options from: /etc/bitblaze/tracecap/hook_plugin.ini
Loading plugins from: /fill/in/path/to/temu/shared/hooks/hook_plugins
(qemu) enable_emulation
Emulation is now enabled
(qemu) taint_file "0914.txt" 1 6543
Tainting disk 1 file 0914.txt
Tainted file 0914.txt
5525a:4[6543]
(qemu) tracebyname "notepad.exe" /tmp/note_1.trace
Waiting for process notepad.exe to start
(qemu) PID: 936 CR3: 0x06837000
Tracing notepad.exe
(qemu) disable_emulation
Emulation is now disabled
(qemu) trace_stop
Stop tracing process 936
Number of instructions decoded: 27027596
Number of operands decoded: 68342879
Number of instructions written to trace: 0
Number of tainted instructions written to trace: 0
Processing time: 2348.71 U: 2308.67 S: 40.0385
Generating file: /tmp/note_1.trace.functions
Thanks very much for your attention. I really need your help, thanks!
--
Good luck,
Guangcheng Liang