Skip to content

Commit

Permalink
Merge pull request #379 from cjp/master
Browse files Browse the repository at this point in the history
Removed references to snorby.org.
  • Loading branch information
miketanderson committed Jul 21, 2015
2 parents 89d7cbc + 8f0e50e commit 897e987
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 52 deletions.
13 changes: 1 addition & 12 deletions README.md
@@ -1,6 +1,5 @@
# Snorby

* [snorby.org](http://www.snorby.org)
* [github.com/Snorby/snorby](http://github.com/Snorby/snorby/)
* [github.com/Snorby/snorby/issues](http://github.com/Snorby/snorby/issues)
* [github.com/Snorby/snorby/wiki](http://github.com/Snorby/snorby/wiki)
Expand All @@ -10,16 +9,6 @@

Snorby is a ruby on rails web application for network security monitoring that interfaces with current popular intrusion detection systems (Snort, Suricata and Sagan). The basic fundamental concepts behind Snorby are **simplicity**, organization and power. The project goal is to create a free, open source and highly competitive application for network monitoring for both private and enterprise use.

## Demo

URL: [http://demo.snorby.org](http://demo.snorby.org)

User: demo@snorby.org

Pass: snorby

**NOTE** For the full packet capture HTTP basic AUTH use the same credentials.

## Requirements

* Snort
Expand Down Expand Up @@ -69,7 +58,7 @@ Pass: snorby

* Default User Credentials

* E-mail: **snorby@snorby.org**
* E-mail: **snorby@example.com**
* Password: **snorby**

* NOTE - If you do not run Snorby with passenger (http://www.modrails.com) people remember to start rails in production mode.
Expand Down
2 changes: 1 addition & 1 deletion app/mailers/event_mailer.rb
Expand Up @@ -6,7 +6,7 @@ def event_information(event, emails, subject, note, user)
@emails = emails.split(',')
@note = note

@from = (Setting.email? ? Setting.find(:email) : "snorby@snorby.org")
@from = (Setting.email? ? Setting.find(:email) : "snorby@example.com")

mail(:to => @emails, :from => @from, :subject => "[Snorby Event] #{subject}")
end
Expand Down
2 changes: 1 addition & 1 deletion app/mailers/note_mailer.rb
Expand Up @@ -9,7 +9,7 @@ def new_note(note)
@emails << "#{user.name} <#{user.email}>" if user.accepts_note_notifications?(@event)
end

@from = (Setting.email? ? Setting.find(:email) : "snorby@snorby.org")
@from = (Setting.email? ? Setting.find(:email) : "snorby@example.com")

mail(:to => @emails, :from => @from, :subject => "[Snorby] New Event Note Added")
end
Expand Down
8 changes: 4 additions & 4 deletions app/mailers/report_mailer.rb
Expand Up @@ -9,7 +9,7 @@ def daily_report(email, timezone="UTC")
# end

mail(:to => email,
:from => (Setting.email? ? Setting.find(:email) : "snorby@snorby.org"),
:from => (Setting.email? ? Setting.find(:email) : "snorby@example.com"),
:subject => "Snorby Daily Report: #{report[:start_time].strftime('%A, %B %d, %Y')}")
end

Expand All @@ -22,15 +22,15 @@ def weekly_report(email, timezone="UTC")
# end

mail(:to => email,
:from => (Setting.email? ? Setting.find(:email) : "snorby@snorby.org"),
:from => (Setting.email? ? Setting.find(:email) : "snorby@example.com"),
:subject => "Snorby Weekly Report: #{report[:start_time].strftime('%A, %B %d, %Y %I:%M %p')} - #{report[:end_time].strftime('%A, %B %d, %Y %I:%M %p')}")
end

def monthly_report(email, timezone="UTC")
report = Snorby::Report.build_report('last_month', timezone)
attachments["snorby-monthly-report.pdf"] = report[:pdf]
mail(:to => email,
:from => (Setting.email? ? Setting.find(:email) : "snorby@snorby.org"),
:from => (Setting.email? ? Setting.find(:email) : "snorby@example.com"),
:subject => "Snorby Monthly Report: #{report[:start_time].strftime('%A, %B %d, %Y %I:%M %p')} - #{report[:end_time].strftime('%A, %B %d, %Y %I:%M %p')}")
end

Expand All @@ -39,7 +39,7 @@ def update_report(email, data, timezone="UTC")
total_event_count = data.map(&:event_count).sum
p @data
mail(:to => email,
:from => (Setting.email? ? Setting.find(:email) : "snorby@snorby.org"),
:from => (Setting.email? ? Setting.find(:email) : "snorby@example.com"),
:subject => "Snorby Event Report [Count: #{total_event_count}] #{@data.first.ran_at.strftime('%D %H:%M:%S %Z')} - #{(@data.first.ran_at + 30.minutes).strftime('%D %H:%M:%S %Z')}")
end

Expand Down
4 changes: 2 additions & 2 deletions app/views/events/create_email.html.erb
Expand Up @@ -18,15 +18,15 @@
<div class="clear"></div>

<p>
<%= label_tag 'Recipients:' %> <i>(separate email addresses by comma. Example: demo@snorby.org, example@example.com)</i><br />
<%= label_tag 'Recipients:' %> <i>(separate email addresses by comma. Example: demo@example.com, example@example.com)</i><br />
<br />

<div class='grid_4 alpha' style='padding-top:7px;'>
<%= select_tag 'ignore', dropdown_select_tag(User.all, :email, false, ['<option value=''>Please Select A User</option>']), :class => 'email-user-select' %><br />
</div>

<div class='grid_10' style='margin-bottom:7px;'>
<%= text_field_tag 'email[to]', nil, :class => 'input-small required', :style => 'width:475px;', :placeholder => 'demo@snorby.org, example@example.com' %><br />
<%= text_field_tag 'email[to]', nil, :class => 'input-small required', :style => 'width:475px;', :placeholder => 'demo@example.com, example@example.com' %><br />
</div>

</p>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/_footer.html.erb
@@ -1,7 +1,7 @@
<div id="footer" class='container_12'>
<div id="footer-inside" class='round'>
Snorby <%= Snorby::VERSION %> -
<%= link_to 'https://www.snorby.org', 'https://www.snorby.org' %>
<%= link_to 'https://github.com/Snorby/snorby', 'https://github.com/Snorby/snorby' %>
&copy; <%= Time.now.year %>
<a href="https://threatstack.com">Threat Stack, Inc</a> -
Created By: Dustin Willis Webber
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/_version.html.erb
@@ -1 +1 @@
<!-- Snorby - Version: <%= Snorby::VERSION %> - http://www.snorby.org -->
<!-- Snorby - Version: <%= Snorby::VERSION %> - https://github.com/Snorby/snorby -->
18 changes: 0 additions & 18 deletions app/views/layouts/application.html.erb
Expand Up @@ -86,24 +86,6 @@
<%= render :partial => 'layouts/notify' %>

<script type="text/javascript" charset="utf-8">
<% if Setting.update_notifications? %>
if (!$.cookie('snorby-ignore-update')) {
$.ajax({
url: 'https://www.snorby.org/version?current_version=<%= Snorby::VERSION%>',
dataType: "jsonp",
global: false,
crossDomain: true,
success: function(data) {
if (data && (typeof data === "object")) {
if (data.version !== "<%= Snorby::VERSION %>") {
$('#header-top').append(Snorby.templates.update_notifications(data));
};
};
}
});
};
<% end %>
<% if Setting.event_notifications? %>
monitor_events(false);
<% else %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/login.html.erb
Expand Up @@ -31,7 +31,7 @@
<div class="login-footer">
&copy; <%= Time.now.year %> <a href="https://threatstack.com">Threat Stack, Inc</a> - Created By: Dustin Willis Webber
<br /><br />
Snorby <%= Snorby::VERSION %> - <%= link_to 'https://www.snorby.org', 'https://www.snorby.org' %>
Snorby <%= Snorby::VERSION %> - <%= link_to 'https://github.com/Snorby/snorby', 'https://github.com/Snorby/snorby' %>
</div>
</div>
<%- flash.each do |type, message| -%>
Expand Down
2 changes: 1 addition & 1 deletion app/views/settings/index.html.erb
Expand Up @@ -29,7 +29,7 @@

<p>
<%= check_box_tag '[settings][update_notifications]', 0, (Setting.update_notifications ? Setting.find(:update_notifications) : nil) %> <%= label_tag 'Enable Snorby Update Notifications' %><br />
<i>(Notification reminder when a new Snorby build is release using http://snorby.org/version)</i>
<i>(DEPRECATED Notification reminder when a new Snorby build is release using http://snorby.org/version)</i>
</p>

<p class='_settings_packet_capture'>
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/new.html.erb
Expand Up @@ -20,7 +20,7 @@
<%= f.text_field :name, :placeholder => 'Full Name', :class => 'required' %></p>
<% end %>

<p><%= f.label :email %> <em>(example: snorby@snorby.org)</em><br />
<p><%= f.label :email %> <em>(example: snorby@example.com)</em><br />
<%= f.text_field :email, :placeholder => 'E-mail Address', :class => 'required email' %></p>

<% if Snorby::CONFIG[:authentication_mode] == "database" %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/registrations/edit.html.erb
Expand Up @@ -17,7 +17,7 @@
<%= f.text_field :name, :placeholder => 'Full Name', :class => 'required' %></p>
<% end %>

<p><%= f.label :email %> <em>(example: snorby@snorby.org)</em><br />
<p><%= f.label :email %> <em>(example: snorby@example.com)</em><br />
<%= f.text_field :email, :placeholder => 'E-mail Address', :class => 'required email' %></p>

<% if Snorby::CONFIG[:authentication_mode] == "database" %>
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/mail_config.example.rb
Expand Up @@ -7,7 +7,7 @@
# ActionMailer::Base.smtp_settings = {
# :address => "smtp.gmail.com",
# :port => 587,
# :domain => "snorby.org",
# :domain => "example.com",
# :user_name => "snorby",
# :password => "snorby",
# :authentication => "plain",
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/mail_config.rb
Expand Up @@ -7,7 +7,7 @@
# ActionMailer::Base.smtp_settings = {
# :address => "smtp.gmail.com",
# :port => 587,
# :domain => "snorby.org",
# :domain => "example.com",
# :user_name => "snorby",
# :password => "snorby",
# :authentication => "plain",
Expand Down
8 changes: 4 additions & 4 deletions config/snorby_config.yml.example
Expand Up @@ -9,10 +9,10 @@ production:
# in case you want to run snorby under a suburi/suburl under eg. passenger:
baseuri: ''
# baseuri: '/snorby'
domain: 'demo.snorby.org'
domain: 'demo.example.com'
wkhtmltopdf: /usr/local/bin/wkhtmltopdf
ssl: false
mailer_sender: 'snorby@snorby.org'
mailer_sender: 'snorby@example.com'
geoip_uri: "http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz"
rules:
- ""
Expand All @@ -32,7 +32,7 @@ development:
domain: localhost:3000
wkhtmltopdf: /Users/mephux/.rvm/gems/ruby-1.9.2-p0/bin/wkhtmltopdf
ssl: false
mailer_sender: 'snorby@snorby.org'
mailer_sender: 'snorby@example.com'
geoip_uri: "http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz"
rules:
- "/Users/mephux/.snort/rules"
Expand All @@ -53,6 +53,6 @@ test:
baseuri: ''
domain: localhost:3000
wkhtmltopdf: /usr/local/bin/wkhtmltopdf
mailer_sender: 'snorby@snorby.org'
mailer_sender: 'snorby@example.com'
geoip_uri: "http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz"
authentication_mode: database
4 changes: 2 additions & 2 deletions db/seeds.rb
Expand Up @@ -2,11 +2,11 @@
SnortSchema.create(:vseq => 107, :ctime => Time.now, :version => "Snorby #{Snorby::VERSION}") if SnortSchema.first.blank?

# Default user setup
User.create(:name => 'Administrator', :email => 'snorby@snorby.org', :password => 'snorby', :password_confirmation => 'snorby', :admin => true) if User.all.blank?
User.create(:name => 'Administrator', :email => 'snorby@example.com', :password => 'snorby', :password_confirmation => 'snorby', :admin => true) if User.all.blank?

# Snorby General Settings
Setting.set(:company, 'Snorby.org') unless Setting.company?
Setting.set(:email, 'snorby@snorby.org') unless Setting.email?
Setting.set(:email, 'snorby@example.com') unless Setting.email?
Setting.set(:signature_lookup, 'http://rootedyour.com/snortsid?sid=$$gid$$:$$sid$$') unless Setting.signature_lookup?
Setting.set(:daily, 1) unless Setting.daily?
Setting.set(:weekly, 1) unless Setting.weekly?
Expand Down

0 comments on commit 897e987

Please sign in to comment.