Friday, May 20, 2022

[Solved] Fix upgrade errors in Kali Linux

If you face errors from powershell-empire while upgrading Kali Linux, upgrade the pip packages for Flask and aiohttp with root privileges.

Error - 1:

Traceback (most recent call last):
  File "/usr/share/powershell-empire/", line 11, in <module>
    import empire.server.server as server
  File "/usr/share/powershell-empire/empire/server/", line 23, in <module>
    import flask
  File "/usr/lib/python3/dist-packages/flask/", line 19, in <module>
    from . import json
  File "/usr/lib/python3/dist-packages/flask/json/", line 15, in <module>
    from itsdangerous import json as _json
ImportError: cannot import name 'json' from 'itsdangerous' (/usr/lib/python3/dist-packages/itsdangerous/
dpkg: error processing package powershell-empire (--configure):
 installed powershell-empire package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

[How To] Remove conda from macOS

Follow these steps from a Terminal window to remove conda in macOS:
  • conda install anaconda-clean
  • anaconda-clean --yes
  • rm -rf /Users/devharsh/.anaconda_backup/
    (Replace "devharsh" with user directory)
  • rm -rf ~/anaconda3
  • rm -rf ~/anaconda2
  • rm -rf ~/.condarc ~/.conda ~/.continuum
  • sudo rm ~/.zshrc
  • brew reinstall python
  • /usr/local/opt/python@3.9/bin/python3.9 -m pip install --upgrade pip
  • pip3 list