trustedsec / social-engineer-toolkit

The Social-Engineer Toolkit (SET) repository from TrustedSec - All new versions of SET will be deployed here.
10.46k stars 2.69k forks source link

mac os run error??? #1037

Open pullghjunkkk opened 10 months ago

pullghjunkkk commented 10 months ago

chikkachun@chikdeMBP ~ % git clone https://github.com/trustedsec/social-engineer-toolkit/ setoolkit/ cd setoolkit pip3 install -r requirements.txt python setup.py fatal: destination path 'setoolkit' already exists and is not an empty directory. WARNING: Skipping /usr/local/lib/python3.11/site-packages/protobuf-4.24.2-py3.11.egg-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/Pygments-2.16.1.dist-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/certifi-2023.7.22-py3.11.egg-info due to invalid metadata entry 'name' Requirement already satisfied: pexpect in /usr/local/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (4.8.0) Collecting pycrypto (from -r requirements.txt (line 2)) Downloading pycrypto-2.6.1.tar.gz (446 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 446.2/446.2 kB 8.0 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Requirement already satisfied: requests in /usr/local/lib/python3.11/site-packages (from -r requirements.txt (line 3)) (2.23.0) Collecting pyopenssl (from -r requirements.txt (line 4)) Obtaining dependency information for pyopenssl from https://files.pythonhosted.org/packages/f0/e2/f8b4f1c67933a4907e52228241f4bd52169f3196b70af04403b29c63238a/pyOpenSSL-23.2.0-py3-none-any.whl.metadata Downloading pyOpenSSL-23.2.0-py3-none-any.whl.metadata (10 kB) Collecting pefile (from -r requirements.txt (line 5)) Downloading pefile-2023.2.7-py3-none-any.whl (71 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 71.8/71.8 kB 2.8 MB/s eta 0:00:00 Collecting impacket (from -r requirements.txt (line 6)) Downloading impacket-0.11.0.tar.gz (1.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 27.8 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Collecting qrcode (from -r requirements.txt (line 8)) Using cached qrcode-7.4.2-py3-none-any.whl (46 kB) Requirement already satisfied: pillow in /usr/local/lib/python3.11/site-packages (from -r requirements.txt (line 9)) (10.0.0) Collecting pymssql<3.0 (from -r requirements.txt (line 11)) Obtaining dependency information for pymssql<3.0 from https://files.pythonhosted.org/packages/8d/8d/32356f7c4ef2d0bb2a93637f6bfca6bd16d739f309a9d2f2e4956a1af059/pymssql-2.2.8-cp311-cp311-macosx_10_9_universal2.whl.metadata Downloading pymssql-2.2.8-cp311-cp311-macosx_10_9_universal2.whl.metadata (4.3 kB) Requirement already satisfied: ptyprocess>=0.5 in /usr/local/lib/python3.11/site-packages (from pexpect->-r requirements.txt (line 1)) (0.7.0) Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.11/site-packages (from requests->-r requirements.txt (line 3)) (3.0.4) Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.11/site-packages (from requests->-r requirements.txt (line 3)) (2.10) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.11/site-packages (from requests->-r requirements.txt (line 3)) (1.25.11) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.11/site-packages (from requests->-r requirements.txt (line 3)) (2023.7.22) Collecting cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0 (from pyopenssl->-r requirements.txt (line 4)) Obtaining dependency information for cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0 from https://files.pythonhosted.org/packages/a2/e6/2331e5bde68343b820a9e5d937b2e22a0f81ba68e87b74dbbdd98944da4e/cryptography-41.0.3-cp37-abi3-macosx_10_12_x86_64.whl.metadata Using cached cryptography-41.0.3-cp37-abi3-macosx_10_12_x86_64.whl.metadata (5.2 kB) Requirement already satisfied: pyasn1>=0.2.3 in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (0.5.0) Requirement already satisfied: pycryptodomex in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (3.18.0) Requirement already satisfied: six in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (1.16.0) Requirement already satisfied: ldap3!=2.5.0,!=2.5.2,!=2.6,>=2.5 in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (2.9.1) Collecting ldapdomaindump>=0.9.0 (from impacket->-r requirements.txt (line 6)) Downloading ldapdomaindump-0.9.4-py3-none-any.whl (18 kB) Requirement already satisfied: flask>=1.0 in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (1.1.1) Requirement already satisfied: future in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (0.18.3) Requirement already satisfied: charset_normalizer in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (3.2.0) Collecting dsinternals (from impacket->-r requirements.txt (line 6)) Downloading dsinternals-1.2.4.tar.gz (174 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 174.2/174.2 kB 7.1 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Requirement already satisfied: typing-extensions in /usr/local/lib/python3.11/site-packages (from qrcode->-r requirements.txt (line 8)) (4.7.1) Collecting pypng (from qrcode->-r requirements.txt (line 8)) Downloading pypng-0.20220715.0-py3-none-any.whl (58 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.1/58.1 kB 2.2 MB/s eta 0:00:00 Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.11/site-packages (from cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0->pyopenssl->-r requirements.txt (line 4)) (1.15.1) Requirement already satisfied: Werkzeug>=0.15 in /usr/local/lib/python3.11/site-packages (from flask>=1.0->impacket->-r requirements.txt (line 6)) (2.3.6) Requirement already satisfied: Jinja2>=2.10.1 in /usr/local/lib/python3.11/site-packages (from flask>=1.0->impacket->-r requirements.txt (line 6)) (3.1.2) Requirement already satisfied: itsdangerous>=0.24 in /usr/local/lib/python3.11/site-packages (from flask>=1.0->impacket->-r requirements.txt (line 6)) (2.1.2) Requirement already satisfied: click>=5.1 in /Users/chikkachun/Library/Python/3.11/lib/python/site-packages (from flask>=1.0->impacket->-r requirements.txt (line 6)) (8.0.4) Requirement already satisfied: dnspython in /usr/local/lib/python3.11/site-packages (from ldapdomaindump>=0.9.0->impacket->-r requirements.txt (line 6)) (2.4.2) Requirement already satisfied: pycparser in /usr/local/lib/python3.11/site-packages (from cffi>=1.12->cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0->pyopenssl->-r requirements.txt (line 4)) (2.21) Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.11/site-packages (from Jinja2>=2.10.1->flask>=1.0->impacket->-r requirements.txt (line 6)) (2.1.3) Downloading pyOpenSSL-23.2.0-py3-none-any.whl (59 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.0/59.0 kB 2.1 MB/s eta 0:00:00 Downloading pymssql-2.2.8-cp311-cp311-macosx_10_9_universal2.whl (2.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.2/2.2 MB 29.5 MB/s eta 0:00:00 Using cached cryptography-41.0.3-cp37-abi3-macosx_10_12_x86_64.whl (2.8 MB) Building wheels for collected packages: pycrypto, impacket, dsinternals Building wheel for pycrypto (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [60 lines of output] checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for __gmpz_init in -lgmp... yes checking for __gmpz_init in -lmpir... no checking whether mpz_powm is declared... yes checking whether mpz_powm_sec is declared... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for inttypes.h... (cached) yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking for inline... inline checking for int16_t... yes checking for int32_t... yes checking for int64_t... yes checking for int8_t... yes checking for size_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for uint8_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for memmove... yes checking for memset... yes configure: creating ./config.status config.status: creating src/config.h src/_fastmath.c:33:10: fatal error: 'longintrepr.h' file not found

