This method is duplicated at https://github.com/todb-r7/metasploit-framework/blob/68f883b27caacdac1cde4a6ef85ba7c607152e7e/modules/auxiliary/scanner/http/supermicro_ipmi_bof.rb#L38-L50.  Since these are separate modules, this common method should be pulled out into a `lib/msf/core` Module that both metasploit modules `include`.