This repo is UNMAINTAINED. Unless pull requests are received, no changes or fixes will be made in the foreseable future. I no longer use these formulae, and do not have the time to keep them in a working state.
About
This is a Tap containing some Homebrew formulas consisting of penetration testing related tools. Nearly all these formulas should build and run on both macOS and Linux.
macOS Specific Notes
The following Formulae do not build/work under macOS:
enum4linux - depends on rpcclient, net, nmblookup, smbclient which are tools included with Samba and not found on macOS
libnl - depends on specific functionality contained only within the Linux kernel
aircrack-ng - depends on libnl (see above)
wifite - depends on aircrack-ng (see above)
nfsshell - depends on specific functionality contained within the glibc library
frogger - depends on the Linux vconfig tool
mitmf - a python dependency depends on specific functionality found only within the Linux kernel
Ubuntu Specific Notes
The following dependencies will need to be installed on Ubuntu based systems:
โ brew install sidaf/pentest/john-jumbo
Error: No available formula with the name "sidaf/pentest/john-jumbo"
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
revision is spelled wrong and brew is throwing an error when trying to tap the repo.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/sidaf/homebrew-pentest/laudanum.rb
undefined method `revsion' for #Class:0x007fa86fbe2f20
Did you mean? version
revision
Error: Cannot tap sidaf/pentest: invalid syntax in tap!
$brew install sidaf/pentest/empire
Warning: sidaf/pentest/empire 1.5_2 is already installed
$ empire
Traceback (most recent call last):
File "empire", line 10, in
from lib.common import empire
File "/usr/local/Cellar/empire/1.5_2/libexec/lib/common/empire.py", line 22, in
import http
File "/usr/local/Cellar/empire/1.5_2/libexec/lib/common/http.py", line 53, in
class RequestHandler(BaseHTTPRequestHandler):
File "/usr/local/Cellar/empire/1.5_2/libexec/lib/common/http.py", line 59, in RequestHandler
serverVersion = helpers.get_config('server_version')[0]
File "/usr/local/Cellar/empire/1.5_2/libexec/lib/common/helpers.py", line 495, in get_config
cur.execute("SELECT %s FROM config" %(fields))
sqlite3.OperationalError: no such table: config
ImportError: No module named M2Crypto
brew install responder
==> Installing responder from sidaf/pentest
==> Cloning https://github.com/lgandx/Responder
Updating /Users/K0walski/Library/Caches/Homebrew/responder--git
==> Checking out revision b37f562
HEAD is now at b37f562 Added: check for null sessions and MS17-010
HEAD is now at b37f562 Added: check for null sessions and MS17-010
==> Downloading https://pypi.python.org/packages/60/db/645aa9af249f059cc3a368b11
Already downloaded: /Users/K0walski/Library/Caches/Homebrew/downloads/02cc35c52bbb32c170a7f0dd2abd801c214004a63259e5533de27c32c8ed87cf--pycrypto-2.6.1.tar.gz
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cel
==> Downloading https://pypi.python.org/packages/77/f2/bccec75ca4280a9fa762a90a1
Already downloaded: /Users/K0walski/Library/Caches/Homebrew/downloads/1944eef1972f7d830a3097aeafe50f2703890ba2c018939508c467fcc5d320d8--pyOpenSSL-16.0.0.tar.gz
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cel
==> Downloading https://pypi.python.org/packages/92/ea/e7d512719dcc672ce7ed5d70f
Already downloaded: /Users/K0walski/Library/Caches/Homebrew/downloads/7b1b166cb2ee4a7e245f322796a1be57839f1a0546edc602684627c998ba2228--cryptography-1.3.1.tar.gz
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cel
Last 15 lines from /Users/K0walski/Library/Logs/Homebrew/responder/03.python:
int n = (kCCModeOptionCTR_LE) <= 0;
^~~~~~~~~~~~~~~~~~~
kCCModeOptionCTR_BE
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/CommonCrypto/CommonCryptor.h:685:5: note: 'kCCModeOptionCTR_BE' declared here
kCCModeOptionCTR_BE = 2
^
build/temp.macosx-10.15-x86_64-2.7/_commoncrypto.c:1714:30: error: use of undeclared identifier 'kCCModeOptionCTR_LE'; did you mean 'kCCModeOptionCTR_BE'? o = (unsigned long long)((kCCModeOptionCTR_LE) | 0); / check that kCCModeOptionCTR_LE is an integer */
^~~~~~~~~~~~~~~~~~~
kCCModeOptionCTR_BE
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/CommonCrypto/CommonCryptor.h:685:5: note: 'kCCModeOptionCTR_BE' declared here
kCCModeOptionCTR_BE = 2
^
8 errors generated.
error: command 'clang' failed with exit status 1
Every time I run a brew command I see this printed three times.
Warning: Calling fails_with :llvm is deprecated! There is no replacement. /usr/local/Homebrew/Library/Taps/sidaf/homebrew-pentest/john-jumbo.rb:23:in <class:JohnJumbo> Please report this to the sidaf/pentest tap!
โ ~ brew install mitmf
==> Installing mitmf from sidaf/pentest
==> Cloning https://github.com/byt3bl33d3r/MITMf
Updating /Users/johnpc/Library/Caches/Homebrew/mitmf--git
==> Checking out revision 28fc081
HEAD is now at 28fc081 Merge pull request #169 from HAMIDx9/master
HEAD is now at 28fc081 Merge pull request #169 from HAMIDx9/master
Entering 'libs/bdfactory'
/Users/johnpc/Library/Caches/Homebrew/mitmf--git/libs/bdfactory
==> Downloading https://pypi.python.org/packages/e7/29/e9ad2a12c38f19e9ca8aff05122e5b9e271da6ecbfb6c4e20aee381b49ff/ca
Already downloaded: /Users/johnpc/Library/Caches/Homebrew/downloads/e48821434a1ad4ebc205173bae695761bfa38ffd63993aaac7e65b41785a300d--capstone-3.0.4.tar.gz
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/mitmf/0.9.8_3/libexec/vendor --ins
Last 15 lines from /Users/johnpc/Library/Logs/Homebrew/mitmf/01.python:
byte-compiling /usr/local/Cellar/mitmf/0.9.8_3/libexec/vendor/lib/python2.7/site-packages/capstone/arm64.py to arm64.pyc
byte-compiling /usr/local/Cellar/mitmf/0.9.8_3/libexec/vendor/lib/python2.7/site-packages/capstone/ppc.py to ppc.pyc
byte-compiling /usr/local/Cellar/mitmf/0.9.8_3/libexec/vendor/lib/python2.7/site-packages/capstone/__init__.py to __init__.pyc
byte-compiling /usr/local/Cellar/mitmf/0.9.8_3/libexec/vendor/lib/python2.7/site-packages/capstone/arm.py to arm.pyc
byte-compiling /usr/local/Cellar/mitmf/0.9.8_3/libexec/vendor/lib/python2.7/site-packages/capstone/systemz.py to systemz.pyc
byte-compiling /usr/local/Cellar/mitmf/0.9.8_3/libexec/vendor/lib/python2.7/site-packages/capstone/mips.py to mips.pyc
byte-compiling /usr/local/Cellar/mitmf/0.9.8_3/libexec/vendor/lib/python2.7/site-packages/capstone/arm64_const.py to arm64_const.pyc
byte-compiling /usr/local/Cellar/mitmf/0.9.8_3/libexec/vendor/lib/python2.7/site-packages/capstone/x86_const.py to x86_const.pyc
byte-compiling /usr/local/Cellar/mitmf/0.9.8_3/libexec/vendor/lib/python2.7/site-packages/capstone/xcore_const.py to xcore_const.pyc
byte-compiling /usr/local/Cellar/mitmf/0.9.8_3/libexec/vendor/lib/python2.7/site-packages/capstone/x86.py to x86.pyc
byte-compiling /usr/local/Cellar/mitmf/0.9.8_3/libexec/vendor/lib/python2.7/site-packages/capstone/ppc_const.py to ppc_const.pyc
byte-compiling /usr/local/Cellar/mitmf/0.9.8_3/libexec/vendor/lib/python2.7/site-packages/capstone/arm_const.py to arm_const.pyc
byte-compiling /usr/local/Cellar/mitmf/0.9.8_3/libexec/vendor/lib/python2.7/site-packages/capstone/hexagon_const.py to hexagon_const.pyc
running install_data
error: can't copy 'src/libcapstone.dylib': doesn't exist or not a regular file
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/sidaf/homebrew-pentest/issues
These open issues may also help:
error installing mitmf https://github.com/sidaf/homebrew-pentest/issues/23
Where can I add the -k (--insecure) option for curl?
curl: (60) SSL certificate problem: Invalid certificate chain
More details here: https://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
Error: Failed to download resource "libnl"
Download failed: https://www.infradead.org/~tgr/libnl/files/libnl-3.2.25.tar.gz
Output from running brew upgrade on macOS High Sierra with Homebrew 1.7.1:
==> Upgrading sidaf/pentest/pykek
==> Cloning https://github.com/bidord/pykek
Cloning into '/Users/decal/Library/Caches/Homebrew/pykek--git'...
remote: Repository not found.
fatal: repository 'https://github.com/bidord/pykek/' not found
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "pykek"
Failure while executing;`git clone https://github.com/bidord/pykek /Users/decal/Library/Caches/Homebrew/pykek--git` exited with 128. Here's the output:Cloning into '/Users/decal/Library/Caches/Homebrew/pykek--git'...remote: Repository not found.fatal: repository 'https://github.com/bidord/pykek/' not found
It looks like the installer is unable to locate 'ffi.h', a libffi file. I've ensured that libffi is installed. I have python3, cffi, and relevant dependencies installed and PATH'd.
I've run: export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
and export LDFLAGS="-L/usr/local/opt/libffi/lib"
Hey, got this warning during my brew upgrade process:
Warning: Calling depends_on :java is deprecated! Use "depends_on "openjdk@11", "depends_on "openjdk@8" or "depends_on "openjdk" instead.
Please report this issue to the sidaf/pentest tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it: /usr/local/Homebrew/Library/Taps/sidaf/homebrew-pentest/armitage.rb:10
Here's the output...
โโ[โ]โ[mg@hackbookpro]โ[~]
โโโโผ $ brew install wifite
Updating Homebrew...
==> Installing wifite from sidaf/pentest
==> Installing dependencies for sidaf/pentest/wifite: bison, libnl and sidaf/pentest/aircrack-ng
==> Installing sidaf/pentest/wifite dependency: bison
==> Downloading https://homebrew.bintray.com/bottles/bison-3.3.1.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring bison-3.3.1.mojave.bottle.tar.gz
==> Caveats
bison is keg-only, which means it was not symlinked into /usr/local,
because some formulae require a newer version of bison.
If you need to have bison first in your PATH run:
echo 'export PATH="/usr/local/opt/bison/bin:$PATH"' >> ~/.bash_profile
For compilers to find bison you may need to set:
export LDFLAGS="-L/usr/local/opt/bison/lib"
==> Summary
๐บ /usr/local/Cellar/bison/3.3.1: 78 files, 2.5MB
==> Installing sidaf/pentest/wifite dependency: libnl
==> Downloading http://www.infradead.org/~tgr/libnl/files/libnl-3.2.25.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libnl/3.2.25_3
==> make
Last 15 lines from /Users/mg/Library/Logs/Homebrew/libnl/02.make:
^~~~~~~~~~~~~~~
#include <linux/types.h>