Merge pull request #115 from rapid7/bug/MSP-10730/finish-login-status-move

Specs passing, no hits on Metasploit::Credential::Login::Status across all projects aside from coverage docs (3).

MSP-10730 #land
bug/bundler_fix
Samuel Huckins 2014-07-17 10:55:46 -05:00
commit fd2a12da43
38 changed files with 46 additions and 46 deletions

View File

@ -3484,7 +3484,7 @@ class DBManager
login_data = {
core: credential_core,
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
login_data.merge!(service_data)

View File

@ -377,7 +377,7 @@ module Msf
port: port,
protocol: proto,
service_name: sname,
status: Metasploit::Credential::Login::Status::UNTRIED)
status: Metasploit::Model::Login::Status::UNTRIED)
end
end
end

View File

@ -87,7 +87,7 @@ class Metasploit3 < Msf::Auxiliary
login_data = {
core: credential_core,
last_attempted_at: DateTime.now,
status: Metasploit::Credential::Login::Status::SUCCESSFUL
status: Metasploit::Model::Login::Status::SUCCESSFUL
}
login_data.merge!(service_data)

View File

@ -87,7 +87,7 @@ class Metasploit3 < Msf::Auxiliary
login_data = {
core: credential_core,
last_attempted_at: DateTime.now,
status: Metasploit::Credential::Login::Status::SUCCESSFUL
status: Metasploit::Model::Login::Status::SUCCESSFUL
}
login_data.merge!(service_data)

View File

@ -100,7 +100,7 @@ class Metasploit3 < Msf::Auxiliary
access_level: test_ftp_access(result.credential.public, scanner),
core: credential_core,
last_attempted_at: DateTime.now,
status: Metasploit::Credential::Login::Status::SUCCESSFUL
status: Metasploit::Model::Login::Status::SUCCESSFUL
}
login_data.merge!(service_data)

View File

@ -136,7 +136,7 @@ class Metasploit3 < Msf::Auxiliary
login_data = {
core: credential_core,
last_attempted_at: DateTime.now,
status: Metasploit::Credential::Login::Status::SUCCESSFUL
status: Metasploit::Model::Login::Status::SUCCESSFUL
}
login_data.merge!(service_data)

View File

