homebrew-cask/Casks/metasploit.rb

38 lines
1.5 KiB
Ruby

cask 'metasploit' do
version '4.16.57+20180513104301'
sha256 '0634d6882458282966362f8c963475a7d314a1c7a9f7ee3cb66ea75961c02659'
url "https://osx.metasploit.com/metasploit-framework-#{version}-1rapid7-1.pkg"
appcast 'https://osx.metasploit.com/LATEST',
checkpoint: '23a3847c883e30b2fa2e92a7e2d2d3f5ca977ca3a8b22581699fb53ecb8f9e62'
name 'Metasploit Framework'
homepage 'https://www.metasploit.com/'
gpg "#{url}.asc", key_id: '2007B954'
depends_on formula: 'nmap'
pkg "metasploit-framework-#{version.gsub('+', ' ')}-1rapid7-1.pkg"
binary '/opt/metasploit-framework/bin/metasploit-aggregator'
binary '/opt/metasploit-framework/bin/msfbinscan'
binary '/opt/metasploit-framework/bin/msfconsole'
binary '/opt/metasploit-framework/bin/msfd'
binary '/opt/metasploit-framework/bin/msfdb'
binary '/opt/metasploit-framework/bin/msfelfscan'
binary '/opt/metasploit-framework/bin/msfmachscan'
binary '/opt/metasploit-framework/bin/msfpescan'
binary '/opt/metasploit-framework/bin/msfrop'
binary '/opt/metasploit-framework/bin/msfrpc'
binary '/opt/metasploit-framework/bin/msfrpcd'
binary '/opt/metasploit-framework/bin/msfupdate'
binary '/opt/metasploit-framework/bin/msfvenom'
uninstall script: {
executable: '/opt/metasploit-framework/bin/msfremove',
input: ['y'],
sudo: true,
},
rmdir: '/opt/metasploit-framework'
zap trash: '~/.msf4'
end