https://github.com/theleopard65/wsl2-setup
This repository is made to automate the setup and Installation of various tools and applications within a Windows Subsystem for Linux (WSL2) environment. This script installs a comprehensive toolkit for security and penetration testing tasks.
https://github.com/theleopard65/wsl2-setup
apt bash burpsuite dirbuster ghidra installer installer-script john kali pentest pimpmykali python3-pip root sudo ubuntu wsl wsl-terminal wsl2
Last synced: 3 months ago
JSON representation
This repository is made to automate the setup and Installation of various tools and applications within a Windows Subsystem for Linux (WSL2) environment. This script installs a comprehensive toolkit for security and penetration testing tasks.
- Host: GitHub
- URL: https://github.com/theleopard65/wsl2-setup
- Owner: TheLeopard65
- License: mit
- Created: 2024-06-13T15:06:54.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-08-21T10:29:19.000Z (9 months ago)
- Last Synced: 2024-08-21T15:44:26.130Z (9 months ago)
- Topics: apt, bash, burpsuite, dirbuster, ghidra, installer, installer-script, john, kali, pentest, pimpmykali, python3-pip, root, sudo, ubuntu, wsl, wsl-terminal, wsl2
- Language: Shell
- Homepage:
- Size: 107 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
**WSL Setup and Maintenance Scripts**
=====================================This repository contains a set of scripts designed to set up, update, and maintain a Windows Subsystem for Linux (WSL) environment. Below is a brief description of each script provided in this repository. The script is intended to be run with a root password as an argument.
### `Setupmywsl.sh`
This script performs a comprehensive setup of a WSL2 environment, including:
- **System Update and Upgrade**: Updates and upgrades the system packages.
- **Package Installation**: Installs a wide range of tools and utilities for security, networking, development, and much more.
- _NOTE:_ To Find the full list please review th code of `setupmywsl.sh`. ( The code isn't the most efficient one, I know :) )
- **Python Packages**: Installs various Python packages using `pip` for additional functionalities.
- **GIT Configuration**: Configures if a specific "git" Parameter is passed while executing file e.g `./setupmywsl.sh git`.
- _NOTE:_ Make Sure to Configure Your Username and Email in the code.)
- **Configure Systemd**: Configure the Systemd to true in wsl.conf and prompts user to restart the WSL.
- **Database Updates**: Updates several important databases used for security tools.
- **Updated Nano Config**: Makes your nano shortcuts and interface more Windows like and easy to view and use.
- **Updated Bash Config**: Makes the bash terminal more minmal and one-lined.
- _NOTE:_ (Can be Reverted by simply copying the content of `bashrc-backup` into `.bashrc` file)
- **Additional Tools**: Installs various tools from GitHub repositories, such as Pimpmykali, Volatility3, Radare2, and more.
- **Final System Update**: Performs a final update, upgrade, and cleanup of unused packages.**Usage**:
- Setting up Permissions
```bash
sudo chmod +x setup.sh
./setup.sh
```
- Setting up WSL
```bash
./setupmywsl.sh
```
- Setting up WSL with Git Global Configurations (Make sure to Change your username and Email in code)
```
./setupmywsl.sh git
```### `Updatemywsl.sh`
This script is designed to update and upgrade the WSL2 environment:
- **System Update and Upgrade**: Updates and upgrades the system packages.
- **Package Installation**: Installs essential packages and tools for various functions.
- **Python Packages**: Installs necessary Python packages.
- **Database Updates**: Updates important security tool databases.
- **Final System Update**: Performs a final update, upgrade, and cleanup.**Usage**:
```bash
./updatemywsl.sh
```### `Croncreator.sh`
This script sets up a cron job for automatic updates:
- **Root Check**: Ensures the script is run as root.
- **Script Copy**: Copies the `Updatemywsl.sh` script to a secure location.
- **Permissions**: Sets appropriate permissions for the script.
- **Cron Job Setup**: Adds a cron job to run `Updatemywsl.sh` on the 1st day of every month at midnight, logging output to `/var/log/updatemywsl.log`.**Usage**:
```bash
./croncreator.sh
```## Requirements
- The scripts must be executed with root privileges. Use `sudo` to run them.
- Ensure that you have WSL2 installed and configured before running these scripts.## Disclaimer
Though These scripts are provided as-is, without any warranty but have made sure these script are without any fault or weakness/exploitability. Use them at your own risk and ensure that they are compatible with your system and its requirements. If you find any vulnerability or weakness in the scripts please let me know.