Skip to content

Commit 61db37a

Browse files
authored
Add SAM to Secrets (#113)
* add sam to secrets * Set windows user to SYSTEM
1 parent bac145c commit 61db37a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

donpapi/lib/secretsdump.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def dump(self):
3030
def save_to_db(self, db, hostname):
3131
for sam_entry in self.items_found.values():
3232
db.add_samhash(sam_entry, hostname)
33+
db.add_secret(computer=hostname,collector="SAM",windows_user="SYSTEM",username=sam_entry["username"],password=sam_entry["nthash"],program="SAM")
3334

3435
def idle(self, _):
3536
pass

0 commit comments

Comments
 (0)