<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -19,6 +19,8 @@ EMAIL_FROM    = 'ADD_YOUR_RETURN_EMAIL_HERE' ####### ADD YOUR ACTUALL EMAIL ADDR
 EMAIL_SUBJECT = 'Security Alert - Your Server May Have Been Hacked!'
 # Leave empty to not send a mail to a CC address
 CC = ''
+# Same as for the CC address, you probably only need one of these
+BCC = ''
 
 #LOG_FILE = SSHD's log file ###### UPDATE THIS TO YOUR ACTUAL SSHD LOG FILE LOCATION #####
 LOG_FILE = '/var/log/sshd/*'  
@@ -56,9 +58,11 @@ end
 
 def get_email_message(to_address, offender, evidence)
   to_cc = CC.length &gt; 0 ? &quot;\nCC: #{CC}&quot; : ''
+  to_bcc = BCC.length &gt; 0 ? &quot;\nBCC: #{BCC}&quot; : ''
+
   email_message = &lt;&lt;EOF
 From: #{EMAIL_FROM}
-To: #{to_address}#{to_cc}
+To: #{to_address}#{to_cc}#{to_bcc}
 Subject: #{EMAIL_SUBJECT}
 Date: #{time2str(Time.now)}
 
@@ -139,8 +143,9 @@ raise &quot;No evidence found for #{host}. Aborting&quot; unless evidence &amp;&amp; (evidence.len
 sent = eval(&quot;`#{CAT_BIN} #{EMAIL_LOG_FILE} | #{GREP_BIN} #{host}`&quot;).strip
 raise &quot;Host #{host} has already been reported. Not reporting again.&quot; if sent &amp;&amp; sent.length &gt; 0
 
-#are we CCing ourselves?
+#are we CC/BCCing ourselves?
 contacts &lt;&lt; CC if CC.length &gt; 0
+contacts &lt;&lt; BCC if BCC.length &gt; 0
 
 #by the time we get here we have evidence against a newly reported host
 Net::SMTP.start(SMTP_SERVER, SMTP_PORT) do |smtp|</diff>
      <filename>notify_isp.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7602dcd96e252fd8e95f0c5a8a3d0e9aaa7226ad</id>
    </parent>
    <parent>
      <id>c926c87f8284f9fb5c366203d43cc412c7744f05</id>
    </parent>
  </parents>
  <author>
    <name>Nazar Aziz</name>
    <email>nazar@panthersoftware.com</email>
  </author>
  <url>http://github.com/nazar/report-hack-isp/commit/a07eaa2760ff11bed03f23c85f0999b131b52a09</url>
  <id>a07eaa2760ff11bed03f23c85f0999b131b52a09</id>
  <committed-date>2008-07-25T10:18:01-07:00</committed-date>
  <authored-date>2008-07-25T10:18:01-07:00</authored-date>
  <message>Merge remote branch 'nik/mail_to_bcc'</message>
  <tree>aedc313f9c81f3659656595d7ab93a0d458ca12e</tree>
  <committer>
    <name>Nazar Aziz</name>
    <email>nazar@panthersoftware.com</email>
  </committer>
</commit>
