derp just check db active

the other way of doing this was stupid, jsut check if
the db is active
bug/bundler_fix
David Maloney 2015-01-08 11:58:56 -06:00
parent 001b6d913e
commit fd7e65d459
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
1 changed files with 8 additions and 8 deletions

View File

@ -13,33 +13,33 @@ module Auxiliary::Report
optionally_include_metasploit_credential_creation
def create_cracked_credential(opts={})
begin
if active_db?
super(opts)
rescue NoMethodError => e
else
print_error "There does not appear to be a functioning DB, Credential Data will not be saved!"
end
end
def create_credential(opts={})
begin
if active_db?
super(opts)
rescue NoMethodError => e
else
print_error "There does not appear to be a functioning DB, Credential Data will not be saved!"
end
end
def create_credential_login(opts={})
begin
if active_db?
super(opts)
rescue NoMethodError => e
else
print_error "There does not appear to be a functioning DB, Credential Data will not be saved!"
end
end
def invalidate_login(opts={})
begin
if active_db?
super(opts)
rescue NoMethodError => e
else
print_error "There does not appear to be a functioning DB, Credential Data will not be saved!"
end
end