Metasploit mailing list archives

Re: Code No-Nos


From: HD Moore <hdm () metasploit com>
Date: Tue, 06 Jul 2010 08:11:33 -0500

On 7/6/2010 7:08 AM, alfonso caponi wrote:
Theoretically should I avoid using functions like printf, sprintf, etc.?
Exist an alternative function for formatting the output in metasploit?

You can still use sprintf as a formatter, just not for display:

print_status(sprintf("Hello 0x%.8x", 0x12345678))

-HD


_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework


Current thread: