58 lines
1.6 KiB
Ruby
58 lines
1.6 KiB
Ruby
cask "zenmap" do
|
|
version "7.92"
|
|
sha256 "c561fb11d9c84922d9ebcf095f31ee2e314f3e6800ad66c93381ada43b6ca30c"
|
|
|
|
url "https://nmap.org/dist/nmap-#{version}.dmg"
|
|
name "Zenmap"
|
|
desc "Multi-platform graphical interface for official Nmap Security Scanner"
|
|
homepage "https://nmap.org/zenmap/"
|
|
|
|
livecheck do
|
|
url "https://nmap.org/dist/?C=M;O=D"
|
|
regex(/href=.*?nmap[._-]v?(\d+(?:\.\d+)+)\.dmg/i)
|
|
end
|
|
|
|
depends_on formula: "nmap"
|
|
|
|
pkg "nmap-#{version}.mpkg",
|
|
choices: [
|
|
{
|
|
"choiceIdentifier" => "org.insecure.nmap",
|
|
"choiceAttribute" => "selected",
|
|
"attributeSetting" => 0,
|
|
},
|
|
{
|
|
"choiceIdentifier" => "org.insecure.nmap.ncat",
|
|
"choiceAttribute" => "selected",
|
|
"attributeSetting" => 0,
|
|
},
|
|
{
|
|
"choiceIdentifier" => "org.insecure.nmap.ndiff",
|
|
"choiceAttribute" => "selected",
|
|
"attributeSetting" => 0,
|
|
},
|
|
{
|
|
"choiceIdentifier" => "org.insecure.nmap.nping",
|
|
"choiceAttribute" => "selected",
|
|
"attributeSetting" => 0,
|
|
},
|
|
{
|
|
"choiceIdentifier" => "org.insecure.nmap.nmap-update",
|
|
"choiceAttribute" => "selected",
|
|
"attributeSetting" => 0,
|
|
},
|
|
{
|
|
"choiceIdentifier" => "org.insecure.nmap.zenmap",
|
|
"choiceAttribute" => "selected",
|
|
"attributeSetting" => 1,
|
|
},
|
|
]
|
|
|
|
uninstall pkgutil: "org.insecure.nmap.zenmap"
|
|
|
|
zap trash: [
|
|
"~/Library/Saved Application State/org.insecure.Zenmap.savedState",
|
|
"~/.zenmap",
|
|
]
|
|
end
|