Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect All Traffic to Rails #224

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

Meatballs1
Copy link
Contributor

Current POC at the moment.

TODO:

  • Handle User/Password submission direct to rails
  • Consider if campaigns controller is right place to do this?
  • Migrate image reporting to campaigns?
  • Manage Payloads...
  • Are there additional stats/headers we can collect?
  • Add UserAgent whitelist/blacklist?
  • Handle ERB files?
  • Handle subdirectories?
  • Update existing templates?
  • Specs!

I would imagine this constitutes a major version change as there will be backwards incompat with previous templates and a different methodology.

@zeknox
Copy link
Member

zeknox commented Sep 2, 2015

Not that standardization is strong in the project, but I noticed tab indentation is off a bit.

@@ -1,6 +1,7 @@
class Victim < ActiveRecord::Base
belongs_to :campaign
has_many :visits, dependent: :destroy
has_many :credentials, through: :visits
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent this guy

@@ -193,7 +146,7 @@ def apache_logs
def passwords
# display all password harvested within campaign
@campaign = Campaign.find(params[:id])
@visits = @campaign.visits.where('extra LIKE ?', "%password%")
@visits = Visit.includes(:victim, :credential).joins(:victim, :credential).where(victims: { campaign_id: params[:id] })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We really should consider moving this up into the Visit model with a scope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants