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/"
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)
17 "#{match[1]},#{match[2]}"
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"
37 executable: "/opt/metasploit-framework/bin/msfremove",
41 rmdir: "/opt/metasploit-framework"