Giter VIP home page Giter VIP logo

donpapi's People

Contributors

bzhuntshampu avatar cclauss avatar coolcoolnoworries avatar flx-0x00 avatar hackndo avatar login-securite avatar noraj avatar p0dalirius avatar zblurx avatar zeecka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

donpapi's Issues

Microsoft Edge support

DonPAPI is able to retrieve credentials for Chrome, there should be support for edge considering the large-scale use of edge within environments.

Edge is based of chromium so it shouldn't be hard at all to implement, user data is stored in %localappdata%\microsoft\edge\User Data\Default

VNC plugin error on reading and parsing registry key

The VNC plugin in software/sysadmin/vnc.py does not handle properly the read of a registry key.

There is two issues:

  • After getting the key from registry, the variable is bytes, but on line 107, you triy to rstrip() some string, causing an error.
  • On the reverse_vncpassword method, you try to unhex/hex the same variable, but as it's bytes and not a string hex representation, it fails.

Allow working in local mode

Currently this tool allows reading files via SMB only.

I would like to run it locally, using Kali Live, with Windows drive(s) mounted in eg. /mnt/c, /mnt/d etc.

[bug] Missing requirement to build DonPAPI through poetry: ModuleNotFoundError: No module named 'swig'

Missing requirement 'swig' to build DonPAPI through poetry

┌──(root㉿kali)-[/home/kali/Desktop/DonPAPI]
└─# poetry update
Creating virtualenv donpapi-WjBzr8W3-py3.11 in /root/.cache/pypoetry/virtualenvs
Updating dependencies
Resolving dependencies... Downloading https://files.pythonhosted.org/packages/15/b8/d99814bab6797ed0b9449390c8c2f9872d475c693d11957b8b61abbc0933/impacket-0.9.24.tar.gz  18% (6.Resolving dependencies... Downloading https://files.pythonhosted.org/packages/15/b8/d99814bab6797ed0b9449390c8c2f9872d475c693d11957b8b61abbc0933/impacket-0.9.24.tar.gz  95% (6.Resolving dependencies... Downloading https://files.pythonhosted.org/packages/a1/eb/030d2f273902f2b0c7d59bca28fe528dcc7213f2ddd5a65055a3f25101be/pycryptodome-3.18.0-cp27-cp27m-Resolving dependencies... Downloading https://files.pythonhosted.org/packages/7c/6f/fdf4620511f30482915c88cba42e82b2ce3444499bfeba572c16abfd22e6/pycryptodomex-3.18.0-cp27-cp27mResolving dependencies... (13.1s)

Writing lock file

Package operations: 31 installs, 1 update, 0 removals

  • Installing idna (3.4)
  • Installing sniffio (1.3.0)
  • Installing anyio (3.7.1)
  • Installing certifi (2023.7.22)
  • Installing h11 (0.14.0)
  • Installing pycparser (2.21)
  • Installing cffi (1.15.1)
  • Installing httpcore (0.17.3)
  • Installing markupsafe (2.1.3)
  • Installing pyasn1 (0.5.0)
  • Installing blinker (1.6.2)
  • Installing click (8.1.6)
  • Installing cryptography (41.0.2)
  • Installing dnspython (2.4.0)
  • Installing future (0.18.3)
  • Installing itsdangerous (2.1.2)
  • Installing jinja2 (3.1.2)
  • Installing ldap3 (2.9.1)
  • Installing werkzeug (2.3.6)
  • Installing chardet (5.1.0)
  • Installing flask (2.3.2)
  • Installing six (1.16.0)
  • Installing pycryptodomex (3.18.0)
  • Installing pyopenssl (23.2.0)
  • Installing ldapdomaindump (0.9.4)
  • Installing impacket (0.9.24): Installing...
  • Installing lnkparse3 (1.2.0)
  • Installing m2crypto (0.38.0): Failed

  CalledProcessError

  Command '['/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', '--no-input', '--prefix', '/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11', '--no-deps', '/root/.cache/pypoetry/artifacts/de/e9/1c/53d251c759c702dbaaaaca584d20259e0dac1d89660e8cf5208e6d1183/M2Crypto-0.38.0.tar.gz']' returned non-zero exit status 1.

  at /usr/lib/python3.11/subprocess.py:571 in run
       567│             # We don't call process.wait() as .__exit__ does that for us.
       568│             raise
       569│         retcode = process.poll()
       570│         if check and retcode:
    →  571│             raise CalledProcessError(retcode, process.args,
       572│                                      output=stdout, stderr=stderr)
       573│     return CompletedProcess(process.args, retcode, stdout, stderr)
       574│ 
       575│ 

The following error occurred when trying to handle this error:


  EnvCommandError

  Command ['/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', '--no-input', '--prefix', '/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11', '--no-deps', '/root/.cache/pypoetry/artifacts/de/e9/1c/53d251c759c702dbaaaaca584d20259e0dac1d89660e8cf5208e6d1183/M2Crypto-0.38.0.tar.gz'] errored with the following return code 1, and output: 
  Processing /root/.cache/pypoetry/artifacts/de/e9/1c/53d251c759c702dbaaaaca584d20259e0dac1d89660e8cf5208e6d1183/M2Crypto-0.38.0.tar.gz
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): finished with status 'done'
  Building wheels for collected packages: M2Crypto
    Building wheel for M2Crypto (pyproject.toml): started
    Building wheel for M2Crypto (pyproject.toml): finished with status 'error'
    error: subprocess-exited-with-error
    
    × Building wheel for M2Crypto (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [64 lines of output]
        INFO:run_command:running bdist_wheel
        INFO:run_command:running build
        INFO:run_command:running build_py
        INFO:copy_file:copying src/M2Crypto/DH.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/threading.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/X509.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/EC.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/AuthCookie.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/six.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/m2crypto.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/BIO.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/DSA.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/m2urllib.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/m2urllib2.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/m2xmlrpclib.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/SMIME.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/ASN1.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/__init__.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/m2.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/BN.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/RC4.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/Rand.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/callback.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/util.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/Err.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/Engine.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/EVP.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/ftpslib.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/RSA.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/httpslib.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:mkpath:creating build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/SSLServer.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/Checker.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/Session.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/Cipher.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/Connection.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/timeout.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/TwistedProtocolWrapper.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/Context.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/__init__.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/ssl_dispatcher.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/cb.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:run_command:running egg_info
        INFO:write_pkg_info:writing src/M2Crypto.egg-info/PKG-INFO
        INFO:write_file:writing dependency_links to src/M2Crypto.egg-info/dependency_links.txt
        INFO:write_file:writing top-level names to src/M2Crypto.egg-info/top_level.txt
        INFO:read_manifest:reading manifest file 'src/M2Crypto.egg-info/SOURCES.txt'
        INFO:read_template:reading manifest template 'MANIFEST.in'
        WARNING:process_template_line:warning: no files found matching 'SWIG/*.i'
        WARNING:process_template_line:warning: no files found matching 'SWIG/*.h'
        WARNING:process_template_line:warning: no files found matching 'SWIG/*.def'
        WARNING:process_template_line:warning: no files found matching 'SWIG/_m2crypto_wrap.c'
        WARNING:process_template_line:warning: no files found matching 'M2Crypto/m2crypto.py'
        INFO:add_license_files:adding license file 'LICENCE'
        INFO:execute:writing manifest file 'src/M2Crypto.egg-info/SOURCES.txt'
        INFO:run_command:running build_ext
        INFO:build_extension:building 'M2Crypto._m2crypto' extension
        INFO:swig_sources:swigging src/SWIG/_m2crypto.i to src/SWIG/_m2crypto_wrap.c
        INFO:spawn:swig -python -py3 -I/usr/lib/gcc/x86_64-linux-gnu/12/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include -D__x86_64__ -I/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11/include -I/usr/include/python3.11 -I/usr/include/openssl -includeall -modern -builtin -outdir /tmp/pip-req-build-7ji35ain/src/M2Crypto -o src/SWIG/_m2crypto_wrap.c src/SWIG/_m2crypto.i
        Traceback (most recent call last):
          File "/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11/bin/swig", line 5, in <module>
            from swig import swig
        ModuleNotFoundError: No module named 'swig'
        error: command '/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11/bin/swig' failed with exit code 1
  • Installing lnkparse3 (1.2.0)
  • Installing m2crypto (0.38.0): Failed

  CalledProcessError

  Command '['/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', '--no-input', '--prefix', '/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11', '--no-deps', '/root/.cache/pypoetry/artifacts/de/e9/1c/53d251c759c702dbaaaaca584d20259e0dac1d89660e8cf5208e6d1183/M2Crypto-0.38.0.tar.gz']' returned non-zero exit status 1.

  at /usr/lib/python3.11/subprocess.py:571 in run
       567│             # We don't call process.wait() as .__exit__ does that for us.
       568│             raise
       569│         retcode = process.poll()
       570│         if check and retcode:
    →  571│             raise CalledProcessError(retcode, process.args,
       572│                                      output=stdout, stderr=stderr)
       573│     return CompletedProcess(process.args, retcode, stdout, stderr)
       574│ 
       575│ 

The following error occurred when trying to handle this error:


  EnvCommandError

  Command ['/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', '--no-input', '--prefix', '/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11', '--no-deps', '/root/.cache/pypoetry/artifacts/de/e9/1c/53d251c759c702dbaaaaca584d20259e0dac1d89660e8cf5208e6d1183/M2Crypto-0.38.0.tar.gz'] errored with the following return code 1, and output: 
  Processing /root/.cache/pypoetry/artifacts/de/e9/1c/53d251c759c702dbaaaaca584d20259e0dac1d89660e8cf5208e6d1183/M2Crypto-0.38.0.tar.gz
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): finished with status 'done'
  Building wheels for collected packages: M2Crypto
    Building wheel for M2Crypto (pyproject.toml): started
    Building wheel for M2Crypto (pyproject.toml): finished with status 'error'
    error: subprocess-exited-with-error
    
    × Building wheel for M2Crypto (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [64 lines of output]
        INFO:run_command:running bdist_wheel
        INFO:run_command:running build
        INFO:run_command:running build_py
        INFO:copy_file:copying src/M2Crypto/DH.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/threading.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/X509.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/EC.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/AuthCookie.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/six.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/m2crypto.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/BIO.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/DSA.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/m2urllib.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/m2urllib2.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/m2xmlrpclib.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/SMIME.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/ASN1.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/__init__.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/m2.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/BN.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/RC4.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/Rand.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/callback.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/util.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/Err.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/Engine.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/EVP.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/ftpslib.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/RSA.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/httpslib.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:mkpath:creating build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/SSLServer.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/Checker.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/Session.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/Cipher.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/Connection.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/timeout.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/TwistedProtocolWrapper.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/Context.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/__init__.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/ssl_dispatcher.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/cb.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:run_command:running egg_info
        INFO:write_pkg_info:writing src/M2Crypto.egg-info/PKG-INFO
        INFO:write_file:writing dependency_links to src/M2Crypto.egg-info/dependency_links.txt
        INFO:write_file:writing top-level names to src/M2Crypto.egg-info/top_level.txt
        INFO:read_manifest:reading manifest file 'src/M2Crypto.egg-info/SOURCES.txt'
        INFO:read_template:reading manifest template 'MANIFEST.in'
        WARNING:process_template_line:warning: no files found matching 'SWIG/*.i'
        WARNING:process_template_line:warning: no files found matching 'SWIG/*.h'
        WARNING:process_template_line:warning: no files found matching 'SWIG/*.def'
        WARNING:process_template_line:warning: no files found matching 'SWIG/_m2crypto_wrap.c'
        WARNING:process_template_line:warning: no files found matching 'M2Crypto/m2crypto.py'
        INFO:add_license_files:adding license file 'LICENCE'
        INFO:execute:writing manifest file 'src/M2Crypto.egg-info/SOURCES.txt'
        INFO:run_command:running build_ext
        INFO:build_extension:building 'M2Crypto._m2crypto' extension
        INFO:swig_sources:swigging src/SWIG/_m2crypto.i to src/SWIG/_m2crypto_wrap.c
        INFO:spawn:swig -python -py3 -I/usr/lib/gcc/x86_64-linux-gnu/12/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include -D__x86_64__ -I/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11/include -I/usr/include/python3.11 -I/usr/include/openssl -includeall -modern -builtin -outdir /tmp/pip-req-build-7ji35ain/src/M2Crypto -o src/SWIG/_m2crypto_wrap.c src/SWIG/_m2crypto.i
        Traceback (most recent call last):
          File "/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11/bin/swig", line 5, in <module>
            from swig import swig
        ModuleNotFoundError: No module named 'swig'
        error: command '/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11/bin/swig' failed with exit code 1
  • Installing impacket (0.9.24)
  • Installing lnkparse3 (1.2.0)
  • Installing m2crypto (0.38.0): Failed

  CalledProcessError

  Command '['/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', '--no-input', '--prefix', '/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11', '--no-deps', '/root/.cache/pypoetry/artifacts/de/e9/1c/53d251c759c702dbaaaaca584d20259e0dac1d89660e8cf5208e6d1183/M2Crypto-0.38.0.tar.gz']' returned non-zero exit status 1.

  at /usr/lib/python3.11/subprocess.py:571 in run
       567│             # We don't call process.wait() as .__exit__ does that for us.
       568│             raise
       569│         retcode = process.poll()
       570│         if check and retcode:
    →  571│             raise CalledProcessError(retcode, process.args,
       572│                                      output=stdout, stderr=stderr)
       573│     return CompletedProcess(process.args, retcode, stdout, stderr)
       574│ 
       575│ 

The following error occurred when trying to handle this error:


  EnvCommandError

  Command ['/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--isolated', '--no-input', '--prefix', '/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11', '--no-deps', '/root/.cache/pypoetry/artifacts/de/e9/1c/53d251c759c702dbaaaaca584d20259e0dac1d89660e8cf5208e6d1183/M2Crypto-0.38.0.tar.gz'] errored with the following return code 1, and output: 
  Processing /root/.cache/pypoetry/artifacts/de/e9/1c/53d251c759c702dbaaaaca584d20259e0dac1d89660e8cf5208e6d1183/M2Crypto-0.38.0.tar.gz
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): finished with status 'done'
  Building wheels for collected packages: M2Crypto
    Building wheel for M2Crypto (pyproject.toml): started
    Building wheel for M2Crypto (pyproject.toml): finished with status 'error'
    error: subprocess-exited-with-error
    
    × Building wheel for M2Crypto (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [64 lines of output]
        INFO:run_command:running bdist_wheel
        INFO:run_command:running build
        INFO:run_command:running build_py
        INFO:copy_file:copying src/M2Crypto/DH.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/threading.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/X509.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/EC.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/AuthCookie.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/six.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/m2crypto.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/BIO.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/DSA.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/m2urllib.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/m2urllib2.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/m2xmlrpclib.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/SMIME.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/ASN1.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/__init__.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/m2.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/BN.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/RC4.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/Rand.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/callback.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/util.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/Err.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/Engine.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/EVP.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/ftpslib.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/RSA.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:copy_file:copying src/M2Crypto/httpslib.py -> build/lib.linux-x86_64-cpython-311/M2Crypto
        INFO:mkpath:creating build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/SSLServer.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/Checker.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/Session.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/Cipher.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/Connection.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/timeout.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/TwistedProtocolWrapper.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/Context.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/__init__.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/ssl_dispatcher.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:copy_file:copying src/M2Crypto/SSL/cb.py -> build/lib.linux-x86_64-cpython-311/M2Crypto/SSL
        INFO:run_command:running egg_info
        INFO:write_pkg_info:writing src/M2Crypto.egg-info/PKG-INFO
        INFO:write_file:writing dependency_links to src/M2Crypto.egg-info/dependency_links.txt
        INFO:write_file:writing top-level names to src/M2Crypto.egg-info/top_level.txt
        INFO:read_manifest:reading manifest file 'src/M2Crypto.egg-info/SOURCES.txt'
        INFO:read_template:reading manifest template 'MANIFEST.in'
        WARNING:process_template_line:warning: no files found matching 'SWIG/*.i'
        WARNING:process_template_line:warning: no files found matching 'SWIG/*.h'
        WARNING:process_template_line:warning: no files found matching 'SWIG/*.def'
        WARNING:process_template_line:warning: no files found matching 'SWIG/_m2crypto_wrap.c'
        WARNING:process_template_line:warning: no files found matching 'M2Crypto/m2crypto.py'
        INFO:add_license_files:adding license file 'LICENCE'
        INFO:execute:writing manifest file 'src/M2Crypto.egg-info/SOURCES.txt'
        INFO:run_command:running build_ext
        INFO:build_extension:building 'M2Crypto._m2crypto' extension
        INFO:swig_sources:swigging src/SWIG/_m2crypto.i to src/SWIG/_m2crypto_wrap.c
        INFO:spawn:swig -python -py3 -I/usr/lib/gcc/x86_64-linux-gnu/12/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include -D__x86_64__ -I/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11/include -I/usr/include/python3.11 -I/usr/include/openssl -includeall -modern -builtin -outdir /tmp/pip-req-build-7ji35ain/src/M2Crypto -o src/SWIG/_m2crypto_wrap.c src/SWIG/_m2crypto.i
        Traceback (most recent call last):
          File "/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11/bin/swig", line 5, in <module>
            from swig import swig
        ModuleNotFoundError: No module named 'swig'
        error: command '/root/.cache/pypoetry/virtualenvs/donpapi-WjBzr8W3-py3.11/bin/swig' 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 M2Crypto
  Failed to build M2Crypto
  ERROR: Could not build wheels for M2Crypto, which is required to install pyproject.toml-based projects
  

  at /usr/lib/python3/dist-packages/poetry/utils/env.py:1540 in _run
      1536│                 output = subprocess.check_output(
      1537│                     command, stderr=subprocess.STDOUT, env=env, **kwargs
      1538│                 )
      1539│         except CalledProcessError as e:
    → 1540│             raise EnvCommandError(e, input=input_)
      1541│ 
      1542│         return decode(output)
      1543│ 
      1544│     def execute(self, bin: str, *args: str, **kwargs: Any) -> int:

The following error occurred when trying to handle this error:


  PoetryException

  Failed to install /root/.cache/pypoetry/artifacts/de/e9/1c/53d251c759c702dbaaaaca584d20259e0dac1d89660e8cf5208e6d1183/M2Crypto-0.38.0.tar.gz

  at /usr/lib/python3/dist-packages/poetry/utils/pip.py:58 in pip_install
       54│ 
       55│     try:
       56│         return environment.run_pip(*args)
       57│     except EnvCommandError as e:
    →  58│         raise PoetryException(f"Failed to install {path.as_posix()}") from e
       59│ 

  • Installing pyasn (1.6.1)
  • Installing pycryptodome (3.18.0)
  • Installing swig (4.1.1)
  • Updating wheel (0.38.4 -> 0.37.1)
                                    

Testing environnement was:

git clone https://github.com/login-securite/DonPAPI
cd DonPAPI
poetry update
poetry run DonPAPI

ModuleNotFoundError: No module named 'lib.secretsdump'

Hi everyone,

For some time now, I have been facing an error that I don't understand and that I can't solve,
I am Kali Linux :

$ uname -a [10/03/23 | 9:22:47] Linux no0ne-kali 6.1.0-kali5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.12-1kali2 (2023-02-23) x86_64 GNU/Linux

I use the version of python 3.11.2 :

$ python3 [10/03/23 | 9:20:59] Python 3.11.2 (main, Feb 12 2023, 00:48:52) [GCC 12.2.0] on linux Type "help", "copyright", "credits" or "license" for more information.

I proceeded to the installation of DonPAPI as explained on the Git but here, impossible to make it work:

$ python3 DonPAPI.py [10/03/23 | 9:30:04] Traceback (most recent call last): File "/home/no0ne/DonPAPI/DonPAPI.py", line 27, in <module> from myseatbelt import MySeatBelt File "/home/no0ne/DonPAPI/myseatbelt.py", line 12, in <module> from lib.secretsdump import LSASecrets as MyLSASecrets ModuleNotFoundError: No module named 'lib.secretsdump'

So I looked if the secretsdump module is present in the install directory :

$ ls DonPAPI/lib [10/03/23 | 9:21:32] adconnect.py dpapi_pick neo4jconnection.py secretsdump.py certificates.py dpapi.py new_module.py toolbox.py compliance_security.py eater.py RecentFiles.py wmi.py defines.py fileops.py reg.py

I don't have any explanation why it doesn't work, if anyone has an idea I'm interested.

For those who will take the time, thank you in advance.

Lazagne with DonPAPI

Hello,

Nice project !

I wanted to give you some idea to deal with Lazagne modules. I think you could not managed with the lazagne project but you should use lazagne forensic which has been designed to have a similar idea. The project is not up to date but could be done easily copying the code from lazagne modules and modifying from where the data are retrieved.

What I would suggest you is to integrate lazagneforensic as an external project (like we do in pupy: https://github.com/n1nj4sec/pupy/tree/unstable/pupy/external), and you load the project as module into the code. We update all lazagneForensic modules and fix some compatible issue with your project (if there are).

Like that if a fix is done on your project or mine, it could be easily fixed.

If you don't want and want to do your own things, I have no problems with it.

Have a nice day.

Single Binaries

With all due respect to your (really incredible project), working with python dependencies is just terrible.
I have managed to install version 1.0 through pip3 install -r req.txt several times, but the latest versions via pipx/poetry (besides the fact that these are terrible platforms in themselves that don't work well) force me to download the msvsc compiler for Windows to install modules and I never have the moral strength to finish it

Maybe you could make a separate version for github sponsors with precompiled single binaries, like crackmapexec did?
Working with dependency modules in python completely destroy my mood for entire day and deprives me of my will to live, these are endless quicksands of traces and errors

Best regards

[bug] ImportError: cannot import name 'PrivateKeyTypes' from 'cryptography.hazmat.primitives.asymmetric.types'

Hi,

Upon installation with the commands on the README.md, we get an error when starting DonPAPI

root@podaliriuslab:~/DonPAPI# git clone https://github.com/login-securite/DonPAPI.git
Cloning into 'DonPAPI'...
remote: Enumerating objects: 787, done.
remote: Counting objects: 100% (381/381), done.
remote: Compressing objects: 100% (255/255), done.
remote: Total 787 (delta 166), reused 306 (delta 123), pack-reused 406
Receiving objects: 100% (787/787), 3.22 MiB | 26.34 MiB/s, done.
Resolving deltas: 100% (316/316), done.
Processing /root/DonPAPI/DonPAPI
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: LnkParse3<2.0.0,>=1.2.0 in /usr/local/lib/python3.11/dist-packages (from donpapi==1.1.0) (1.2.0)
Requirement already satisfied: M2Crypto<0.39.0,>=0.38.0 in /usr/local/lib/python3.11/dist-packages (from donpapi==1.1.0) (0.38.0)
Requirement already satisfied: impacket<0.10.0,>=0.9.23 in /usr/local/lib/python3.11/dist-packages (from donpapi==1.1.0) (0.9.24)
Requirement already satisfied: pyasn<2.0.0,>=1.6.1 in /usr/local/lib/python3.11/dist-packages (from donpapi==1.1.0) (1.6.1)
Requirement already satisfied: pycryptodome<4.0.0,>=3.11.0 in /usr/local/lib/python3.11/dist-packages (from donpapi==1.1.0) (3.18.0)
Requirement already satisfied: swig<5.0.0,>=4.1.1 in /usr/local/lib/python3.11/dist-packages (from donpapi==1.1.0) (4.1.1)
Requirement already satisfied: wheel<0.38.0,>=0.37.0 in /usr/local/lib/python3.11/dist-packages (from donpapi==1.1.0) (0.37.1)
Requirement already satisfied: chardet in /usr/lib/python3/dist-packages (from impacket<0.10.0,>=0.9.23->donpapi==1.1.0) (5.1.0)
Requirement already satisfied: flask>=1.0 in /usr/lib/python3/dist-packages (from impacket<0.10.0,>=0.9.23->donpapi==1.1.0) (2.2.2)
Requirement already satisfied: future in /usr/lib/python3/dist-packages (from impacket<0.10.0,>=0.9.23->donpapi==1.1.0) (0.18.2)
Requirement already satisfied: ldap3!=2.5.0,!=2.5.2,!=2.6,>=2.5 in /usr/lib/python3/dist-packages (from impacket<0.10.0,>=0.9.23->donpapi==1.1.0) (2.9.1)
Requirement already satisfied: ldapdomaindump>=0.9.0 in /usr/lib/python3/dist-packages (from impacket<0.10.0,>=0.9.23->donpapi==1.1.0) (0.9.3)
Requirement already satisfied: pyOpenSSL>=0.16.2 in /usr/lib/python3/dist-packages (from impacket<0.10.0,>=0.9.23->donpapi==1.1.0) (23.0.0)
Requirement already satisfied: pyasn1>=0.2.3 in /usr/lib/python3/dist-packages (from impacket<0.10.0,>=0.9.23->donpapi==1.1.0) (0.4.8)
Requirement already satisfied: pycryptodomex in /usr/lib/python3/dist-packages (from impacket<0.10.0,>=0.9.23->donpapi==1.1.0) (3.11.0)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from impacket<0.10.0,>=0.9.23->donpapi==1.1.0) (1.16.0)
Building wheels for collected packages: donpapi
  Building wheel for donpapi (pyproject.toml) ... done
  Created wheel for donpapi: filename=donpapi-1.1.0-py3-none-any.whl size=692882 sha256=b90fce1ca309727c68f25d3c073f6332b9934f6b2d02ebbb185fbe70961a93eb
  Stored in directory: /tmp/pip-ephem-wheel-cache-_fzseqmg/wheels/f5/5d/af/daefae7c43f57686945d3ccdef02147a13c26bf4f09d46030f
Successfully built donpapi
Installing collected packages: donpapi
  Attempting uninstall: donpapi
    Found existing installation: donpapi 1.1.0
    Uninstalling donpapi-1.1.0:
      Successfully uninstalled donpapi-1.1.0
Successfully installed donpapi-1.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

root@podaliriuslab:~/DonPAPI# cd DonPAPI; python3 -m pip install . ; DonPAPI
Traceback (most recent call last):
  File "/usr/local/bin/DonPAPI", line 5, in <module>
    from donpapi.entry import main
  File "/usr/local/lib/python3.11/dist-packages/donpapi/entry.py", line 26, in <module>
    from donpapi.myseatbelt import MySeatBelt
  File "/usr/local/lib/python3.11/dist-packages/donpapi/myseatbelt.py", line 11, in <module>
    from donpapi.lib.certificates import CertificatesTriage
  File "/usr/local/lib/python3.11/dist-packages/donpapi/lib/certificates.py", line 13, in <module>
    from cryptography.hazmat.primitives.asymmetric.types import PrivateKeyTypes
ImportError: cannot import name 'PrivateKeyTypes' from 'cryptography.hazmat.primitives.asymmetric.types' (/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/asymmetric/types.py)                                                                                                                                                                                    

After a bit of research, this is because [cryptography=3.4] has a circular import bug, to fix it you should update to [cryptography=3.4.1].

For anyone having the bug now, you can just do:

root@podaliriuslab:~/DonPAPI# python3 -m pip install cryptography --upgrade
Requirement already satisfied: cryptography in /usr/local/lib/python3.11/dist-packages (3.4.8)
Collecting cryptography
  Using cached cryptography-41.0.2-cp37-abi3-manylinux_2_28_x86_64.whl (4.3 MB)
Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.11/dist-packages (from cryptography) (1.15.1)
Requirement already satisfied: pycparser in /usr/local/lib/python3.11/dist-packages (from cffi>=1.12->cryptography) (2.21)
Installing collected packages: cryptography
  Attempting uninstall: cryptography
    Found existing installation: cryptography 3.4.8
    Uninstalling cryptography-3.4.8:
      Successfully uninstalled cryptography-3.4.8
Successfully installed cryptography-41.0.2

More infos about the bug: https://cryptography.io/en/latest/changelog/#v3-4-1

User enumeration missing users stored under "Documents and Settings" on older Windows versions

Hi

Ive noticed that when enumerating older Windows Operating System versions that use the "%SystemDrive%\Documents and Settings" path to store user profiles that users are not correctly identified due to hardcoding of the modern "Users" path in various points in the code.

I have what I believe is a fix (e.g. "it works on my machine") in my local copy of the tool if you are happy to receive a PR to address this?

Thanks

Wrong description for --no_recent and --no_sysadmins

The "--no_recent" and "--no_sysamins" options have the wrong description:

attacks:
  --no_browser          do not hunt for browser passwords
  --no_dpapi            do not hunt for DPAPI secrets
  --no_vnc              do not hunt for VNC passwords
  --no_remoteops        do not hunt for SAM and LSA with remoteops
  --GetHashes           Get all users Masterkey's hash & DCC2 hash
  --no_recent           Get recent files
  --no_sysadmins        Get sysadmins stuff (mRemoteNG, vnc, keepass, lastpass ...)

The Word "Get" should be replaced by "do not hunt for" for --no_recent and --no_sysamins

Python SyntaxError

Hi,
When running the DonPAPI.py script I get the following python error:

File "./DonPAPI.py", line 157
    logging.info(f"Loaded {len(credz)} user credentials")
                                                       ^
SyntaxError: invalid syntax

Steps to reproduce:

git clone https://github.com/login-securite/DonPAPI.git
pip3 install -r requirements.txt
./DonPAPI.py

This looks like a great tool, looking forward to using it!

Add option to retrieve cookies as well as saved logins

DonPAPI does a fantastic job of retrieving saved login credentials, however the option to retrieve cookies would be beneficial to be able to steal existing sessions and bypass 2FA protection. Currently it seems an attempt was made at adding this feature but it may have been abandoned (https://github.com/login-securite/DonPAPI/blob/main/myseatbelt.py#L460). I might try and have a go at this in a few weeks but not sure if I'll be able to pull it off.

Cookie filtering

At the moment, depending on the network a lot of expired cookies can be returned. It would be nice if the tool could filter out those (at least by default).
In the same idea, a lot of cookies can be empty so 99.9% of the time useless, this could also be filtered out.

[bug] struct.error: ('unpack requires a buffer of 4 bytes', "When unpacking field 'CryptAlgo | <L=0 | b''[:4]'", 'When unpacking field \'Blob

When I following the steps on GOAD, It turns out errors as follow:

└─$ proxychains -f /etc/proxychains_1080.conf DonPAPI -no-pass NORTH/[email protected]
[proxychains] config file found: /etc/proxychains_1080.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
[proxychains] DLL init: proxychains-ng 4.16

                                                                                
         ,                                                                      
       ,                                                 LeHack Release! 💀                       
        (                                                                       
       .                                          by Touf & Zblurx @ Login Sécurité                       
                                &&&&&&                                                             
     &&&&&%%%.                  &&&&&&                                          
      &&&&%%%              &&&& &&&&&&       &&&&&&            &&&&&.           
      &&&&%%%           &&&&&&& &&&&&&    &&&&&&&&&&&&&     &&&&&&&&&&&         
      &&&&%%%         &&&&&&&&& &&&&&&  &&&&&&&&&&&&&&&&   &&&&&&&&&&&&&        
    &&&&&&%%%%%       &&&&&&    &&&&&&  &&&&&&    &&&&&&   &&&&&   &&&&&   #####  
 &&&&&&&&&%%%%%%%     &&&&&&&&&&&&&&&&  (&&&&&&&&&&&&&&&   &&&&&   &&&&&   # # #
 &/&/////////////%      &&&&&&&&&&&&      &&&&&&&&&&&&     &&&&&   &&&&&   #####
&&/&/#////////(//%         &&&&&&            &&&&&&        &&&&&   &&&&&    ###
&&/&/////////////%        
&&/&/////////////%        &&&&&&&&&        &&&&&&&&&&        &&&&&&&&&     &&&&&
&&/&//////////(//%     &&&&&&&&&&&&&&    &&&&&&&&&&&&&&   &&&&&&&&&&&&&&   &&&&&
&&/&/////////////%     &&&&&&   &&&&&&  &&&&&&   &&&&&&&  &&&&&&   &&&&&&  &&&&&
&&/&///////////(/%    &&&&&&    &&&&&&  &&&&&&    &&&&&& &&&&&&    &&&&&&  &&&&&
&&/&///(/////////%    &&&&&& &&&&&&&&&  &&&&&&&&& &&&&&& &&&&&& &&&&&&&&&  &&&&&
&&/&/////////////%    &&&&&& &&&&&&&      &&&&&&& &&&&&& &&&&&& &&&&&&&    &&&&&
&&#&###########/#%    &&&&&&                             &&&&&&                 
&&###############%    &&&&&&                             &&&&&&                

INFO Initializing database ./donpapi.db
INFO Loaded 1 targets
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
INFO [192.168.56.22] [+] CASTELBLACK (domain:north.sevenkingdoms.local) (Windows 10.0 Build 17763) [SMB Signing Disabled]
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
INFO host: \\192.168.56.98, user: eddard.stark, active:  2562, idle:     0
INFO Adding connected user eddard.stark from \\192.168.56.98
INFO host: \\192.168.56.98, user: robb.stark, active:  2616, idle:  2616
INFO Adding connected user robb.stark from \\192.168.56.98
INFO [192.168.56.22] [+] Found user .NET v2.0
INFO [192.168.56.22] [+] Found user .NET v2.0 Classic
INFO [192.168.56.22] [+] Found user .NET v4.5
INFO [192.168.56.22] [+] Found user .NET v4.5 Classic
INFO [192.168.56.22] [+] Found user Administrator
INFO [192.168.56.22] [+] Found user All Users
INFO [192.168.56.22] [+] Found user Classic .NET AppPool
INFO [192.168.56.22] [+] Found user Default
INFO [192.168.56.22] [+] Found user Default User
INFO [192.168.56.22] [+] Found user Public
INFO [192.168.56.22] [+] Found user robb.stark
INFO [192.168.56.22] [+] Found user sql_svc
INFO [192.168.56.22] [+] Found user vagrant
INFO [192.168.56.22] [+] Dumping LSA Secrets
INFO [192.168.56.22] [+] Dumping SAM Secrets
INFO [192.168.56.22] [+] SAM : Collected 6 hashes 
INFO [192.168.56.22] [+] Gathering DPAPI Secret blobs on the target
INFO [192.168.56.22] [+] Gathering Wifi Keys
INFO [192.168.56.22] [+] Gathering Vaults
INFO [192.168.56.22] [+] Gathering Certificates Secrets 
Traceback (most recent call last):
  File "/home/kali/.local/pipx/venvs/donpapi/lib/python3.9/site-packages/donpapi/lib/certificates.py", line 403, in loot_privatekeys
    masterkey_guid = self.get_masterkey_guid_for_privatekey(data)
  File "/home/kali/.local/pipx/venvs/donpapi/lib/python3.9/site-packages/donpapi/lib/certificates.py", line 516, in get_masterkey_guid_for_privatekey
    blob=PVKFile(privatekey_bytes)
  File "/home/kali/.local/pipx/venvs/donpapi/lib/python3.9/site-packages/impacket/structure.py", line 87, in __init__
    self.fromString(data)
  File "/home/kali/.local/pipx/venvs/donpapi/lib/python3.9/site-packages/impacket/structure.py", line 152, in fromString
    self[field[0]] = self.unpack(field[1], data[:size], dataClassOrCode = dataClassOrCode, field = field[0])
  File "/home/kali/.local/pipx/venvs/donpapi/lib/python3.9/site-packages/impacket/structure.py", line 382, in unpack
    return dataClassOrCode(data)
  File "/home/kali/.local/pipx/venvs/donpapi/lib/python3.9/site-packages/impacket/structure.py", line 87, in __init__
    self.fromString(data)
  File "/home/kali/.local/pipx/venvs/donpapi/lib/python3.9/site-packages/impacket/structure.py", line 152, in fromString
    self[field[0]] = self.unpack(field[1], data[:size], dataClassOrCode = dataClassOrCode, field = field[0])
  File "/home/kali/.local/pipx/venvs/donpapi/lib/python3.9/site-packages/impacket/structure.py", line 326, in unpack
    return self.unpack(two[0],data)
  File "/home/kali/.local/pipx/venvs/donpapi/lib/python3.9/site-packages/impacket/structure.py", line 385, in unpack
    return unpack(format, data)[0]
struct.error: ('unpack requires a buffer of 4 bytes', "When unpacking field 'CryptAlgo | <L=0 | b''[:4]'", 'When unpacking field \'Blob | : | b\'\\x01\\x00\\x00\\x00\\xfcP\\xc5F\\xdb\\xb69N\\x8dw\\xf3]\\xc2\\xb7\\xa4\\xc1\\x00\\x00\\x00\\x00,\\x00\\x00\\x00C\\x00r\\x00y\\x00p\\x00t\\x00o\\x00A\\x00P\\x00I\\x00 \\x00P\\x00r\\x00i\\x00v\\x00a\\x00t\\x00e\\x00 \\x00K\\x00e\\x00y\\x00\\x00\\x00\\x03f\\x00\\x00\\xc0\\x00\\x00\\x00\\x10\\x00\\x00\\x00\\r\\xea?\\x8d\\x95@\\xfd\\x0c\\x82\\xf4\\x08\\tm\\x87\\xc5S\\x00\\x00\\x00\\x00\\x04\\x80\\x00\\x00\\xa0\\x00\\x00\\x00\\x10\\x00\\x00\\x00\\xd6\\x1e\\xb5A6&\\xdb!\\xbet\\xe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\\xa8.L\\xbb\\x95\\\\\\xa4\\x01Z\\xa9\\x85\\x14.\\xa2\\xd3Q5\\xb0\\x1fd[.\\xf8E\\xda\\xad\\x9fH\\x809;\\xe7/\\x1d\\x1dM\\x19U\\x877\\xba\\x18h\\xd4\\x10<m\\x80\\x92\\x9c\\xab@:\\xbf\\xb4\\x7f\\xd7l\\xb6*\\t<\\x93\\xc5J\\xe8a\\xe9h\\xf3\\xf0\\t\\xa29\\xb8U0)IGf[\\x9f\\xbb\\x87\\xdc\\xe8\\x90!=\\x86\\xcd\\x94\\xaf\\x06\\xce\\xb2\\x99\\x9a%=i\\x9c?\\xc6<9K\\x1b:\\xb5\\x96?\\xab/\\xb2\\xa1\\x94^\\x0c\\x14\\x89\\xad"\\xc3\\x8a\\x8d\\xd9#\\xac\\x14\\x00\\x00\\x00],\\xbf\\xe4z\\xd7\\xd3\\x13\\xb3=\\xce\\x18k\\x8e\\xc7\\xd3\\xa7\\xe0\\xdd4\\x01\\x00\\x00\\x00\\xd0\\x8c\\x9d\\xdf\\x01\\x15\\xd1\\x11\\x8cz\\x00\\xc0O\\xc2\\x97\\xeb\\x01\\x00\\x00\\x00\\xfcP\\xc5F\\xdb\\xb69N\\x8dw\\xf3]\\xc2\\xb7\\xa4\\xc1\\x00\\x00\\x00\\x00\\x18\\x00\\x00\\x00E\\x00x\\x00p\\x00o\\x00r\\x00t\\x00 \\x00F\\x00l\\x00a\\x00g\\x00\\x00\\x00\\x03f\\x00\\x00\\xc0\\x00\\x00\\x00\\x10\\x00\\x00\\x00\\xac\\x98\\xc5;\\xd2\\xc0\\xc2M\\xfb\\xe1\\x93\\x8d\\x10Gq\\xd0\\x00\\x00\\x00\\x00\\x04\\x80\\x00\\x00\\xa0\\x00\\x00\\x00\\x10\\x00\\x00\\x00\\xff\\\\\\x17\\x1f\\xe2\\xf7\\xd5\\x1e\\xb8\\x95O\\x93\\xbe#o\\xe9\\x08\\x00\\x00\\x00q\\xd4\\x1e-\\x8aI\\x9c;\\x14\\x00\\x00\\x00\\xfc@\\x7f\\xadj&\\xc2\\xee\\xb8\\xac\\xc6\\x8dn\\x1a\\xd9=\\xc6\\x11Gh\'[:1524]\'')
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
INFO [192.168.56.22] [+] Gathering Chrome Secrets 
INFO [192.168.56.22] [+] Gathering MSEdge Secrets 
INFO [192.168.56.22] [+] Gathering Mozilla Secrets 
INFO [192.168.56.22] [+] Gathering mRemoteNG Secrets 
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
INFO [192.168.56.22] [+] Gathering VNC Passwords
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
[proxychains] Strict chain  ...  127.0.0.1:1080  ...  192.168.56.22:445  ...  OK
INFO [192.168.56.22] [+] Gathering Recent Files and Desktop Files 
/home/kali/.local/pipx/venvs/donpapi/lib/python3.9/site-packages/LnkParse3/target_factory.py:87: UserWarning: Unknown TargetID `195`
  warnings.warn(msg)

While ntlmrelayx is listening on 1080:

ntlmrelayx> socks
Protocol  Target         Username            AdminStatus  Port 
--------  -------------  ------------------  -----------  ----
SMB       192.168.56.23  NORTH/ROBB.STARK    FALSE        445  
SMB       192.168.56.23  NORTH/EDDARD.STARK  FALSE        445  
SMB       192.168.56.22  NORTH/ROBB.STARK    FALSE        445  
SMB       192.168.56.22  NORTH/EDDARD.STARK  TRUE         445  

zsh: bus error

Hello ,
I wanted to use donpapi
sudo python3 DonPAPI.py -H: ...
my python version is python3.11
but I have this mistake
zsh: bus error sudo python3.11 DonPAPI.py -H : ...
the program crashes during [mozilla cookie]
while on releases 1.0.0 I have no problems
Do you have a solution?

Traceback crypto import error

Traceback when running DonPAPI, probably due to latest commits

Traceback (most recent call last):
      File "/root/.local/bin/DonPAPI", line 5, in <module>
        from donpapi.entry import main
      File "/root/.local/pipx/venvs/donpapi/lib/python3.9/site-packages/donpapi/entry.py", line 26, in <module>
        from donpapi.myseatbelt import MySeatBelt
      File "/root/.local/pipx/venvs/donpapi/lib/python3.9/site-packages/donpapi/myseatbelt.py", line 11, in <module>
        from donpapi.lib.certificates import CertificatesTriage
      File "/root/.local/pipx/venvs/donpapi/lib/python3.9/site-packages/donpapi/lib/certificates.py", line 11, in <module>
        from cryptography.hazmat._oid import ExtensionOID
    ImportError: cannot import name 'ExtensionOID' from 'cryptography.hazmat._oid' (/root/.local/pipx/venvs/donpapi/lib/python3.9/site-packages/cryptography/hazmat/_oid.py)

Short question: cme module

On the bottom of the readme you write that a lot of code comes from cme. I would love to see the project as a cme module. Is that currently on focus? Maybe you can write your thoughts about this and maybe some hints how to start with this project on my own.

Cheers.

ModuleNotFoundError

Bonjour à tous, ça fait un p'tit moment que j'utilise DonPAPI et depuis une fresh install de Kali j'ai une erreur que je n'arrive pas debbugger si quelqu'un a une idée je suis preneur:

python3 DonPAPI.py

Traceback (most recent call last):
File "DonPAPI.py", line 27, in
from myseatbelt import MySeatBelt
File "myseatbelt.py", line 12, in
from lib.secretsdump import LSASecrets as MyLSASecrets
ModuleNotFoundError: No module named 'lib.secretsdump'

Alors que la lib est bien dispo dasn e dossier d'installation dans lib/secretsdump
Pour être sûr de moi j'avais ajouté le chemin d'exécution dans la variable $PATH, mais rien n'y fait.

Je n'ai aucune idée de comment debbugger ceci.

D'avance merci de l'attention porté à mon problème !

Missing license file

Hi,

This project looks amazing and solves a large amount of possible problems, However looking at the codebase I wasn't able to find a LICENSE file,
The only thing I could find is a message in the master file indicating the license is a modified version of Apache license with more details in the LICENSE file that I wasn't able to find.

This software is provided under under a slightly modified version

of the Apache Software License. See the accompanying LICENSE file

for more information.

If a license file could be added it will be great help !

exception was : 'database' object has no attribute 'add_connected_user'

Having a problem with trying to dump data, here is the error I get

`2023-07-02,18:38:18.669 DEBUG {myseatbelt} [login_conn] [192.168.131.139] [-] initialising smb Authentification to [REDACTED] / [REDACTED] : , @ 192.168.131.139 , Hash : : [REDACTED], AESKey None

2023-07-02,18:38:19.861 DEBUG {myseatbelt} [is_admin] [192.168.131.139] Checking if is admin

2023-07-02,18:38:20.441 DEBUG {myseatbelt} [is_admin] [192.168.131.139] Is ADMIN

2023-07-02,18:38:20.442 DEBUG {myseatbelt} [init_connect] Error init connect

2023-07-02,18:38:24.011 INFO {myseatbelt} [do_who] host: \172.31.64.56, user: [REDACTED], active: 4, idle: 1

2023-07-02,18:38:24.011 DEBUG {myseatbelt} [do_test] [192.168.131.139] Not connected

2023-07-02,18:38:24.012 DEBUG {myseatbelt} [do_test] exception was : 'database' object has no attribute 'add_connected_user'`

This was the command:

DonPAPI --hashes :[REDACTED] [REDACTED]/[REDACTED]@192.168.131.139 -o /tmp/test -d -R -port 445 -pvk ./key.pvk --no_remoteops

Tried on latest version of Ubuntu, Python 3.10.6
Edit: Tried on Debian 11 and also get the same error, on Python 3.9.2

ERROR derivekey exception : can only concatenate str (not "bytes") to str

Hello there,

When running DonPAPI with an admin user I get the following error repeated many times :
ERROR derivekey exception : can only concatenate str (not "bytes") to str

The command I'm running is :
DonPAPI -H <HASH> <DOMAIN>/<USER>@<TARGET> (redacted for privacy)

Tested on Kali Linux with Python 3.10.10

Error when using --GetHashes

When running DonPAPI with "--GetHashes" I get the following error.

Traceback (most recent call last):
  File "/<mytoolspath>/DonPAPI/DonPAPI.py", line 273, in <module>
    main()
  File "/<mytoolspath>/DonPAPI/DonPAPI.py", line 185, in main
    my_report.export_hashes()
AttributeError: 'reporting' object has no attribute 'export_hashes'

DonPAPI is running on KALI 2021.4 with Impacket v0.9.24.dev1+20210720.100427.cd4fe47c.
The target is Windows 10 1803

HTML report (-R) markup inconsistency & optimization

HTML reports have inconsistency (missing closing markup, no coherence with lowercase/uppercase, ...) and can be optimized (for instance: <a class="firstletter">H</a><a>ostname</A> can be replaced with <p>Hostname</p> using the CSS selector ::first-letter).

I'd like to work on the generate_report() function, using Jinja templating. Is it worth having a try and are you looking for a PR on this feature (report content won't change, only a refactoring) ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.