Resources

Commands

  • General

    • Check
      echo -n Soccer06! | md5sum
      echo -n Soccer06! | sha256sum
       
       
      cat /etc/pam.d/common-password # Linux configration file 
    • Gather
      cewl https://facebook.com -d 3 -m 8 -x 10  --lowercase -w smart.wordlist
  • John

    • Extentions
      unshadow /etc/passwd /etc/shadow > combined.txt
       
      locate *2john*
    • Cracking
      john hash.txt --wordlist=/usr/share/wordlists/rockyou.txt --format=crypt # wordlist
      john hash.txt --format=crypt --single #Single (generate password list rules based on the info's on the hash )
       
      john --incremental hash.txt --format=crypt # predect the human passwords 'grep Incremental modes' -A 100 /etc/john/john.conf'
       
       
      john hash.txt /usr/share/wordlists/rockyou.txt  --format=ripemd-128
    • Rules
      john --config=/usr/share/john/john.conf --rules=Toggle --wordlist=passowrds.txt --stdout
  • Hashcat

    • Cracking
      hashcat -m 3000 -a 0 ntlm.hash rockyou.txt #LANMAN
      hashcat -a 3 -m 0 1e293d6912d074c0fd15844d803400dd '?u?l?l?l?l?d?s' # mask attack
       
       
      hashcat --help | grep sha512
    • Rules
      ls -l /usr/share/hashcat/rules
      
      hashcat --stdout password.txt -r Hob0Rules/d3adhob0.rule
      
      hashcat -a 0 -m 1000 <NTLMHASHES> wordlists/rockyou.txt -r hob064.rule -o cracked.txt
      
      hashcat -m 0 hash.txt /usr/share/wordlists/rockyou.txt -r /usr/share/hashcat/rules/best66.rule # rules
      
  • Services

    • SSH
      • keypairs
        # John
        ssh2john id_simulation > key.hash
        john --wordlist=/usr/share/wordlists/rockyou.txt key.hash
         
        #hashcat 
        ssh2john id_simulation > key.hash
        sed -i 's/^[^:]*://' key.hash
        hashcat -m 5200 --force -a 0 Backup.psafe3 /usr/share/wordlists/rockyou.txt
    • Bitlocker
      bitlocker2john -i CTF_Challenge.vhdx > back.hash
      hashcat -a 0 -m 22100 '$bitlocker$0$16$07914c73176374c81c02564aff8dafd5$1048576$12$9036bb21898bdc0103000000$60$ee39c413e0d5e110c7851811acd2088db3ed64a3da85c66da1b0192b0a00bc81d30be6c5bfdeb1825835a8128a54fcc9f90eae530d24ba01f57cbc99' /usr/share/wordlists/rockyou.txt # user hash (this is for protalbe files)
       
      # Getting in (vhdx)
       
      file CTF_Challenge.vhdx
      qemu-nbd --connect=/dev/nbd0 CTF_Challenge.vhdx # Treating as a disk 
      blkid /dev/nbd0p1 # Properties of this device 
      sudo hexdump -C /dev/nbd0p1 | head # Magic bytes (FVE-FS)
       
      dislocker -V /dev/nbd0p1 -upassword123 -- ./bitlockermount # Generating the decryptoin file 
      mount -o loop,ro bitlockermount/dislocker-file ./bitlocker # Converting it to a partition 
       
      umount ./bitlocker
      qemu-nbd --disconnect /dev/nbd0
       
       
      # Getting in (vhd)
       
      sudo losetup -fP --show Private.vhd
      lsblk -f /dev/loop0 # making a loop device 
       
      sudo dislocker -V /dev/loop0p1 -u'francisco' -- ./bitlockermount
      sudo mount -o loop,ro ./bitlockermount/dislocker-file ./bitlocker
      • Sam
        hashcat -m 1000 -a 0 hashes.txt /usr/share/wordlists/rockyou.txt
        john --format=NT hashes.txt  /usr/share/wordlists/rockyou.tx
    • Linux
      cp /etc/passwd /tmp/passwd.bak
      cp /etc/shadow /tmp/shadow.bak
       
      unshadow /tmp/passwd.bak /tmp/shadow.bak > /tmp/unshadowed.hashes
       
      hashcat -m 1800 -a 0 /tmp/unshadowed.hashes rockyou.txt -o /tmp/unshadowed.cracked
  • Tips & Tricks

    • Deafult
      pip3 install defaultcreds-cheat-sheet
      creds search mysql
    • Filtration
      awk 'length($0) > 8' oh.txt > popy.txt # less than 8 

Tools & Sites

Dorks

  • Mega.nz leak on X
  • combolists

Notes

Nodes