Skip to content

Commit 1a03777

Browse files
Merge branch 'master' of github.com:rapid7/metasploit-framework
2 parents 8c59479 + 092b226 commit 1a03777

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/exploits/windows/oracle/tns_auth_sesskey.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def initialize(info = {})
7171

7272
register_options(
7373
[
74+
OptString.new('SID', [ true, 'The target database SID', 'ORCL']),
7475
Opt::RPORT(1521)
7576
], self.class)
7677
end
@@ -125,7 +126,7 @@ def exploit
125126
connect_data = "" +
126127
"(DESCRIPTION=" +
127128
"(CONNECT_DATA=" +
128-
"(SERVICE_NAME=orcl)" +
129+
"(SERVICE_NAME=#{datastore['SID']})" +
129130
"(CID=" +
130131
"(PROGRAM=client.exe)" +
131132
"(HOST=client_host)" +

0 commit comments

Comments
 (0)