rapid7/metasploit-framework — pull request #4192 by trevrosen (2014-11-12 22:10:39+00:00)
Title: Add the ability to specify mode in Rex output file

* Because sometimes you might want to append
* Preserves original hardcoded 'wb' as default
* http://pubs.opengroup.org/onlinepubs/009695399/functions/fopen.html