Skip to content

This is a comprehensive and automated setup script for a new Kali Linux virtual machine, designed to streamline the installation of a wide range of Open-Source Intelligence (OSINT) tools.

Notifications You must be signed in to change notification settings

3ricGvald3z/Kali-Linux-OSINT-VM-Setup-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Kali Linux OSINT Setup Script

This is a comprehensive and automated setup script for a new Kali Linux virtual machine, designed to streamline the installation of a wide range of Open-Source Intelligence (OSINT) tools. It now separates root-level and user-level installations for improved security and better permission management.

 
                              ______________                               
                        ,===:'.,            `-._                           
EGV                        `:.`---.__         `-._                       
 Kali Linux OSINT              `:.     `--.         `.                     
                                 \.        `.         `.                   
                         (,,(,    \.         `.   ____,-`.,                
                      (,'     `/   \.   ,--.___`.'                         
                  ,  ,'  ,--.  `,   \.;'         `                         
                   `{D, {    \  :    \;                                    
                     V,,'    /  /    //                                    
                     j;;    /  ,' ,-//.    ,---.      ,                    
                     \;'   /  ,' /  _  \  /  _  \   ,'/                    
                           \   `'  / \  `'  / \  `.' /                     
                            `.___,'   `.__,'   `.__,'  VM

Features

  • Automated Installation: Installs a large collection of OSINT tools without manual intervention.

  • Secure Execution: Automatically switches from root to the standard user for installations that don't require elevated permissions.

  • Dependency Management: Manages Python dependencies using isolated virtual environments for many tools to prevent conflicts.

  • Go Toolchain: Installs and configures a variety of Go-based tools.

  • Service Configuration: Sets up essential services like UFW (firewall), SSH, PostgreSQL, and MongoDB for immediate use.

  • DNS Configuration: Configures the system to use public DNS servers for improved reliability.

  • Error Handling and Logging: Includes a robust error-checking mechanism and logs all output to a file for easy troubleshooting.

Prerequisites

  • A fresh installation of Kali Linux (2024.x or later is recommended).

  • A stable internet connection.

  • The script must be run with root privileges (sudo).

How to Use

  1. Download the script:

    Save the kali_osint_setup_enhanced.sh file to your Kali VM.

  2. Make it Executable:

    Open a terminal and make the script executable with the following command:

    chmod +x kali_osint_setup_enhanced.sh
    
    
  3. Run the Script:

    Execute the script with sudo. It will handle the rest automatically.

    sudo ./kali_osint_setup_enhanced.sh
    
    

    The script will log its progress to the terminal and to the file /var/log/kali_osint_setup.log.

What the Script Does

The script performs the following actions in a structured order:

  1. Root-level Setup:

    • Updates apt package lists.

    • Installs all necessary system-wide packages.

    • Installs and configures the MongoDB database.

    • Sets up and enables system services like UFW, SSH, and PostgreSQL.

    • Configures the system's DNS settings.

  2. User-level Setup (as your user account):

    • Installs a collection of Go-based tools.

    • Installs language-specific tools using npm, gem, snap, and cargo.

    • Clones various GitHub repositories into a ~/programs directory and manages Python dependencies using isolated virtual environments.

    • Clones several useful resources, cheatsheets, and tool collections into designated directories.

Post-Installation

After the script finishes, you should perform the following steps:

  1. Reboot your system:

    sudo reboot
    
    

    This ensures all services and system changes take full effect.

  2. Add Go binaries to your PATH:

    The script installs Go tools to ~/go/bin. To make these tools available from any terminal, add the following line to your ~/.bashrc or ~/.zshrc file:

    export PATH="$HOME/go/bin:$PATH"
    
    

    Then, apply the changes by running:

    source ~/.bashrc  # or source ~/.zshrc
    
    

Troubleshooting

If the script encounters an error, it will exit and log the failure. You can review the full log file to diagnose the issue:

cat /var/log/kali_osint_setup.log

About

This is a comprehensive and automated setup script for a new Kali Linux virtual machine, designed to streamline the installation of a wide range of Open-Source Intelligence (OSINT) tools.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages