Delete unnecessary begin..end block

bug/bundler_fix
jvazquez-r7 2014-11-07 20:38:36 -06:00
parent 0919f74a3d
commit 64754a5609
1 changed files with 10 additions and 12 deletions

View File

@ -157,18 +157,16 @@ class Metasploit3 < Msf::Auxiliary
username: username,
})
begin
host_login_data = {
address: host_ipaddress,
service_name: type,
workspace_id: myworkspace_id,
protocol: 'tcp',
port: 0, # can be any port, so just set to 0 else the cred api screams
core: credential_core,
status: Metasploit::Model::Login::Status::UNTRIED
}
create_credential_login(host_login_data)
end
host_login_data = {
address: host_ipaddress,
service_name: type,
workspace_id: myworkspace_id,
protocol: 'tcp',
port: 0, # can be any port, so just set to 0 else the cred api screams
core: credential_core,
status: Metasploit::Model::Login::Status::UNTRIED
}
create_credential_login(host_login_data)
end
end