Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / m / metasploit.rb
blobe205d2b570adc139126fb69dd014210cf0ed83fb
1 cask "metasploit" do
2   version "6.4.39,20241201112913"
3   sha256 "1c720aca37bc7686aa77068accf18600f3a56c49e5671239b1841abab7661ab5"
5   url "https://osx.metasploit.com/metasploit-framework-#{version.csv.first}-#{version.csv.second}-1rapid7-1.x86_64.pkg"
6   name "Metasploit Framework"
7   desc "Penetration testing framework"
8   homepage "https://www.metasploit.com/"
10   livecheck do
11     url "https://osx.metasploit.com/LATEST"
12     regex(/metasploit[._-]framework[._-]v?(\d+(?:\.\d+)+)[._-](\d+(?:\.git\.\d+\.\h+)?).*\.pkg/i)
13     strategy :page_match do |page, regex|
14       match = page.match(regex)
15       next if match.blank?
17       "#{match[1]},#{match[2]}"
18     end
19   end
21   depends_on formula: "nmap"
23   pkg "metasploit-framework-#{version.csv.first}-#{version.csv.second}-1rapid7-1.x86_64.pkg"
24   binary "/opt/metasploit-framework/bin/msfbinscan"
25   binary "/opt/metasploit-framework/bin/msfconsole"
26   binary "/opt/metasploit-framework/bin/msfd"
27   binary "/opt/metasploit-framework/bin/msfdb"
28   binary "/opt/metasploit-framework/bin/msfelfscan"
29   binary "/opt/metasploit-framework/bin/msfmachscan"
30   binary "/opt/metasploit-framework/bin/msfpescan"
31   binary "/opt/metasploit-framework/bin/msfrop"
32   binary "/opt/metasploit-framework/bin/msfrpc"
33   binary "/opt/metasploit-framework/bin/msfrpcd"
34   binary "/opt/metasploit-framework/bin/msfvenom"
36   uninstall script: {
37               executable: "/opt/metasploit-framework/bin/msfremove",
38               input:      ["y"],
39               sudo:       true,
40             },
41             rmdir:  "/opt/metasploit-framework"
43   zap trash: "~/.msf4"
45   caveats do
46     requires_rosetta
47   end
48 end