Use the simpler 'version' command to get the version

bug/bundler_fix
Jon Hart 2015-01-20 08:16:22 -08:00
parent 6588f92206
commit 9d430eb1d5
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 2 additions and 2 deletions

View File

@ -80,9 +80,9 @@ class Metasploit3 < Msf::Auxiliary
end
def determine_version
sock.send("stats\r\n", 0)
sock.send("version\r\n", 0)
stats = sock.recv(4096)
if /^STAT version (?<version>[\d\.]+)/ =~ stats
if /^VERSION (?<version>[\d\.]+)/ =~ stats
version
else
nil