<?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>8770c27547fc6b9ce4c51bee3e758e8f6f0aebc2</id>
    </parent>
  </parents>
  <author>
    <name>Niki Guldbrand</name>
    <email>niki@guldbrand.net</email>
  </author>
  <url>http://github.com/nazar/report-hack-isp/commit/c926c87f8284f9fb5c366203d43cc412c7744f05</url>
  <id>c926c87f8284f9fb5c366203d43cc412c7744f05</id>
  <committed-date>2008-07-25T09:10:30-07:00</committed-date>
  <authored-date>2008-07-25T09:10:30-07:00</authored-date>
  <message>What would be more natural than adding BCC support ?

notify_isp.rb: Added BCC support based on nazar's changes to my patch.</message>
  <tree>ebd354f6454a9e4ca43325249cdad39ba635aad2</tree>
  <committer>
    <name>Niki Guldbrand</name>
    <email>niki@guldbrand.net</email>
  </committer>
</commit>
