-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove cache files, proxy web views with filtering
- Loading branch information
1 parent
68f4d16
commit 67ca654
Showing
200 changed files
with
530 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
sshd_honey_web | ||
gin-bin | ||
tmp | ||
log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Place all the behaviors and hooks related to the matching controller here. | ||
# All this logic will automatically be available in application.js. | ||
# You can use CoffeeScript in this file: http://coffeescript.org/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Place all the styles related to the HttpRequest controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class HttpRequestsController < ApplicationController | ||
def index | ||
@requests = HttpRequest.order(id: :desc) | ||
@requests = @requests.page(params[:page]) | ||
end | ||
|
||
def show | ||
@request = HttpRequest.find(params[:id]) | ||
@login = @request.try(:login) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
module HttpRequestHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
table.table.table-striped.table-condensed | ||
thead | ||
th | ||
th Username | ||
th IP | ||
th URL | ||
th Method | ||
th Country | ||
th Date | ||
tbody | ||
- requests.each do |request| | ||
tr | ||
td = link_to 'View', request | ||
td = link_to request.try(:login).try(:username), logins_path(username: request.try(:login).try(:username)) | ||
td = request.try(:login).try(:remote_addr) | ||
td = request.url | ||
td = request.method | ||
td = request.try(:login).try(:country_name) | ||
td = request.created_at.strftime("%Y/%m/%d %H:%M") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
h2 Proxy Requests | ||
center | ||
= paginate @requests, theme: 'twitter-bootstrap-3', pagination_class: "pagination-small pagination-centered" | ||
= render 'list', requests: @requests | ||
center | ||
= paginate @requests, theme: 'twitter-bootstrap-3', pagination_class: "pagination-small pagination-centered" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
h2 Proxy Request Viewer | ||
.row | ||
.col-lg-4 | ||
h4 Session Details | ||
table.table.table-striped.table-condensed | ||
tr | ||
td Username | ||
td = @login.try(:username) | ||
tr | ||
td Password | ||
td = @login.try(:password) | ||
tr | ||
td IP | ||
td = @login.try(:remote_addr) | ||
tr | ||
td Country | ||
td = @login.try(:country_name) | ||
tr | ||
td Client Version | ||
td = @login.try(:client_version) | ||
|
||
.col-lg-8 | ||
h4 Request Details | ||
.row | ||
.col-lg-6 | ||
h5 Headers | ||
table.table.table-striped.table-condensed | ||
- @request.headers.each do |header| | ||
- x = header.split(":").map(&:strip) | ||
tr | ||
td = x[0] | ||
td = x[1] | ||
.col-lg-6 | ||
h5 Form Data | ||
table.table.table-striped.table-condensed | ||
- formdata = HttpRequest.last.formdata | ||
- formdata.each do |fd| | ||
tr | ||
td | ||
pre = fd | ||
|
||
.row | ||
.col-lg-12 | ||
h4 Proxied Response | ||
pre = @request.filtered_response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
li | ||
= link_to 'Logins', logins_path | ||
li | ||
= link_to 'Proxy Requests', http_requests_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
require 'test_helper' | ||
|
||
class HttpRequestControllerTest < ActionController::TestCase | ||
test "should get index" do | ||
get :index | ||
assert_response :success | ||
end | ||
|
||
test "should get show" do | ||
get :show | ||
assert_response :success | ||
end | ||
|
||
end |
4 changes: 0 additions & 4 deletions
4
tmp/cache/assets/sprockets/v3.0/-P/-PcR_CdNSQXHNGl76muE1XyoE3xGMsx4K7K-bq8kl3Y.cache
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.