Kali Cheatsheet

Kali Cheatsheet

The following is a list of improvements to the Kali distro to turbo charge your Pen Test tool kit..

Kali VM Username and Password: kali/kali

Fresh Install

  1. Setup Kali on AWS – https://www.alienvault.com/blogs/security-essentials/configuring-kali-linux-on-amazon-aws-cloud-for-free
  2. Use Generation 1 in Hyper-V
  3. Install VM Guest Tools
    1. https://www.kali.org/docs/virtualization/install-vmware-guest-tools/
  4. sudo su
  5. sudo apt-get install asciinema
  6. asciinema rec / exit
  7. lsb_release -a
  8. apt-get update && apt-cache search kali-linux-full
  9. apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
  10. sudo dpkg –configure -a
  11. apt-get autoremove
  12. reboot
  13. Install Vmware Tools and shared folders
    1. sudo apt update && sudo apt full-upgrade -y && sudo apt install kali-themes
    2. sudo apt install -y –reinstall open-vm-tools-desktop fuse
    3. usr/bin/vmware-hgfsclient
    4. cd /mnt/hgfs/
    5. ln -sf /usr/local/sbin/mount-shared-folders ~/Desktop/mount-shared-folders gsettings set org.gnome.nautilus.preferences executable-text-activation ‘ask’
    6. https://www.kali.org/docs/virtualization/install-vmware-tools-kali-guest/
    7. sudo mount -t vmhgfs .host:/Desktop /mnt/hgfs
    8. sudo mount -t fuse.vmhgfs-fuse .host:/Downloads /mnt/hgfs/Downloads -o allow_other
    9. nano /etc/fstab
    10. hosts:/Downloads /mnt/hgfs/Downloads fuse.vmhgfs-fuse allow_other
    11. mount -t vmhgfs .host:/Desktop /mnt/hgfs

    12. sudo mount -t fuse.vmhgfs-fuse .host:/Downloads /mnt/hgfs/Downloads -o allow_other

    13. nano /etc/fstab Hosts:/Downloads /mnt/hgfs/Downloads   fuse.vmhgfs-fuse allow_other

  14. Set Root password
    1. sudo su –
    2. passwd

Install Applications

Cloud Security Tools and Labs

  • Offensive Terraform – https://offensive-terraform.github.io/offensive-terraform.github.io/
  • CapitalOne – SRE exploits
  • https://rzepsky.medium.com/playing-with-cloudgoat-part-1-hacking-aws-ec2-service-for-privilege-escalation-4c42cc83f9da
  • https://rhinosecuritylabs.com/aws/aws-privilege-escalation-methods-mitigation/
  • https://medium.com/securing/data-leaks-from-aws-ec2-how-can-bob-reveal-alices-secrets-bd6fbe389966
  • FOR509: Cloud Forensics and Incident Response : US$7,020.00 USD
  • SEC588: Cloud Penetration Testing : US$7,020.00 USD
  • https://aws.amazon.com/mp/scenarios/security/forensics/
  • Find articats in Github
  • Eyewitness
  • Open Database
  • https://www.sans.org/reading-room/whitepapers/forensics/paper/39230
  • https://medium.com/@cloudyforensics/how-to-perform-aws-cloud-forensics-309a03a77aee
  • https://cyberforensicator.com/2018/03/28/how-to-perform-aws-cloud-forensics/
  • https://anz-resources.awscloud.com/aws-summit-sydney-2019-secure/automated-forensics-and-incident-response-on-aws-3
  • postman
  • privileged and escalations with PACU
  • https://www.youtube.com/watch?v=lOhvIooWzOg
  • https://rhinosecuritylabs.com/aws/aws-privilege-escalation-methods-mitigation/
  • https://learning.oreilly.com/library/view/hands-on-aws-penetration/9781789136722/87f050c7-3ad7-4f09-a156-4a0f80182b4c.xhtml
  • https://github.com/RhinoSecurityLabs/AWS-IAM-Privilege-Escalation
  • https://subscription.packtpub.com/book/virtualization_and_cloud/9781789136722/19/ch19lvl1sec122/privilege-escalation
  • https://rzepsky.medium.com/playing-with-cloudgoat-part-5-hacking-aws-with-pacu-6abe1cf5780d
  • https://www.praetorian.com/blog/privilege-escalation-in-aws-with-passrole-attacks
  • Pacu is an open source AWS exploitation toolkit written by Rhino Security Labs. It was built to aid penetration testers in attacking AWS environments; so, now we will quickly install and set up Pacu to automate these attacks that we have been trying.
  • https://www.youtube.com/watch?v=lOhvIooWzOg

Staying anonymous

  • proxychain use socks5 only
  • update dns to opendns and in nertherlands
  • Disable webrtc
  • Use OpenVPN
  • use duckduckgo.com for searching
  • spoof mac address
  • https://aws-ir.readthedocs.io/en/latest/

Leave a comment