lib/rex/mime/message.rb in rex-mime-0.1.6 vs lib/rex/mime/message.rb in rex-mime-0.1.7
- old
+ new
@@ -13,11 +13,11 @@
attr_accessor :header, :parts, :bound, :content
def initialize(data=nil)
self.header = Rex::MIME::Header.new
- self.parts = []
- self.bound = "_Part_#{rand(1024)}_#{rand(0xffffffff)}_#{rand(0xffffffff)}"
+ self.parts = []
+ self.bound = "---------------------------#{Rex::Text::rand_text_numeric(30)}"
self.content = ''
if data
head,body = data.split(/\r?\n\r?\n/, 2)
self.header.parse(head)