Skip to content

Commit

Permalink
fix lingering code plus a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mubix committed Jan 24, 2013
1 parent f5e2390 commit d9e7966
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,11 @@
require 'resque/server'
require './importer'

CRYPT = Rex::Proto::NTLM::Crypt

configure do
set :public_folder, Proc.new { File.join(root, "static") }
set :per_page, 25
end

def generate_hashes(password)

lm = CRYPT.lm_hash(password).unpack("H*")[0]
return lm
end

helpers do
Tire.configure do
elasurl = File.open("elastic.conf").first
Expand Down Expand Up @@ -164,21 +156,21 @@ def parse_pwdump(lines)
erb :uploadprocessing
end

post ""
post "/upload/hashlist" do
@error = "Feature not finished yet..."
erb :upload
end

post "/upload/shadowfile" do

@error = "Feature not finished yet..."
erb :upload
end


get "/*" do
@error = 'You h'
erb :search
@error = '404'
erb :index
end




# john ./johnfile.txt --show=LEFT --format=NT

0 comments on commit d9e7966

Please sign in to comment.