include / for conversions /

           ^~~~~~~~~~~~~~~
  1 error generated.
  error: command '/usr/bin/clang' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pycrypto Running setup.py clean for pycrypto Building wheel for impacket (setup.py) ... done Created wheel for impacket: filename=impacket-0.11.0-py3-none-any.whl size=1509319 sha256=d969a9be9c6edb660dc0717415f12938826b9a99f3263a93bc57b59deb9699f8 Stored in directory: /Users/chikkachun/Library/Caches/pip/wheels/ea/33/c1/861bf852cc10ad4b1d7bc2b0a96b724badcc8e1f4b79753e59 Building wheel for dsinternals (setup.py) ... done Created wheel for dsinternals: filename=dsinternals-1.2.4-py3-none-any.whl size=208312 sha256=f40a310b54fa64507490beffb49a83f4d435e954a7e5af46772fa4816f882cc7 Stored in directory: /Users/chikkachun/Library/Caches/pip/wheels/3c/3c/7f/68e856b35a5b0edffe2e4f207d125b04688504fd791bc0a046 Successfully built impacket dsinternals Failed to build pycrypto ERROR: Could not build wheels for pycrypto, which is required to install pyproject.toml-based projects WARNING: Skipping /usr/local/lib/python3.11/site-packages/protobuf-4.24.2-py3.11.egg-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/Pygments-2.16.1.dist-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/certifi-2023.7.22-py3.11.egg-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/protobuf-4.24.2-py3.11.egg-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/Pygments-2.16.1.dist-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/certifi-2023.7.22-py3.11.egg-info due to invalid metadata entry 'name' zsh: command not found: python chikkachun@chikdeMBP setoolkit % python3 setup.py [*] Installing requirements.txt... WARNING: Skipping /usr/local/lib/python3.11/site-packages/protobuf-4.24.2-py3.11.egg-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/Pygments-2.16.1.dist-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/certifi-2023.7.22-py3.11.egg-info due to invalid metadata entry 'name' Requirement already satisfied: pexpect in /usr/local/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (4.8.0) Collecting pycrypto (from -r requirements.txt (line 2)) Using cached pycrypto-2.6.1.tar.gz (446 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: requests in /usr/local/lib/python3.11/site-packages (from -r requirements.txt (line 3)) (2.23.0) Collecting pyopenssl (from -r requirements.txt (line 4)) Obtaining dependency information for pyopenssl from https://files.pythonhosted.org/packages/f0/e2/f8b4f1c67933a4907e52228241f4bd52169f3196b70af04403b29c63238a/pyOpenSSL-23.2.0-py3-none-any.whl.metadata Using cached pyOpenSSL-23.2.0-py3-none-any.whl.metadata (10 kB) Collecting pefile (from -r requirements.txt (line 5)) Using cached pefile-2023.2.7-py3-none-any.whl (71 kB) Collecting impacket (from -r requirements.txt (line 6)) Using cached impacket-0.11.0-py3-none-any.whl Collecting qrcode (from -r requirements.txt (line 8)) Using cached qrcode-7.4.2-py3-none-any.whl (46 kB) Requirement already satisfied: pillow in /usr/local/lib/python3.11/site-packages (from -r requirements.txt (line 9)) (10.0.0) Collecting pymssql<3.0 (from -r requirements.txt (line 11)) Obtaining dependency information for pymssql<3.0 from https://files.pythonhosted.org/packages/8d/8d/32356f7c4ef2d0bb2a93637f6bfca6bd16d739f309a9d2f2e4956a1af059/pymssql-2.2.8-cp311-cp311-macosx_10_9_universal2.whl.metadata Using cached pymssql-2.2.8-cp311-cp311-macosx_10_9_universal2.whl.metadata (4.3 kB) Requirement already satisfied: ptyprocess>=0.5 in /usr/local/lib/python3.11/site-packages (from pexpect->-r requirements.txt (line 1)) (0.7.0) Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.11/site-packages (from requests->-r requirements.txt (line 3)) (3.0.4) Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.11/site-packages (from requests->-r requirements.txt (line 3)) (2.10) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.11/site-packages (from requests->-r requirements.txt (line 3)) (1.25.11) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.11/site-packages (from requests->-r requirements.txt (line 3)) (2023.7.22) Collecting cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0 (from pyopenssl->-r requirements.txt (line 4)) Obtaining dependency information for cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0 from https://files.pythonhosted.org/packages/a2/e6/2331e5bde68343b820a9e5d937b2e22a0f81ba68e87b74dbbdd98944da4e/cryptography-41.0.3-cp37-abi3-macosx_10_12_x86_64.whl.metadata Using cached cryptography-41.0.3-cp37-abi3-macosx_10_12_x86_64.whl.metadata (5.2 kB) Requirement already satisfied: pyasn1>=0.2.3 in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (0.5.0) Requirement already satisfied: pycryptodomex in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (3.18.0) Requirement already satisfied: six in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (1.16.0) Requirement already satisfied: ldap3!=2.5.0,!=2.5.2,!=2.6,>=2.5 in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (2.9.1) Collecting ldapdomaindump>=0.9.0 (from impacket->-r requirements.txt (line 6)) Using cached ldapdomaindump-0.9.4-py3-none-any.whl (18 kB) Requirement already satisfied: flask>=1.0 in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (1.1.1) Requirement already satisfied: future in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (0.18.3) Requirement already satisfied: charset-normalizer in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (3.2.0) Collecting dsinternals (from impacket->-r requirements.txt (line 6)) Using cached dsinternals-1.2.4-py3-none-any.whl Requirement already satisfied: typing-extensions in /usr/local/lib/python3.11/site-packages (from qrcode->-r requirements.txt (line 8)) (4.7.1) Collecting pypng (from qrcode->-r requirements.txt (line 8)) Using cached pypng-0.20220715.0-py3-none-any.whl (58 kB) Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.11/site-packages (from cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0->pyopenssl->-r requirements.txt (line 4)) (1.15.1) Requirement already satisfied: Werkzeug>=0.15 in /usr/local/lib/python3.11/site-packages (from flask>=1.0->impacket->-r requirements.txt (line 6)) (2.3.6) Requirement already satisfied: Jinja2>=2.10.1 in /usr/local/lib/python3.11/site-packages (from flask>=1.0->impacket->-r requirements.txt (line 6)) (3.1.2) Requirement already satisfied: itsdangerous>=0.24 in /usr/local/lib/python3.11/site-packages (from flask>=1.0->impacket->-r requirements.txt (line 6)) (2.1.2) Requirement already satisfied: click>=5.1 in /Users/chikkachun/Library/Python/3.11/lib/python/site-packages (from flask>=1.0->impacket->-r requirements.txt (line 6)) (8.0.4) Requirement already satisfied: dnspython in /usr/local/lib/python3.11/site-packages (from ldapdomaindump>=0.9.0->impacket->-r requirements.txt (line 6)) (2.4.2) Requirement already satisfied: pycparser in /usr/local/lib/python3.11/site-packages (from cffi>=1.12->cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0->pyopenssl->-r requirements.txt (line 4)) (2.21) Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.11/site-packages (from Jinja2>=2.10.1->flask>=1.0->impacket->-r requirements.txt (line 6)) (2.1.3) Using cached pyOpenSSL-23.2.0-py3-none-any.whl (59 kB) Using cached pymssql-2.2.8-cp311-cp311-macosx_10_9_universal2.whl (2.2 MB) Using cached cryptography-41.0.3-cp37-abi3-macosx_10_12_x86_64.whl (2.8 MB) Building wheels for collected packages: pycrypto Building wheel for pycrypto (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [60 lines of output] checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for __gmpz_init in -lgmp... yes checking for __gmpz_init in -lmpir... no checking whether mpz_powm is declared... yes checking whether mpz_powm_sec is declared... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for inttypes.h... (cached) yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking for inline... inline checking for int16_t... yes checking for int32_t... yes checking for int64_t... yes checking for int8_t... yes checking for size_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for uint8_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for memmove... yes checking for memset... yes configure: creating ./config.status config.status: creating src/config.h src/_fastmath.c:33:10: fatal error: 'longintrepr.h' file not found

include / for conversions /

           ^~~~~~~~~~~~~~~
  1 error generated.
  error: command '/usr/bin/clang' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pycrypto Running setup.py clean for pycrypto Failed to build pycrypto ERROR: Could not build wheels for pycrypto, which is required to install pyproject.toml-based projects WARNING: Skipping /usr/local/lib/python3.11/site-packages/protobuf-4.24.2-py3.11.egg-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/Pygments-2.16.1.dist-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/certifi-2023.7.22-py3.11.egg-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/protobuf-4.24.2-py3.11.egg-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/Pygments-2.16.1.dist-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/certifi-2023.7.22-py3.11.egg-info due to invalid metadata entry 'name' [] Installing setoolkit to /usr/share/setoolkit.. /Users/chikkachun/setoolkit mkdir: /usr/share/setoolkit/: Operation not permitted mkdir: /etc/setoolkit/: Permission denied cp: /usr/share/setoolkit is not a directory cp: /etc/setoolkit/set.config: No such file or directory [] Creating launcher for setoolkit... [] Done. Chmoding +x.... [] Finished. Run 'setoolkit' to start the Social Engineer Toolkit. chikkachun@chikdeMBP setoolkit % pip3 install -r requirements.txt python3 setup.py WARNING: Skipping /usr/local/lib/python3.11/site-packages/protobuf-4.24.2-py3.11.egg-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/Pygments-2.16.1.dist-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/certifi-2023.7.22-py3.11.egg-info due to invalid metadata entry 'name' Requirement already satisfied: pexpect in /usr/local/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (4.8.0) Collecting pycrypto (from -r requirements.txt (line 2)) Using cached pycrypto-2.6.1.tar.gz (446 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: requests in /usr/local/lib/python3.11/site-packages (from -r requirements.txt (line 3)) (2.23.0) Collecting pyopenssl (from -r requirements.txt (line 4)) Obtaining dependency information for pyopenssl from https://files.pythonhosted.org/packages/f0/e2/f8b4f1c67933a4907e52228241f4bd52169f3196b70af04403b29c63238a/pyOpenSSL-23.2.0-py3-none-any.whl.metadata Using cached pyOpenSSL-23.2.0-py3-none-any.whl.metadata (10 kB) Collecting pefile (from -r requirements.txt (line 5)) Using cached pefile-2023.2.7-py3-none-any.whl (71 kB) Collecting impacket (from -r requirements.txt (line 6)) Using cached impacket-0.11.0-py3-none-any.whl Collecting qrcode (from -r requirements.txt (line 8)) Using cached qrcode-7.4.2-py3-none-any.whl (46 kB) Requirement already satisfied: pillow in /usr/local/lib/python3.11/site-packages (from -r requirements.txt (line 9)) (10.0.0) Collecting pymssql<3.0 (from -r requirements.txt (line 11)) Obtaining dependency information for pymssql<3.0 from https://files.pythonhosted.org/packages/8d/8d/32356f7c4ef2d0bb2a93637f6bfca6bd16d739f309a9d2f2e4956a1af059/pymssql-2.2.8-cp311-cp311-macosx_10_9_universal2.whl.metadata Using cached pymssql-2.2.8-cp311-cp311-macosx_10_9_universal2.whl.metadata (4.3 kB) Requirement already satisfied: ptyprocess>=0.5 in /usr/local/lib/python3.11/site-packages (from pexpect->-r requirements.txt (line 1)) (0.7.0) Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.11/site-packages (from requests->-r requirements.txt (line 3)) (3.0.4) Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.11/site-packages (from requests->-r requirements.txt (line 3)) (2.10) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.11/site-packages (from requests->-r requirements.txt (line 3)) (1.25.11) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.11/site-packages (from requests->-r requirements.txt (line 3)) (2023.7.22) Collecting cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0 (from pyopenssl->-r requirements.txt (line 4)) Obtaining dependency information for cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0 from https://files.pythonhosted.org/packages/a2/e6/2331e5bde68343b820a9e5d937b2e22a0f81ba68e87b74dbbdd98944da4e/cryptography-41.0.3-cp37-abi3-macosx_10_12_x86_64.whl.metadata Using cached cryptography-41.0.3-cp37-abi3-macosx_10_12_x86_64.whl.metadata (5.2 kB) Requirement already satisfied: pyasn1>=0.2.3 in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (0.5.0) Requirement already satisfied: pycryptodomex in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (3.18.0) Requirement already satisfied: six in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (1.16.0) Requirement already satisfied: ldap3!=2.5.0,!=2.5.2,!=2.6,>=2.5 in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (2.9.1) Collecting ldapdomaindump>=0.9.0 (from impacket->-r requirements.txt (line 6)) Using cached ldapdomaindump-0.9.4-py3-none-any.whl (18 kB) Requirement already satisfied: flask>=1.0 in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (1.1.1) Requirement already satisfied: future in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (0.18.3) Requirement already satisfied: charset-normalizer in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (3.2.0) Collecting dsinternals (from impacket->-r requirements.txt (line 6)) Using cached dsinternals-1.2.4-py3-none-any.whl Requirement already satisfied: typing-extensions in /usr/local/lib/python3.11/site-packages (from qrcode->-r requirements.txt (line 8)) (4.7.1) Collecting pypng (from qrcode->-r requirements.txt (line 8)) Using cached pypng-0.20220715.0-py3-none-any.whl (58 kB) Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.11/site-packages (from cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0->pyopenssl->-r requirements.txt (line 4)) (1.15.1) Requirement already satisfied: Werkzeug>=0.15 in /usr/local/lib/python3.11/site-packages (from flask>=1.0->impacket->-r requirements.txt (line 6)) (2.3.6) Requirement already satisfied: Jinja2>=2.10.1 in /usr/local/lib/python3.11/site-packages (from flask>=1.0->impacket->-r requirements.txt (line 6)) (3.1.2) Requirement already satisfied: itsdangerous>=0.24 in /usr/local/lib/python3.11/site-packages (from flask>=1.0->impacket->-r requirements.txt (line 6)) (2.1.2) Requirement already satisfied: click>=5.1 in /Users/chikkachun/Library/Python/3.11/lib/python/site-packages (from flask>=1.0->impacket->-r requirements.txt (line 6)) (8.0.4) Requirement already satisfied: dnspython in /usr/local/lib/python3.11/site-packages (from ldapdomaindump>=0.9.0->impacket->-r requirements.txt (line 6)) (2.4.2) Requirement already satisfied: pycparser in /usr/local/lib/python3.11/site-packages (from cffi>=1.12->cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0->pyopenssl->-r requirements.txt (line 4)) (2.21) Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.11/site-packages (from Jinja2>=2.10.1->flask>=1.0->impacket->-r requirements.txt (line 6)) (2.1.3) Using cached pyOpenSSL-23.2.0-py3-none-any.whl (59 kB) Using cached pymssql-2.2.8-cp311-cp311-macosx_10_9_universal2.whl (2.2 MB) Using cached cryptography-41.0.3-cp37-abi3-macosx_10_12_x86_64.whl (2.8 MB) Building wheels for collected packages: pycrypto Building wheel for pycrypto (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [60 lines of output] checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for __gmpz_init in -lgmp... yes checking for __gmpz_init in -lmpir... no checking whether mpz_powm is declared... yes checking whether mpz_powm_sec is declared... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for inttypes.h... (cached) yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking for inline... inline checking for int16_t... yes checking for int32_t... yes checking for int64_t... yes checking for int8_t... yes checking for size_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for uint8_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for memmove... yes checking for memset... yes configure: creating ./config.status config.status: creating src/config.h src/_fastmath.c:33:10: fatal error: 'longintrepr.h' file not found

include / for conversions /

           ^~~~~~~~~~~~~~~
  1 error generated.
  error: command '/usr/bin/clang' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pycrypto Running setup.py clean for pycrypto Failed to build pycrypto ERROR: Could not build wheels for pycrypto, which is required to install pyproject.toml-based projects WARNING: Skipping /usr/local/lib/python3.11/site-packages/protobuf-4.24.2-py3.11.egg-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/Pygments-2.16.1.dist-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/certifi-2023.7.22-py3.11.egg-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/protobuf-4.24.2-py3.11.egg-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/Pygments-2.16.1.dist-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/certifi-2023.7.22-py3.11.egg-info due to invalid metadata entry 'name' [*] Installing requirements.txt... WARNING: Skipping /usr/local/lib/python3.11/site-packages/protobuf-4.24.2-py3.11.egg-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/Pygments-2.16.1.dist-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/certifi-2023.7.22-py3.11.egg-info due to invalid metadata entry 'name' Requirement already satisfied: pexpect in /usr/local/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (4.8.0) Collecting pycrypto (from -r requirements.txt (line 2)) Using cached pycrypto-2.6.1.tar.gz (446 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: requests in /usr/local/lib/python3.11/site-packages (from -r requirements.txt (line 3)) (2.23.0) Collecting pyopenssl (from -r requirements.txt (line 4)) Obtaining dependency information for pyopenssl from https://files.pythonhosted.org/packages/f0/e2/f8b4f1c67933a4907e52228241f4bd52169f3196b70af04403b29c63238a/pyOpenSSL-23.2.0-py3-none-any.whl.metadata Using cached pyOpenSSL-23.2.0-py3-none-any.whl.metadata (10 kB) Collecting pefile (from -r requirements.txt (line 5)) Using cached pefile-2023.2.7-py3-none-any.whl (71 kB) Collecting impacket (from -r requirements.txt (line 6)) Using cached impacket-0.11.0-py3-none-any.whl Collecting qrcode (from -r requirements.txt (line 8)) Using cached qrcode-7.4.2-py3-none-any.whl (46 kB) Requirement already satisfied: pillow in /usr/local/lib/python3.11/site-packages (from -r requirements.txt (line 9)) (10.0.0) Collecting pymssql<3.0 (from -r requirements.txt (line 11)) Obtaining dependency information for pymssql<3.0 from https://files.pythonhosted.org/packages/8d/8d/32356f7c4ef2d0bb2a93637f6bfca6bd16d739f309a9d2f2e4956a1af059/pymssql-2.2.8-cp311-cp311-macosx_10_9_universal2.whl.metadata Using cached pymssql-2.2.8-cp311-cp311-macosx_10_9_universal2.whl.metadata (4.3 kB) Requirement already satisfied: ptyprocess>=0.5 in /usr/local/lib/python3.11/site-packages (from pexpect->-r requirements.txt (line 1)) (0.7.0) Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.11/site-packages (from requests->-r requirements.txt (line 3)) (3.0.4) Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.11/site-packages (from requests->-r requirements.txt (line 3)) (2.10) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.11/site-packages (from requests->-r requirements.txt (line 3)) (1.25.11) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.11/site-packages (from requests->-r requirements.txt (line 3)) (2023.7.22) Collecting cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0 (from pyopenssl->-r requirements.txt (line 4)) Obtaining dependency information for cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0 from https://files.pythonhosted.org/packages/a2/e6/2331e5bde68343b820a9e5d937b2e22a0f81ba68e87b74dbbdd98944da4e/cryptography-41.0.3-cp37-abi3-macosx_10_12_x86_64.whl.metadata Using cached cryptography-41.0.3-cp37-abi3-macosx_10_12_x86_64.whl.metadata (5.2 kB) Requirement already satisfied: pyasn1>=0.2.3 in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (0.5.0) Requirement already satisfied: pycryptodomex in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (3.18.0) Requirement already satisfied: six in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (1.16.0) Requirement already satisfied: ldap3!=2.5.0,!=2.5.2,!=2.6,>=2.5 in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (2.9.1) Collecting ldapdomaindump>=0.9.0 (from impacket->-r requirements.txt (line 6)) Using cached ldapdomaindump-0.9.4-py3-none-any.whl (18 kB) Requirement already satisfied: flask>=1.0 in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (1.1.1) Requirement already satisfied: future in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (0.18.3) Requirement already satisfied: charset-normalizer in /usr/local/lib/python3.11/site-packages (from impacket->-r requirements.txt (line 6)) (3.2.0) Collecting dsinternals (from impacket->-r requirements.txt (line 6)) Using cached dsinternals-1.2.4-py3-none-any.whl Requirement already satisfied: typing-extensions in /usr/local/lib/python3.11/site-packages (from qrcode->-r requirements.txt (line 8)) (4.7.1) Collecting pypng (from qrcode->-r requirements.txt (line 8)) Using cached pypng-0.20220715.0-py3-none-any.whl (58 kB) Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.11/site-packages (from cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0->pyopenssl->-r requirements.txt (line 4)) (1.15.1) Requirement already satisfied: Werkzeug>=0.15 in /usr/local/lib/python3.11/site-packages (from flask>=1.0->impacket->-r requirements.txt (line 6)) (2.3.6) Requirement already satisfied: Jinja2>=2.10.1 in /usr/local/lib/python3.11/site-packages (from flask>=1.0->impacket->-r requirements.txt (line 6)) (3.1.2) Requirement already satisfied: itsdangerous>=0.24 in /usr/local/lib/python3.11/site-packages (from flask>=1.0->impacket->-r requirements.txt (line 6)) (2.1.2) Requirement already satisfied: click>=5.1 in /Users/chikkachun/Library/Python/3.11/lib/python/site-packages (from flask>=1.0->impacket->-r requirements.txt (line 6)) (8.0.4) Requirement already satisfied: dnspython in /usr/local/lib/python3.11/site-packages (from ldapdomaindump>=0.9.0->impacket->-r requirements.txt (line 6)) (2.4.2) Requirement already satisfied: pycparser in /usr/local/lib/python3.11/site-packages (from cffi>=1.12->cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0->pyopenssl->-r requirements.txt (line 4)) (2.21) Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.11/site-packages (from Jinja2>=2.10.1->flask>=1.0->impacket->-r requirements.txt (line 6)) (2.1.3) Using cached pyOpenSSL-23.2.0-py3-none-any.whl (59 kB) Using cached pymssql-2.2.8-cp311-cp311-macosx_10_9_universal2.whl (2.2 MB) Using cached cryptography-41.0.3-cp37-abi3-macosx_10_12_x86_64.whl (2.8 MB) Building wheels for collected packages: pycrypto Building wheel for pycrypto (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [60 lines of output] checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for __gmpz_init in -lgmp... yes checking for __gmpz_init in -lmpir... no checking whether mpz_powm is declared... yes checking whether mpz_powm_sec is declared... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for inttypes.h... (cached) yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking for inline... inline checking for int16_t... yes checking for int32_t... yes checking for int64_t... yes checking for int8_t... yes checking for size_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for uint8_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for memmove... yes checking for memset... yes configure: creating ./config.status config.status: creating src/config.h src/_fastmath.c:33:10: fatal error: 'longintrepr.h' file not found

include / for conversions /

           ^~~~~~~~~~~~~~~
  1 error generated.
  error: command '/usr/bin/clang' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pycrypto Running setup.py clean for pycrypto Failed to build pycrypto ERROR: Could not build wheels for pycrypto, which is required to install pyproject.toml-based projects WARNING: Skipping /usr/local/lib/python3.11/site-packages/protobuf-4.24.2-py3.11.egg-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/Pygments-2.16.1.dist-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/certifi-2023.7.22-py3.11.egg-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/protobuf-4.24.2-py3.11.egg-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/Pygments-2.16.1.dist-info due to invalid metadata entry 'name' WARNING: Skipping /usr/local/lib/python3.11/site-packages/certifi-2023.7.22-py3.11.egg-info due to invalid metadata entry 'name' [] Installing setoolkit to /usr/share/setoolkit.. /Users/chikkachun/setoolkit mkdir: /usr/share/setoolkit/: Operation not permitted mkdir: /etc/setoolkit/: Permission denied cp: /usr/share/setoolkit is not a directory cp: /etc/setoolkit/set.config: No such file or directory [] Creating launcher for setoolkit... [] Done. Chmoding +x.... [] Finished. Run 'setoolkit' to start the Social Engineer Toolkit. chikkachun@chikdeMBP setoolkit %

marslo commented 6 months ago

check pip changelog v23.2.1:

Deprecate support for eggs for Python 3.11 or later, when the new importlib.metadata backend is used to load distribution metadata. This only affects the egg distribution format (with the .egg extension); distributions using the .egg-info metadata format (but are not actually eggs) are not affected. For more information about eggs, see relevant section in the setuptools documentation.

For me, I've fixed the issue by remove: