[framework] Add number generator to Rex Text

Patrick Webster patrick at aushack.com
Wed Aug 29 02:31:02 CDT 2007


Dear msf team,

Can you please, please, pretty please include this in Rex::Text (or
somewhere more appropriate ;-)

 # Generate random bytes of numerical data
 def self.rand_numeric(len, bad='')
  rand_base(len, bad, *('0' .. '9').to_a)
 end

Much appreciated, I'm sure other devs will use it as well..?!

-Patrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://spool.metasploit.com/pipermail/framework/attachments/20070829/3b6555c4/attachment.htm 


More information about the framework mailing list