diff --git a/app/controllers/tutorials_controller.rb b/app/controllers/tutorials_controller.rb
index 08cee31..d27a0ca 100755
--- a/app/controllers/tutorials_controller.rb
+++ b/app/controllers/tutorials_controller.rb
@@ -6,6 +6,10 @@ class TutorialsController < ApplicationController
def index
end
+ def credentials
+ render :partial => "layouts/tutorial/credentials/creds"
+ end
+
def show
render "injection"
end
diff --git a/app/views/layouts/tutorial/_header.html.erb b/app/views/layouts/tutorial/_header.html.erb
index 5b96e27..457e333 100755
--- a/app/views/layouts/tutorial/_header.html.erb
+++ b/app/views/layouts/tutorial/_header.html.erb
@@ -1,6 +1,5 @@
-
<% if not current_user %>
<% end %>
+
+ -
+ <%= button_to "Tutorial Credentials", "#", {:id => "show_creds_btn", :class => "btn btn-danger", :method => "get"} %>
+
+
-
\ No newline at end of file
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/views/layouts/tutorial/credentials/_creds.html.erb b/app/views/layouts/tutorial/credentials/_creds.html.erb
new file mode 100644
index 0000000..8e42115
--- /dev/null
+++ b/app/views/layouts/tutorial/credentials/_creds.html.erb
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
Warning, this is a spoiler
+
Are you sure you want to see the credentials?
+
+
+
+
+ |
+ Email
+ |
+
+ Password
+ |
+
+
+
+
+ |
+ admin@metacorp.com
+ |
+
+ admin1234
+ |
+
+
+ |
+ jack@metacorp.com
+ |
+
+ yankeessuck
+ |
+
+
+ |
+ jim@metacorp.com
+ |
+
+ alohaowasp
+ |
+
+
+ |
+ mike@metacorp.com
+ |
+
+ motorcross1445
+ |
+
+
+ |
+ ken@metacorp.com
+ |
+
+ citrusblend
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/config/routes.rb b/config/routes.rb
index 0ff89e9..5db7baa 100755
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -34,6 +34,7 @@ get "download" => "benefit_forms#download"
resources :tutorials do
collection do
+ get "credentials"
get "injection"
get "xss"
get "broken_auth"
diff --git a/db/seeds.rb b/db/seeds.rb
index 2d5f73b..9750d82 100755
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -5,7 +5,8 @@
users = [
{
:email => "admin@metacorp.com",
- :admin => true, :password => "admin1234",
+ :admin => true,
+ :password => "admin1234",
:first_name => "Admin",
:last_name => "",
:user_id =>1