login-securite / DonPAPI

Dumping DPAPI credz remotely
GNU General Public License v3.0
930 stars 110 forks source link

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

Closed iamauser123xd closed 1 year ago

iamauser123xd commented 1 year ago

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

topotam commented 1 year ago

Hello, Same problem on kali 2022 python 3.10

royweisfeld commented 1 year ago

There was a new commit recently where they made a bunch of refactors from database to donpapi, if you feel like taking a dive into the code it's probably a line that wasn't changed correctly... Try reverting to the previous version and see if it works.

After a bit of searching this is the section that is executing I also checked and database.py does have the add_connected_user part... Weird

More specifically I think this is the function

zblurx commented 1 year ago

Hey, just pushed a fix for this, could you test it so I can merge it soon ? Thank you for the issue and all debug traces

login-securite commented 1 year ago

Closing since the fix seems to work. Feel free to reopen if the error persist