forked from sidaf/homebrew-pentest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindows-exploit-suggester.rb
More file actions
29 lines (23 loc) · 1.02 KB
/
windows-exploit-suggester.rb
File metadata and controls
29 lines (23 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require "formula"
class WindowsExploitSuggester < Formula
homepage "https://github.com/GDSSecurity/Windows-Exploit-Suggester"
url "https://github.com/GDSSecurity/Windows-Exploit-Suggester", :using => :git, :revision => '493f96a'
version "32"
resource "xlrd" do
url "https://pypi.python.org/packages/f2/5a/62f55aef47f733e5181ded0487491a2ab2aeb38a054336f1c1ac7c788821/xlrd-0.9.4.tar.gz"
sha256 "8e8d3359f39541a6ff937f4030db54864836a06e42988c452db5b6b86d29ea72"
end
def install
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib64/python2.7/site-packages"
%w[xlrd].each do |r|
resource(r).stage do
system "python", *Language::Python.setup_install_args(libexec/"vendor")
end
end
ENV.prepend_create_path "PYTHONPATH", libexec
bin.install "windows-exploit-suggester.py"
libexec.install Dir["*"]
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end
end