-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
/
Copy pathldeep.rb
99 lines (80 loc) · 4.84 KB
/
ldeep.rb
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
class Ldeep < Formula
include Language::Python::Virtualenv
desc "LDAP enumeration utility"
homepage "https://github.com/franc-pentest/ldeep"
url "https://files.pythonhosted.org/packages/55/f7/e640a4373e7da6fac1597f3ccdd36f851de00d2a628c26aeadd3734321d1/ldeep-1.0.85.tar.gz"
sha256 "cc3e8ed7f18a619c101d121c144ef3451c2bef8e6c8734349cfd74d20213037c"
license "MIT"
head "https://github.com/franc-pentest/ldeep.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "5dd30f95480ec8544a926b75b7fe8a5eeb64c6866ba1e0814f53656989225a9c"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "a7b022400b9d2fec67573039040579e249be4b6734db2006ac30a41471221551"
sha256 cellar: :any_skip_relocation, arm64_ventura: "44dde01e539097731a7a7cfcf42d2646a4c56263e4471470e1a078dc6305f0d4"
sha256 cellar: :any_skip_relocation, sonoma: "7570a7a3161cc8de2d133982ba60be7072cef7687c3f85895b45679c446622a7"
sha256 cellar: :any_skip_relocation, ventura: "1d26774baa275d193870a97a59f8a5b1ce7b74661d6136160dfa54c4d532e4e0"
sha256 cellar: :any_skip_relocation, arm64_linux: "7456f4581545944695873f4b8301c7cee20f3ced371d67217546562eaacdb588"
sha256 cellar: :any_skip_relocation, x86_64_linux: "28db049b99cf0f175dfadded209a327a715c476c7f2e3bb85236158249ab51c6"
end
depends_on "cryptography"
depends_on "python@3.13"
uses_from_macos "krb5"
resource "asn1crypto" do
url "https://files.pythonhosted.org/packages/de/cf/d547feed25b5244fcb9392e288ff9fdc3280b10260362fc45d37a798a6ee/asn1crypto-1.5.1.tar.gz"
sha256 "13ae38502be632115abf8a24cbe5f4da52e3b5231990aff31123c805306ccb9c"
end
resource "commandparse" do
url "https://files.pythonhosted.org/packages/79/6b/6f1879101e405e2a5c7d352b340bc97d1936f8d54a8934ae32aac1828e50/commandparse-1.1.2.tar.gz"
sha256 "4bd7bdd01b52eaa32316d6149a00b4c3820a40ff2ad62476b46aaae65dbe9faa"
end
resource "decorator" do
url "https://files.pythonhosted.org/packages/43/fa/6d96a0978d19e17b68d634497769987b16c8f4cd0a7a05048bec693caa6b/decorator-5.2.1.tar.gz"
sha256 "65f266143752f734b0a7cc83c46f4618af75b8c5911b00ccb61d0ac9b6da0360"
end
resource "dnspython" do
url "https://files.pythonhosted.org/packages/b5/4a/263763cb2ba3816dd94b08ad3a33d5fdae34ecb856678773cc40a3605829/dnspython-2.7.0.tar.gz"
sha256 "ce9c432eda0dc91cf618a5cedf1a4e142651196bbcd2c80e89ed5a907e5cfaf1"
end
resource "gssapi" do
url "https://files.pythonhosted.org/packages/04/2f/fcffb772a00e658f608e657791484e3111a19a722b464e893fef35f35097/gssapi-1.9.0.tar.gz"
sha256 "f468fac8f3f5fca8f4d1ca19e3cd4d2e10bd91074e7285464b22715d13548afe"
end
resource "ldap3-bleeding-edge" do
url "https://files.pythonhosted.org/packages/b6/72/1f50f58d90ebc3900159db6b313f600b08460300543dab20f4087aa81eee/ldap3_bleeding_edge-2.10.1.1337.tar.gz"
sha256 "8f887372ac0e38da25e98a98f4b773f58a618cf99a705a15caa5273075b56999"
end
resource "oscrypto" do
url "https://files.pythonhosted.org/packages/06/81/a7654e654a4b30eda06ef9ad8c1b45d1534bfd10b5c045d0c0f6b16fecd2/oscrypto-1.3.0.tar.gz"
sha256 "6f5fef59cb5b3708321db7cca56aed8ad7e662853351e7991fcf60ec606d47a4"
end
resource "pyasn1" do
url "https://files.pythonhosted.org/packages/ba/e9/01f1a64245b89f039897cb0130016d79f77d52669aae6ee7b159a6c4c018/pyasn1-0.6.1.tar.gz"
sha256 "6f580d2bdd84365380830acf45550f2511469f673cb4a5ae3857a3170128b034"
end
resource "pycryptodome" do
url "https://files.pythonhosted.org/packages/44/e6/099310419df5ada522ff34ffc2f1a48a11b37fc6a76f51a6854c182dbd3e/pycryptodome-3.22.0.tar.gz"
sha256 "fd7ab568b3ad7b77c908d7c3f7e167ec5a8f035c64ff74f10d47a4edd043d723"
end
resource "pycryptodomex" do
url "https://files.pythonhosted.org/packages/ba/d5/861a7daada160fcf6b0393fb741eeb0d0910b039ad7f0cd56c39afdd4a20/pycryptodomex-3.22.0.tar.gz"
sha256 "a1da61bacc22f93a91cbe690e3eb2022a03ab4123690ab16c46abb693a9df63d"
end
resource "six" do
url "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz"
sha256 "ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81"
end
resource "termcolor" do
url "https://files.pythonhosted.org/packages/37/72/88311445fd44c455c7d553e61f95412cf89054308a1aa2434ab835075fc5/termcolor-2.5.0.tar.gz"
sha256 "998d8d27da6d48442e8e1f016119076b690d962507531df4890fcd2db2ef8a6f"
end
resource "tqdm" do
url "https://files.pythonhosted.org/packages/a8/4b/29b4ef32e036bb34e4ab51796dd745cdba7ed47ad142a9f4a1eb8e0c744d/tqdm-4.67.1.tar.gz"
sha256 "f8aef9c52c08c13a65f30ea34f4e5aac3fd1a34959879d7e59e63027286627f2"
end
def install
virtualenv_install_with_resources
end
test do
output = shell_output("#{bin}/ldeep ldap -d brew.ad -s ldap://127.0.0.1:389 enum_users test 2>&1", 1)
assert_match "[!] Unable to open connection with ldap://127.0.0.1:389", output
end
end