@ -62,7 +62,7 @@ class Metasploit3 < Msf::Auxiliary
login_data = {
core: credential_core,
last_attempted_at: DateTime.now,
status: Metasploit::Credential::Login::Status::SUCCESSFUL
status: Metasploit::Model::Login::Status::SUCCESSFUL
}
login_data.merge!(service_data)
@ -143,7 +143,7 @@ class Metasploit3 < Msf::Auxiliary
login_data = {
core: credential_core,
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
login_data.merge!(service_data)

View File

@ -82,7 +82,7 @@ class Metasploit3 < Msf::Auxiliary
login_data = {
core: credential_core,
last_attempted_at: DateTime.now,
status: Metasploit::Credential::Login::Status::SUCCESSFUL
status: Metasploit::Model::Login::Status::SUCCESSFUL
}
login_data.merge!(service_data)

View File

@ -53,7 +53,7 @@ class Metasploit3 < Msf::Auxiliary
login_data = {
core: credential_core,
last_attempted_at: DateTime.now,
status: Metasploit::Credential::Login::Status::SUCCESSFUL
status: Metasploit::Model::Login::Status::SUCCESSFUL
}
login_data.merge!(service_data)
@ -91,7 +91,7 @@ class Metasploit3 < Msf::Auxiliary
credential_core = create_credential(credential_data)
login_data = {
core: credential_core,
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
login_data.merge!(service_data)
create_credential_login(login_data)

View File

@ -80,7 +80,7 @@ class Metasploit3 < Msf::Auxiliary
login_data = {
core: credential_core,
last_attempted_at: DateTime.now,
status: Metasploit::Credential::Login::Status::SUCCESSFUL
status: Metasploit::Model::Login::Status::SUCCESSFUL
}
login_data.merge!(service_data)

View File

@ -126,7 +126,7 @@ class Metasploit3 < Msf::Auxiliary
login_data = {
core: credential_core,
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
create_credential_login(login_data.merge(service_data))

View File

@ -66,7 +66,7 @@ class Metasploit3 < Msf::Auxiliary
login_data = {
core: credential_core,
last_attempted_at: DateTime.now,
status: Metasploit::Credential::Login::Status::SUCCESSFUL
status: Metasploit::Model::Login::Status::SUCCESSFUL
}
login_data.merge!(service_data)
create_credential_login(login_data)
@ -84,7 +84,7 @@ class Metasploit3 < Msf::Auxiliary
login_data = {
core: credential_core,
last_attempted_at: DateTime.now,
status: Metasploit::Credential::Login::Status::SUCCESSFUL
status: Metasploit::Model::Login::Status::SUCCESSFUL
}
login_data.merge!(service_data)
# We know the credentials worked and have admin access because we got the hashes
@ -130,7 +130,7 @@ class Metasploit3 < Msf::Auxiliary
credential_core = create_credential(credential_data)
login_data = {
core: credential_core,
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
login_data.merge!(service_data)
create_credential_login(login_data)

View File

@ -95,7 +95,7 @@ class Metasploit3 < Msf::Auxiliary
login_data = {
core: credential_core,
last_attempted_at: DateTime.now,
status: Metasploit::Credential::Login::Status::SUCCESSFUL
status: Metasploit::Model::Login::Status::SUCCESSFUL
}
login_data.merge!(service_data)

View File

@ -92,7 +92,7 @@ class Metasploit3 < Msf::Auxiliary
login_data = {
core: credential_core,
last_attempted_at: DateTime.now,
status: Metasploit::Credential::Login::Status::SUCCESSFUL
status: Metasploit::Model::Login::Status::SUCCESSFUL
}
login_data.merge!(service_data)

View File

@ -100,7 +100,7 @@ class Metasploit3 < Msf::Auxiliary
login_data = {
core: credential_core,
last_attempted_at: DateTime.now,
status: Metasploit::Credential::Login::Status::SUCCESSFUL
status: Metasploit::Model::Login::Status::SUCCESSFUL
}
login_data.merge!(service_data)

View File

@ -84,7 +84,7 @@ class Metasploit3 < Msf::Auxiliary
access_level: 'Admin',
core: credential_core,
last_attempted_at: DateTime.now,
status: Metasploit::Credential::Login::Status::SUCCESSFUL
status: Metasploit::Model::Login::Status::SUCCESSFUL
}.merge(service_data)
create_credential_login(login_data)

View File

@ -673,7 +673,7 @@ class Metasploit3 < Msf::Exploit::Remote
login_data = {
core: credential_core,
access_level: "Admin",
status: Metasploit::Credential::Login::Status::SUCCESSFUL,
status: Metasploit::Model::Login::Status::SUCCESSFUL,
last_attempted_at: DateTime.now
}

View File

@ -324,7 +324,7 @@ class Metasploit3 < Msf::Exploit::Remote
access_level: 'Admin',
core: credential_core,
last_attempted_at: DateTime.now,
status: Metasploit::Credential::Login::Status::SUCCESSFUL
status: Metasploit::Model::Login::Status::SUCCESSFUL
}
login_data.merge!(service_data)
create_credential_login(login_data)

View File

@ -432,7 +432,7 @@ class Metasploit3 < Msf::Exploit::Remote
access_level: 'Admin',
core: credential_core,
last_attempted_at: DateTime.now,
status: Metasploit::Credential::Login::Status::SUCCESSFUL
status: Metasploit::Model::Login::Status::SUCCESSFUL
}
login_data.merge!(service_data)
create_credential_login(login_data)

View File

@ -146,7 +146,7 @@ class Metasploit3 < Msf::Exploit::Remote
access_level: 'Admin',
core: credential_core,
last_attempted_at: DateTime.now,
status: Metasploit::Credential::Login::Status::SUCCESSFUL
status: Metasploit::Model::Login::Status::SUCCESSFUL
}
login_data.merge!(service_data)

View File

@ -134,7 +134,7 @@ class Metasploit3 < Msf::Post
service_name: "postgres",
core: credential_core,
access_level: "User",
status: Metasploit::Credential::Login::Status::UNTRIED,
status: Metasploit::Model::Login::Status::UNTRIED,
workspace_id: myworkspace_id
}
create_credential_login(login_data)

View File

