Make ACPP login work

bug/bundler_fix
Jon Hart 2015-01-12 14:01:23 -08:00
parent e9557ffe58
commit ec506af8ea
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
3 changed files with 8 additions and 3 deletions

View File

@ -21,8 +21,7 @@ class Client
login.type = 20
@sock.put(login.to_s)
# TODO: the checksum never validates here
resp = Message.decode(@sock.get_once(128), false)
return resp.type == login.type && resp.status == 0
Message.decode(@sock.get_once(128), false)
end
end
end

View File

@ -90,6 +90,10 @@ module ACPP
@unknown4 = ''
end
def successful?
@status == 0
end
# Get this Message as a String
#
# @return [String] the string representation of this Message

View File

@ -38,6 +38,8 @@ class Metasploit3 < Msf::Auxiliary
Opt::RPORT(5009),
], self.class)
deregister_options(%w(USERNAME USER_FILE USER_AS_PASS))
register_autofilter_ports([5009])
end
@ -50,7 +52,7 @@ class Metasploit3 < Msf::Auxiliary
password: datastore['PASSWORD'],
user_file: datastore['USER_FILE'],
userpass_file: datastore['USERPASS_FILE'],
username: datastore['USERNAME'],
username: '<BLANK>',
user_as_pass: datastore['USER_AS_PASS']
)