File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
modules/auxiliary/client/smtp Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -163,8 +163,8 @@ def send_message(data)
163
163
print_error ( "Server refused our mail" )
164
164
else
165
165
full_msg = ''
166
- full_msg << date
167
- full_msg << subject unless subject . nil?
166
+ full_msg << date unless data =~ /date: /i
167
+ full_msg << subject unless subject . nil? || data =~ /subject: /i
168
168
full_msg << data
169
169
send_status = raw_send_recv ( "#{ full_msg } \r \n .\r \n " , nsock )
170
170
end
Original file line number Diff line number Diff line change @@ -119,7 +119,6 @@ def run
119
119
datastore [ 'MAILFROM' ] = from
120
120
121
121
msg = load_file ( msg_file )
122
- email_sig = load_file ( sig_file )
123
122
124
123
if ( type !~ /text/i and type !~ /text\/ html/i )
125
124
print_error ( "YAML config: #{ type } " )
You can’t perform that action at this time.
0 commit comments