@ -215,7 +215,7 @@ class Metasploit3 < Msf::Post
login_data = {
core: credential_core,
access_level: "User",
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
create_credential_login(login_data.merge(service_data))

View File

@ -75,7 +75,7 @@ class Metasploit3 < Msf::Post
# Assemble the options hash for creating the Metasploit::Credential::Login object
login_data ={
core: credential_core,
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
# Merge in the service data and create our Login

View File

@ -156,7 +156,7 @@ class Metasploit3 < Msf::Post
login_data = {
core: credential_core,
access_level: "User",
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
create_credential_login(login_data.merge(service_data))

View File

@ -146,7 +146,7 @@ class Metasploit3 < Msf::Post
login_data = {
core: credential_core,
access_level: "User",
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
create_credential_login(login_data.merge(service_data))

View File

@ -167,7 +167,7 @@ class Metasploit3 < Msf::Post
# Assemble the options hash for creating the Metasploit::Credential::Login object
login_data ={
core: credential_core,
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
# Merge in the service data and create our Login
@ -227,7 +227,7 @@ class Metasploit3 < Msf::Post
# Assemble the options hash for creating the Metasploit::Credential::Login object
login_data ={
core: credential_core,
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
# Merge in the service data and create our Login

View File

@ -106,7 +106,7 @@ class Metasploit3 < Msf::Post
login_data = {
core: credential_core,
access_level: "User",
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
create_credential_login(login_data.merge(service_data))

View File

@ -89,7 +89,7 @@ class Metasploit3 < Msf::Post
login_data = {
core: credential_core,
access_level: "User",
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
create_credential_login(login_data.merge(service_data))

View File

@ -94,7 +94,7 @@ class Metasploit3 < Msf::Post
login_data = {
core: credential_core,
access_level: "User",
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
create_credential_login(login_data.merge(service_data))

View File

@ -335,7 +335,7 @@ class Metasploit3 < Msf::Post
login_data = {
core: credential_core,
access_level: "User",
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
create_credential_login(login_data.merge(service_data))

View File

@ -117,7 +117,7 @@ class Metasploit3 < Msf::Post
# Assemble the options hash for creating the Metasploit::Credential::Login object
login_data ={
core: credential_core,
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
# Merge in the service data and create our Login

View File

@ -324,7 +324,7 @@ class Metasploit3 < Msf::Post
login_data = {
core: credential_core,
access_level: "User",
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
create_credential_login(login_data.merge(service_data))
@ -353,7 +353,7 @@ class Metasploit3 < Msf::Post
login_data = {
core: credential_core,
access_level: "User",
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
create_credential_login(login_data.merge(service_data))

View File

@ -131,7 +131,7 @@ class Metasploit3 < Msf::Post
credential_core = create_credential(credential_data)
login_data ={
core: credential_core,
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
login_data.merge!(service_data)

View File

@ -252,7 +252,7 @@ class Metasploit3 < Msf::Post
login_data ={
access_level: 'interactive',
core: credential_core,
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
# Merge in the service data and create our Login
@ -290,7 +290,7 @@ class Metasploit3 < Msf::Post
login_data ={
access_level: 'view_only',
core: credential_core,
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
# Merge in the service data and create our Login

View File

@ -228,7 +228,7 @@ class Metasploit3 < Msf::Post
login_data = {
core: credential_core,
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}.merge(service_data)
create_credential_login(login_data)

View File

@ -88,7 +88,7 @@ class Metasploit3 < Msf::Post
login_data = {
core: credential_core,
access_level: "User",
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
create_credential_login(login_data.merge(service_data))

View File

@ -100,7 +100,7 @@ class Metasploit3 < Msf::Post
# Assemble the options hash for creating the Metasploit::Credential::Login object
login_data ={
core: credential_core,
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
# Merge in the service data and create our Login

View File

@ -273,7 +273,7 @@ class Metasploit3 < Msf::Post
# Assemble the options hash for creating the Metasploit::Credential::Login object
login_data ={
core: credential_core,
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
# Merge in the service data and create our Login
@ -355,7 +355,7 @@ class Metasploit3 < Msf::Post
# Assemble the options hash for creating the Metasploit::Credential::Login object
login_data ={
core: credential_core,
status: Metasploit::Credential::Login::Status::UNTRIED
status: Metasploit::Model::Login::Status::UNTRIED
}
# Merge in the service data and create our Login