I'm having problems getting ratproxy to work with msf3. I applied the
ratproxy patch of the latest svn version of metasploit, but when trying to compile ratproxy apparently something has changed when it comes to sqlite3 interaction. The code compiles but when specifying a metasploit pre-created sqlite3 database to use (db_create
test.wmap), the file remains empty. I have tried with patched ratproxy versions 1.58.



root@bt:/pentest/exploits/framework3/ratproxy# make
cc ratproxy.c -o ratproxy -Wall -O3 -Wno-pointer-sign -D_GNU_SOURCE http.c mime
.c ssl.c -lcrypto -lssl -lsqlite3
ratproxy.c: In function 'save_trace':
ratproxy.c:631: warning: passing argument 5 of 'sqlite3_prepare' from incompatib
le pointer type
ratproxy.c:696: warning: ignoring return value of 'fwrite', declared with attrib
ute warn_unused_result
ratproxy.c:711: warning: ignoring return value of 'fwrite', declared with attrib
ute warn_unused_result
ratproxy.c: In function 'decode_flash':
ratproxy.c:740: warning: ignoring return value of 'write', declared with attribu te warn_unused_result
http.c: In function 'send_request':
http.c:1071: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
http.c: In function 'send_response':
http.c:1334: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result