John
Common Formats
$krb5asrep$23$
krb5asrep
$krb5tgs$23$
krb5tgs
NTLMv2
netntlmv2
NTLM
netntlm
Usage
john --format=<FORMAT> --wordlist=/usr/share/wordlists/rockyou.txt --fork=4 hashjohn --list=formats | grep <FORMAT>john --show passwd.txtRules
To be able to use the previously created rules in JtR, we need to add a name for the rules and append them to the /etc/john/john.conf configuration file.
$ cat ssh.rule
[List.Rules:sshRules]
c $1 $3 $7 $!
c $1 $3 $7 $@
c $1 $3 $7 $#sudo sh -c 'cat /home/kali/passwordattacks/ssh.rule >> /etc/john/john.conf'john --wordlist=ssh.passwords --rules=sshRules ssh.hashFiles
The id_rsa file is the default private key generated by OpenSSH when creating an RSA key pair for authentication. It is stored under ~/.ssh/ on Unix-like systems and must be kept strictly confidential, as it grants access to any system where the corresponding public key (id_rsa.pub) has been authorized. Possession of this file is equivalent to possessing the login credentials for the associated accounts.
A KDBX file is the encrypted database format used by KeePass to store usernames, passwords, and other secrets. Access requires the master password (and optionally a key file), but if compromised, it exposes all stored credentials.
Interaction with the database can be done via GUI:
or CLI:
A PFX file (PKCS#12) is a password-protected container that holds private keys, certificates, and sometimes full certificate chains. Compromise of this file enables impersonation or unauthorized authentication to systems using those certificates.
The extraction and decryption process from a .pfx file can be found here. The PEM pass phrase is set by us and later used to decrypt the key. It can be anything as long as it is more than 3 characters.
The .crt and .key files can be used to access a Windows host via WinRM:
A ZIP file is an archive format used to compress and bundle one or more files and folders into a single file. It can optionally be password-protected, but if the password is weak or compromised, all contents of the archive can be accessed.
Last updated
Was this helpful?