Skip to content

Commit c9c0b11

Browse files
Merge pull request #2539 from blacklanternsecurity/fix-medusa
Fix medusa, wpscan deps installation
2 parents b611548 + 43ac113 commit c9c0b11

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

bbot/core/helpers/depsinstaller/installer.py

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ class DepsInstaller:
3232
"bash": "bash",
3333
"which": "which",
3434
"tar": "tar",
35+
"xz": [
36+
{
37+
"name": "Install xz-utils (Debian)",
38+
"package": {"name": ["xz-utils"], "state": "present"},
39+
"become": True,
40+
"when": "ansible_facts['os_family'] == 'Debian'",
41+
},
42+
{
43+
"name": "Install xz (Non-Debian)",
44+
"package": {"name": ["xz"], "state": "present"},
45+
"become": True,
46+
"when": "ansible_facts['os_family'] != 'Debian'",
47+
},
48+
],
3549
# debian why are you like this
3650
"7z": [
3751
{
@@ -53,6 +67,44 @@ class DepsInstaller:
5367
"when": "ansible_facts['distribution'] == 'Fedora'",
5468
},
5569
],
70+
# to compile just about any tool, we need the openssl dev headers
71+
"openssl": [
72+
{
73+
"name": "Install OpenSSL library and development headers (Debian/Ubuntu)",
74+
"package": {"name": ["libssl-dev", "openssl"], "state": "present"},
75+
"become": True,
76+
"when": "ansible_facts['os_family'] == 'Debian'",
77+
"ignore_errors": True,
78+
},
79+
{
80+
"name": "Install OpenSSL library and development headers (RedHat/CentOS/Fedora)",
81+
"package": {"name": ["openssl", "openssl-devel"], "state": "present"},
82+
"become": True,
83+
"when": "ansible_facts['os_family'] == 'RedHat' or ansible_facts['os_family'] == 'Suse' ",
84+
"ignore_errors": True,
85+
},
86+
{
87+
"name": "Install OpenSSL library and development headers (Arch)",
88+
"package": {"name": ["openssl"], "state": "present"},
89+
"become": True,
90+
"when": "ansible_facts['os_family'] == 'Archlinux'",
91+
"ignore_errors": True,
92+
},
93+
{
94+
"name": "Install OpenSSL library and development headers (Alpine)",
95+
"package": {"name": ["openssl", "openssl-dev"], "state": "present"},
96+
"become": True,
97+
"when": "ansible_facts['os_family'] == 'Alpine'",
98+
"ignore_errors": True,
99+
},
100+
{
101+
"name": "Install OpenSSL library and development headers (FreeBSD)",
102+
"package": {"name": ["openssl"], "state": "present"},
103+
"become": True,
104+
"when": "ansible_facts['os_family'] == 'FreeBSD'",
105+
"ignore_errors": True,
106+
},
107+
],
56108
}
57109

58110
def __init__(self, parent_helper):

0 commit comments

Comments
 (0)